static int ChildIndexToItemIndex(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); FairyGUI.GList obj = (FairyGUI.GList)ToLua.CheckObject(L, 1, typeof(FairyGUI.GList)); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); int o = obj.ChildIndexToItemIndex(arg0); LuaDLL.lua_pushinteger(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }