static int Close(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); Game.LuaGame obj = (Game.LuaGame)ToLua.CheckObject(L, 1, typeof(Game.LuaGame)); obj.Close(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int RemoveKeyListener(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); Game.LuaGame obj = (Game.LuaGame)ToLua.CheckObject(L, 1, typeof(Game.LuaGame)); string arg0 = ToLua.CheckString(L, 2); obj.RemoveKeyListener(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int callLua(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); Game.LuaGame obj = (Game.LuaGame)ToLua.CheckObject(L, 1, typeof(Game.LuaGame)); LuaFunction arg0 = ToLua.CheckLuaFunction(L, 2); object[] arg1 = ToLua.ToParamsObject(L, 3, count - 2); obj.callLua(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int StrToLuaTable(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); Game.LuaGame obj = (Game.LuaGame)ToLua.CheckObject(L, 1, typeof(Game.LuaGame)); string arg0 = ToLua.CheckString(L, 2); object o = obj.StrToLuaTable(arg0); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int AddKeyListener(IntPtr L) { try { ToLua.CheckArgsCount(L, 4); Game.LuaGame obj = (Game.LuaGame)ToLua.CheckObject(L, 1, typeof(Game.LuaGame)); string arg0 = ToLua.CheckString(L, 2); LuaFunction arg1 = ToLua.CheckLuaFunction(L, 3); int arg2 = (int)LuaDLL.luaL_checknumber(L, 4); obj.AddKeyListener(arg0, arg1, arg2); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int Mount(IntPtr L) { try { ToLua.CheckArgsCount(L, 4); Game.LuaGame obj = (Game.LuaGame)ToLua.CheckObject(L, 1, typeof(Game.LuaGame)); UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.GameObject)); string arg1 = ToLua.CheckString(L, 3); object arg2 = ToLua.ToVarObject(L, 4); Game.LuaObject o = obj.Mount(arg0, arg1, arg2); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
void Awake() { it = this; }