static int _m_LoadUnitySceneAsyncLua(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); JW.Framework.Scene.SceneService __cl_gen_to_be_invoked = (JW.Framework.Scene.SceneService)translator.FastGetCSObj(L, 1); { string name = LuaAPI.lua_tostring(L, 2); int mode = LuaAPI.xlua_tointeger(L, 3); JW.Framework.Scene.SceneService.OnUnitySceneLoadDelegate handler = translator.GetDelegate<JW.Framework.Scene.SceneService.OnUnitySceneLoadDelegate>(L, 4); __cl_gen_to_be_invoked.LoadUnitySceneAsyncLua( name, mode, handler ); return 0; } } catch(System.Exception __gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + __gen_e); } }
static int _m_LoadUnitySceneAsync(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); JW.Framework.Scene.SceneService __cl_gen_to_be_invoked = (JW.Framework.Scene.SceneService)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); if(__gen_param_count == 4&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable<UnityEngine.SceneManagement.LoadSceneMode>(L, 3)&& translator.Assignable<JW.Framework.Scene.SceneService.OnUnitySceneLoadDelegate>(L, 4)) { string name = LuaAPI.lua_tostring(L, 2); UnityEngine.SceneManagement.LoadSceneMode mode;translator.Get(L, 3, out mode); JW.Framework.Scene.SceneService.OnUnitySceneLoadDelegate handler = translator.GetDelegate<JW.Framework.Scene.SceneService.OnUnitySceneLoadDelegate>(L, 4); __cl_gen_to_be_invoked.LoadUnitySceneAsync( name, mode, handler ); return 0; } if(__gen_param_count == 6&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable<UnityEngine.SceneManagement.LoadSceneMode>(L, 3)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 5)&& translator.Assignable<JW.Framework.Scene.SceneService.OnUnitySceneLoadDelegate>(L, 6)) { string name = LuaAPI.lua_tostring(L, 2); UnityEngine.SceneManagement.LoadSceneMode mode;translator.Get(L, 3, out mode); string lastScene = LuaAPI.lua_tostring(L, 4); bool cleanLast = LuaAPI.lua_toboolean(L, 5); JW.Framework.Scene.SceneService.OnUnitySceneLoadDelegate handler = translator.GetDelegate<JW.Framework.Scene.SceneService.OnUnitySceneLoadDelegate>(L, 6); __cl_gen_to_be_invoked.LoadUnitySceneAsync( name, mode, lastScene, cleanLast, handler ); return 0; } } catch(System.Exception __gen_e) { return LuaAPI.luaL_error(L, "c# exception:" + __gen_e); } return LuaAPI.luaL_error(L, "invalid arguments to JW.Framework.Scene.SceneService.LoadUnitySceneAsync!"); }