static int IntToEnum(IntPtr L) { int arg0 = (int)LuaDLL.lua_tonumber(L, 1); EventSystem.UIEvent_CliamReward.Type o = (EventSystem.UIEvent_CliamReward.Type)arg0; ToLua.Push(L, o); return(1); }
static int get_RewardType(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); EventSystem.UIEvent_CliamReward obj = (EventSystem.UIEvent_CliamReward)o; EventSystem.UIEvent_CliamReward.Type ret = obj.RewardType; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index RewardType on a nil value" : e.Message)); } }
static int set_RewardType(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); EventSystem.UIEvent_CliamReward obj = (EventSystem.UIEvent_CliamReward)o; EventSystem.UIEvent_CliamReward.Type arg0 = (EventSystem.UIEvent_CliamReward.Type)ToLua.CheckObject(L, 2, typeof(EventSystem.UIEvent_CliamReward.Type)); obj.RewardType = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index RewardType on a nil value" : e.Message)); } }
static int _CreateEventSystem_UIEvent_CliamReward(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2) { EventSystem.UIEvent_CliamReward.Type arg0 = (EventSystem.UIEvent_CliamReward.Type)ToLua.CheckObject(L, 1, typeof(EventSystem.UIEvent_CliamReward.Type)); int arg1 = (int)LuaDLL.luaL_checknumber(L, 2); EventSystem.UIEvent_CliamReward obj = new EventSystem.UIEvent_CliamReward(arg0, arg1); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: EventSystem.UIEvent_CliamReward.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }