static int OnSel(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UI.StateGroup), typeof(UI.StateHandle))) { UI.StateGroup obj = (UI.StateGroup)ToLua.ToObject(L, 1); UI.StateHandle arg0 = (UI.StateHandle)ToLua.ToObject(L, 2); obj.OnSel(arg0); return(0); } else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(UI.StateGroup), typeof(UI.StateHandle), typeof(bool), typeof(bool))) { UI.StateGroup obj = (UI.StateGroup)ToLua.ToObject(L, 1); UI.StateHandle arg0 = (UI.StateHandle)ToLua.ToObject(L, 2); bool arg1 = LuaDLL.lua_toboolean(L, 3); bool arg2 = LuaDLL.lua_toboolean(L, 4); obj.OnSel(arg0, arg1, arg2); return(0); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to method: UI.StateGroup.OnSel")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int AddSel(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); UI.StateGroup obj = (UI.StateGroup)ToLua.CheckObject(L, 1, typeof(UI.StateGroup)); System.Action <UI.StateHandle, int> arg0 = null; LuaTypes funcType2 = LuaDLL.lua_type(L, 2); if (funcType2 != LuaTypes.LUA_TFUNCTION) { arg0 = (System.Action <UI.StateHandle, int>)ToLua.CheckObject(L, 2, typeof(System.Action <UI.StateHandle, int>)); } else { LuaFunction func = ToLua.ToLuaFunction(L, 2); arg0 = DelegateFactory.CreateDelegate(typeof(System.Action <UI.StateHandle, int>), func) as System.Action <UI.StateHandle, int>; } bool arg1 = LuaDLL.luaL_checkboolean(L, 3); obj.AddSel(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int OnCacheTab(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UI.StateGroup obj = (UI.StateGroup)ToLua.CheckObject(L, 1, typeof(UI.StateGroup)); obj.OnCacheTab(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int SetCount(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UI.StateGroup obj = (UI.StateGroup)ToLua.CheckObject(L, 1, typeof(UI.StateGroup)); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); obj.SetCount(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetEnumerator(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UI.StateGroup obj = (UI.StateGroup)ToLua.CheckObject(L, 1, typeof(UI.StateGroup)); System.Collections.IEnumerator o = obj.GetEnumerator(); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_Item(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UI.StateGroup obj = (UI.StateGroup)ToLua.CheckObject(L, 1, typeof(UI.StateGroup)); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); UI.StateHandle o = obj[arg0]; ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_m_ctrlType(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.StateGroup obj = (UI.StateGroup)o; UI.StateGroup.CtrlType arg0 = (UI.StateGroup.CtrlType)ToLua.CheckObject(L, 2, typeof(UI.StateGroup.CtrlType)); obj.m_ctrlType = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_ctrlType on a nil value" : e.Message)); } }
static int set_m_autoFindOnStart(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.StateGroup obj = (UI.StateGroup)o; bool arg0 = LuaDLL.luaL_checkboolean(L, 2); obj.m_autoFindOnStart = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_autoFindOnStart on a nil value" : e.Message)); } }
static int set_m_stateHandles(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.StateGroup obj = (UI.StateGroup)o; System.Collections.Generic.List <UI.StateHandle> arg0 = (System.Collections.Generic.List <UI.StateHandle>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List <UI.StateHandle>)); obj.m_stateHandles = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_stateHandles on a nil value" : e.Message)); } }
static int get_CurIdx(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.StateGroup obj = (UI.StateGroup)o; int ret = obj.CurIdx; LuaDLL.lua_pushinteger(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index CurIdx on a nil value" : e.Message)); } }
static int get_CurStateHandle(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.StateGroup obj = (UI.StateGroup)o; UI.StateHandle ret = obj.CurStateHandle; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index CurStateHandle on a nil value" : e.Message)); } }
static int get_m_autoFindOnStart(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.StateGroup obj = (UI.StateGroup)o; bool ret = obj.m_autoFindOnStart; LuaDLL.lua_pushboolean(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_autoFindOnStart on a nil value" : e.Message)); } }
static int get_m_stateHandles(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UI.StateGroup obj = (UI.StateGroup)o; System.Collections.Generic.List <UI.StateHandle> ret = obj.m_stateHandles; ToLua.PushObject(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index m_stateHandles on a nil value" : e.Message)); } }
static int OnSelTab(IntPtr L) { try { ToLua.CheckArgsCount(L, 4); UI.StateGroup obj = (UI.StateGroup)ToLua.CheckObject(L, 1, typeof(UI.StateGroup)); UI.StateHandle arg0 = (UI.StateHandle)ToLua.CheckUnityObject(L, 2, typeof(UI.StateHandle)); bool arg1 = LuaDLL.luaL_checkboolean(L, 3); bool arg2 = LuaDLL.luaL_checkboolean(L, 4); bool o = obj.OnSelTab(arg0, arg1, arg2); LuaDLL.lua_pushboolean(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }