| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
- public class HairColorParamWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginClass(typeof(HairColorParam), null);
- L.RegFunction("ToJson", ToJson);
- L.RegFunction("New", _CreateHairColorParam);
- L.RegFunction("__tostring", ToLua.op_ToString);
- L.RegVar("clr", get_clr, set_clr);
- L.RegVar("uvOffset", get_uvOffset, set_uvOffset);
- L.EndClass();
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int _CreateHairColorParam(IntPtr L)
- {
- try
- {
- int count = LuaDLL.lua_gettop(L);
- if (count == 1)
- {
- JSONObject arg0 = (JSONObject)ToLua.CheckObject<JSONObject>(L, 1);
- HairColorParam obj = new HairColorParam(arg0);
- ToLua.PushValue(L, obj);
- return 1;
- }
- else if (count == 2)
- {
- UnityEngine.Color arg0 = ToLua.ToColor(L, 1);
- UnityEngine.Vector2 arg1 = ToLua.ToVector2(L, 2);
- HairColorParam obj = new HairColorParam(arg0, arg1);
- ToLua.PushValue(L, obj);
- return 1;
- }
- else if (count == 0)
- {
- HairColorParam obj = new HairColorParam();
- ToLua.PushValue(L, obj);
- return 1;
- }
- else
- {
- return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: HairColorParam.New");
- }
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int ToJson(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- HairColorParam obj = (HairColorParam)ToLua.CheckObject(L, 1, typeof(HairColorParam));
- JSONObject o = obj.ToJson();
- ToLua.PushObject(L, o);
- ToLua.SetBack(L, 1, obj);
- return 1;
- }
- catch (Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_clr(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- HairColorParam obj = (HairColorParam)o;
- UnityEngine.Color ret = obj.clr;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index clr on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_uvOffset(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- HairColorParam obj = (HairColorParam)o;
- UnityEngine.Vector2 ret = obj.uvOffset;
- ToLua.Push(L, ret);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index uvOffset on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_clr(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- HairColorParam obj = (HairColorParam)o;
- UnityEngine.Color arg0 = ToLua.ToColor(L, 2);
- obj.clr = arg0;
- ToLua.SetBack(L, 1, obj);
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index clr on a nil value");
- }
- }
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_uvOffset(IntPtr L)
- {
- object o = null;
- try
- {
- o = ToLua.ToObject(L, 1);
- HairColorParam obj = (HairColorParam)o;
- UnityEngine.Vector2 arg0 = ToLua.ToVector2(L, 2);
- obj.uvOffset = arg0;
- ToLua.SetBack(L, 1, obj);
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e, o, "attempt to index uvOffset on a nil value");
- }
- }
- }
|