static int GetScenesManager(IntPtr L) { try { ToLua.CheckArgsCount(L, 0); LuaFramework.ScenesManager o = LuaFramework.LuaHelper.GetScenesManager(); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int AsyncLoadScene(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); LuaFramework.ScenesManager obj = (LuaFramework.ScenesManager)ToLua.CheckObject(L, 1, typeof(LuaFramework.ScenesManager)); int arg0 = (int)LuaDLL.luaL_checknumber(L, 2); LuaFunction arg1 = ToLua.CheckLuaFunction(L, 3); obj.AsyncLoadScene(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int get_CurrentSceneID(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); LuaFramework.ScenesManager obj = (LuaFramework.ScenesManager)o; int ret = obj.CurrentSceneID; LuaDLL.lua_pushinteger(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index CurrentSceneID on a nil value" : e.Message)); } }
static int ShareSDKInit(IntPtr L) { try { ToLua.CheckArgsCount(L, 5); LuaFramework.ScenesManager obj = (LuaFramework.ScenesManager)ToLua.CheckObject(L, 1, typeof(LuaFramework.ScenesManager)); string arg0 = ToLua.CheckString(L, 2); string arg1 = ToLua.CheckString(L, 3); string arg2 = ToLua.CheckString(L, 4); LuaFunction arg3 = ToLua.CheckLuaFunction(L, 5); obj.ShareSDKInit(arg0, arg1, arg2, arg3); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }