static int _m_CreateEntity_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 7 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable <UnityEngine.Vector3>(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6) && translator.Assignable <System.Action <XLua.LuaTable> >(L, 7)) { int _sceneid = LuaAPI.xlua_tointeger(L, 1); int _aoiId = LuaAPI.xlua_tointeger(L, 2); int _resId = LuaAPI.xlua_tointeger(L, 3); UnityEngine.Vector3 _bornPos; translator.Get(L, 4, out _bornPos); float _orientation = (float)LuaAPI.lua_tonumber(L, 5); int _entityType = LuaAPI.xlua_tointeger(L, 6); System.Action <XLua.LuaTable> _onBodyCreated = translator.GetDelegate <System.Action <XLua.LuaTable> >(L, 7); Game.EntityBehavior gen_ret = Game.EntityBehaviorManager.CreateEntity(_sceneid, _aoiId, _resId, _bornPos, _orientation, _entityType, _onBodyCreated); translator.Push(L, gen_ret); return(1); } if (gen_param_count == 6 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && translator.Assignable <UnityEngine.Vector3>(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6)) { int _sceneid = LuaAPI.xlua_tointeger(L, 1); int _aoiId = LuaAPI.xlua_tointeger(L, 2); int _resId = LuaAPI.xlua_tointeger(L, 3); UnityEngine.Vector3 _bornPos; translator.Get(L, 4, out _bornPos); float _orientation = (float)LuaAPI.lua_tonumber(L, 5); int _entityType = LuaAPI.xlua_tointeger(L, 6); Game.EntityBehavior gen_ret = Game.EntityBehaviorManager.CreateEntity(_sceneid, _aoiId, _resId, _bornPos, _orientation, _entityType); 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 Game.EntityBehaviorManager.CreateEntity!")); }
static int _m_GetEntity_xlua_st_(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); { int _uid = LuaAPI.xlua_tointeger(L, 1); Game.EntityBehavior gen_ret = Game.EntityBehaviorManager.GetEntity(_uid); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }