static int _m_AddMainRole(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); long _typeID = LuaAPI.lua_toint64(L, 3); string _name = LuaAPI.lua_tostring(L, 4); int _career = LuaAPI.xlua_tointeger(L, 5); UnityEngine.Vector3 _pos; translator.Get(L, 6, out _pos); float _curHp = (float)LuaAPI.lua_tonumber(L, 7); float _maxHp = (float)LuaAPI.lua_tonumber(L, 8); Unity.Entities.Entity gen_ret = gen_to_be_invoked.AddMainRole(_uid, _typeID, _name, _career, _pos, _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 _m_AddMainRole(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); UnityEngine.Vector3 _pos; translator.Get(L, 3, out _pos); Unity.Entities.Entity gen_ret = gen_to_be_invoked.AddMainRole(_uid, _pos); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }