static int _m_AddMonster(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityMMO.MonsterMgr gen_to_be_invoked = (UnityMMO.MonsterMgr)translator.FastGetCSObj(L, 1); { long _uid = LuaAPI.lua_toint64(L, 2); long _typeID = LuaAPI.lua_toint64(L, 3); UnityEngine.Vector3 _pos; translator.Get(L, 4, out _pos); UnityEngine.Vector3 _targetPos; translator.Get(L, 5, out _targetPos); float _curHp = (float)LuaAPI.lua_tonumber(L, 6); float _maxHp = (float)LuaAPI.lua_tonumber(L, 7); Unity.Entities.Entity gen_ret = gen_to_be_invoked.AddMonster(_uid, _typeID, _pos, _targetPos, _curHp, _maxHp); 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_MonsterContainer(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityMMO.MonsterMgr gen_to_be_invoked = (UnityMMO.MonsterMgr)translator.FastGetCSObj(L, 1); gen_to_be_invoked.MonsterContainer = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform)); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(0); }
static int _g_get_MonsterContainer(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityMMO.MonsterMgr gen_to_be_invoked = (UnityMMO.MonsterMgr)translator.FastGetCSObj(L, 1); translator.Push(L, gen_to_be_invoked.MonsterContainer); } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(1); }
static int _m_GetInstance_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { UnityMMO.MonsterMgr gen_ret = UnityMMO.MonsterMgr.GetInstance( ); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_OnDestroy(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityMMO.MonsterMgr gen_to_be_invoked = (UnityMMO.MonsterMgr)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.OnDestroy( ); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_Init(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityMMO.MonsterMgr gen_to_be_invoked = (UnityMMO.MonsterMgr)translator.FastGetCSObj(L, 1); { GameWorld _world = (GameWorld)translator.GetObject(L, 2, typeof(GameWorld)); gen_to_be_invoked.Init(_world); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetName(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityMMO.MonsterMgr gen_to_be_invoked = (UnityMMO.MonsterMgr)translator.FastGetCSObj(L, 1); { Unity.Entities.Entity _entity; translator.Get(L, 2, out _entity); string gen_ret = gen_to_be_invoked.GetName(_entity); LuaAPI.lua_pushstring(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }