static int _m_AddTimeline(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityMMO.TimelineManager gen_to_be_invoked = (UnityMMO.TimelineManager)translator.FastGetCSObj(L, 1); { long _id = LuaAPI.lua_toint64(L, 2); UnityMMO.TimelineInfo _info = (UnityMMO.TimelineInfo)translator.GetObject(L, 3, typeof(UnityMMO.TimelineInfo)); Unity.Entities.EntityManager _entityMgr = (Unity.Entities.EntityManager)translator.GetObject(L, 4, typeof(Unity.Entities.EntityManager)); gen_to_be_invoked.AddTimeline(_id, _info, _entityMgr); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 2 && translator.Assignable <Unity.Entities.EntityManager>(L, 2)) { Unity.Entities.EntityManager _entityManager = (Unity.Entities.EntityManager)translator.GetObject(L, 2, typeof(Unity.Entities.EntityManager)); Unity.Entities.EntityManager.EntityManagerDebug gen_ret = new Unity.Entities.EntityManager.EntityManagerDebug(_entityManager); 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 Unity.Entities.EntityManager.EntityManagerDebug constructor!")); }
static int _m_Init_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { Unity.Entities.EntityManager _entityMgr = (Unity.Entities.EntityManager)translator.GetObject(L, 1, typeof(Unity.Entities.EntityManager)); UnityMMO.SceneHelper.Init(_entityMgr); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
public Unity.Entities.EntityManager __Gen_Delegate_Imp37(object p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) { #endif RealStatePtr L = luaEnv.rawL; int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); ObjectTranslator translator = luaEnv.translator; translator.PushAny(L, p0); PCall(L, 1, 1, errFunc); Unity.Entities.EntityManager __gen_ret = (Unity.Entities.EntityManager)translator.GetObject(L, errFunc + 1, typeof(Unity.Entities.EntityManager)); LuaAPI.lua_settop(L, errFunc - 1); return(__gen_ret); #if THREAD_SAFE || HOTFIX_ENABLE } #endif }
static int _m_CopyAllComponentsToEntity_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { UnityEngine.GameObject _gameObject = (UnityEngine.GameObject)translator.GetObject(L, 1, typeof(UnityEngine.GameObject)); Unity.Entities.EntityManager _entityManager = (Unity.Entities.EntityManager)translator.GetObject(L, 2, typeof(Unity.Entities.EntityManager)); Unity.Entities.Entity _entity; translator.Get(L, 3, out _entity); Unity.Entities.GameObjectEntity.CopyAllComponentsToEntity(_gameObject, _entityManager, _entity); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_AddToEntityManager_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { Unity.Entities.EntityManager _entityManager = (Unity.Entities.EntityManager)translator.GetObject(L, 1, typeof(Unity.Entities.EntityManager)); UnityEngine.GameObject _gameObject = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); Unity.Entities.Entity gen_ret = Unity.Entities.GameObjectEntity.AddToEntityManager(_entityManager, _gameObject); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_IsDead_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { Unity.Entities.Entity _entity; translator.Get(L, 1, out _entity); Unity.Entities.EntityManager _entityMgr = (Unity.Entities.EntityManager)translator.GetObject(L, 2, typeof(Unity.Entities.EntityManager)); bool gen_ret = UnityMMO.ECSHelper.IsDead(_entity, _entityMgr); LuaAPI.lua_pushboolean(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }