static int _m_CoLoadScene(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Lua.LuaResLoaderProxy gen_to_be_invoked = (Lua.LuaResLoaderProxy)translator.FastGetCSObj(L, 1); { string _path = LuaAPI.lua_tostring(L, 2); bool _isAddition = LuaAPI.lua_toboolean(L, 3); Utopia.ResourceScene gen_ret = gen_to_be_invoked.CoLoadScene(_path, _isAddition); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _s_set_isAddition(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Utopia.ResourceScene gen_to_be_invoked = (Utopia.ResourceScene)translator.FastGetCSObj(L, 1); gen_to_be_invoked.isAddition = LuaAPI.lua_toboolean(L, 2); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _g_get_keepWaiting(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Utopia.ResourceScene gen_to_be_invoked = (Utopia.ResourceScene)translator.FastGetCSObj(L, 1); LuaAPI.lua_pushboolean(L, gen_to_be_invoked.keepWaiting); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 2 && translator.Assignable <Utopia.ResourceState>(L, 2)) { Utopia.ResourceState _resState = (Utopia.ResourceState)translator.GetObject(L, 2, typeof(Utopia.ResourceState)); Utopia.ResourceScene gen_ret = new Utopia.ResourceScene(_resState); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to Utopia.ResourceScene constructor!")); }
static int _m_Release(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Utopia.ResourceScene gen_to_be_invoked = (Utopia.ResourceScene)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.Release( ); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_TryLoadAsset(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Utopia.ResourceScene gen_to_be_invoked = (Utopia.ResourceScene)translator.FastGetCSObj(L, 1); { bool gen_ret = gen_to_be_invoked.TryLoadAsset( ); LuaAPI.lua_pushboolean(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_SetCb(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Utopia.ResourceScene gen_to_be_invoked = (Utopia.ResourceScene)translator.FastGetCSObj(L, 1); { System.Action <Utopia.ResourceScene.LoadResult, string> __cb = translator.GetDelegate <System.Action <Utopia.ResourceScene.LoadResult, string> >(L, 2); gen_to_be_invoked.SetCb(__cb); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_ReloadScene(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); Utopia.ResourceScene gen_to_be_invoked = (Utopia.ResourceScene)translator.FastGetCSObj(L, 1); { System.Action <Utopia.ResourceScene.LoadResult, string> _newCb = translator.GetDelegate <System.Action <Utopia.ResourceScene.LoadResult, string> >(L, 2); bool gen_ret = gen_to_be_invoked.ReloadScene(_newCb); LuaAPI.lua_pushboolean(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }