static int _m_AddRole(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityMMO.SceneMgr gen_to_be_invoked = (UnityMMO.SceneMgr)translator.FastGetCSObj(L, 1); { long _uid = LuaAPI.lua_toint64(L, 2); Unity.Entities.Entity gen_ret = gen_to_be_invoked.AddRole(_uid); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetCorrectPos(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityMMO.SceneMgr gen_to_be_invoked = (UnityMMO.SceneMgr)translator.FastGetCSObj(L, 1); { UnityEngine.Vector3 _originPos; translator.Get(L, 2, out _originPos); UnityEngine.Vector3 gen_ret = gen_to_be_invoked.GetCorrectPos(_originPos); translator.PushUnityEngineVector3(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetSceneObjects(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityMMO.SceneMgr gen_to_be_invoked = (UnityMMO.SceneMgr)translator.FastGetCSObj(L, 1); { UnityMMO.SceneObjectType _type; translator.Get(L, 2, out _type); System.Collections.Generic.Dictionary <long, Unity.Entities.Entity> gen_ret = gen_to_be_invoked.GetSceneObjects(_type); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_RemoveSceneEntity(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityMMO.SceneMgr gen_to_be_invoked = (UnityMMO.SceneMgr)translator.FastGetCSObj(L, 1); { Unity.Entities.Entity _entity; translator.Get(L, 2, out _entity); bool _deleInDic = LuaAPI.lua_toboolean(L, 3); gen_to_be_invoked.RemoveSceneEntity(_entity, _deleInDic); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetNameByUID(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityMMO.SceneMgr gen_to_be_invoked = (UnityMMO.SceneMgr)translator.FastGetCSObj(L, 1); { long _uid = LuaAPI.lua_toint64(L, 2); string gen_ret = gen_to_be_invoked.GetNameByUID(_uid); LuaAPI.lua_pushstring(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_ReqEnterScene(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityMMO.SceneMgr gen_to_be_invoked = (UnityMMO.SceneMgr)translator.FastGetCSObj(L, 1); { int _scene_id = LuaAPI.xlua_tointeger(L, 2); int _door_id = LuaAPI.xlua_tointeger(L, 3); gen_to_be_invoked.ReqEnterScene(_scene_id, _door_id); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_LoadScene(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityMMO.SceneMgr gen_to_be_invoked = (UnityMMO.SceneMgr)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 5 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) { int _scene_id = LuaAPI.xlua_tointeger(L, 2); float _pos_x = (float)LuaAPI.lua_tonumber(L, 3); float _pos_y = (float)LuaAPI.lua_tonumber(L, 4); float _pos_z = (float)LuaAPI.lua_tonumber(L, 5); gen_to_be_invoked.LoadScene(_scene_id, _pos_x, _pos_y, _pos_z); return(0); } if (gen_param_count == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) { int _scene_id = LuaAPI.xlua_tointeger(L, 2); float _pos_x = (float)LuaAPI.lua_tonumber(L, 3); float _pos_y = (float)LuaAPI.lua_tonumber(L, 4); gen_to_be_invoked.LoadScene(_scene_id, _pos_x, _pos_y); return(0); } if (gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) { int _scene_id = LuaAPI.xlua_tointeger(L, 2); float _pos_x = (float)LuaAPI.lua_tonumber(L, 3); gen_to_be_invoked.LoadScene(_scene_id, _pos_x); return(0); } if (gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) { int _scene_id = LuaAPI.xlua_tointeger(L, 2); gen_to_be_invoked.LoadScene(_scene_id); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityMMO.SceneMgr.LoadScene!")); }