Пример #1
0
        static int _m_AddRole(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityMMO.RoleMgr gen_to_be_invoked = (UnityMMO.RoleMgr)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.AddRole(_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));
            }
        }
Пример #2
0
        static int _m_AddMainRole(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityMMO.RoleMgr gen_to_be_invoked = (UnityMMO.RoleMgr)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);

                    Unity.Entities.Entity gen_ret = gen_to_be_invoked.AddMainRole(_uid, _typeID, _name, _career, _pos);
                    translator.Push(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Пример #3
0
        static int _s_set_RoleContainer(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                UnityMMO.RoleMgr gen_to_be_invoked = (UnityMMO.RoleMgr)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.RoleContainer = (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);
        }
Пример #4
0
        static int _g_get_RoleContainer(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                UnityMMO.RoleMgr gen_to_be_invoked = (UnityMMO.RoleMgr)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.RoleContainer);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
Пример #5
0
        static int _m_GetInstance_xlua_st_(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



                {
                    UnityMMO.RoleMgr gen_ret = UnityMMO.RoleMgr.GetInstance(  );
                    translator.Push(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Пример #6
0
        static int _m_OnDestroy(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityMMO.RoleMgr gen_to_be_invoked = (UnityMMO.RoleMgr)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));
            }
        }
Пример #7
0
        static int _m_GetMainRoleLooksInfo(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityMMO.RoleMgr gen_to_be_invoked = (UnityMMO.RoleMgr)translator.FastGetCSObj(L, 1);



                {
                    UnityMMO.RoleLooksInfo gen_ret = gen_to_be_invoked.GetMainRoleLooksInfo(  );
                    translator.Push(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Пример #8
0
        static int _m_Init(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityMMO.RoleMgr gen_to_be_invoked = (UnityMMO.RoleMgr)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));
            }
        }
Пример #9
0
        static int _m_UpdateLooksInfo(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityMMO.RoleMgr gen_to_be_invoked = (UnityMMO.RoleMgr)translator.FastGetCSObj(L, 1);



                {
                    long _uid = LuaAPI.lua_toint64(L, 2);
                    UnityMMO.RoleLooksInfo _info; translator.Get(L, 3, out _info);

                    gen_to_be_invoked.UpdateLooksInfo(_uid, _info);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Пример #10
0
        static int _m_SetName(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityMMO.RoleMgr gen_to_be_invoked = (UnityMMO.RoleMgr)translator.FastGetCSObj(L, 1);



                {
                    long   _uid  = LuaAPI.lua_toint64(L, 2);
                    string _name = LuaAPI.lua_tostring(L, 3);

                    gen_to_be_invoked.SetName(_uid, _name);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Пример #11
0
        static int _m_IsMainRoleEntity(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityMMO.RoleMgr gen_to_be_invoked = (UnityMMO.RoleMgr)translator.FastGetCSObj(L, 1);



                {
                    Unity.Entities.Entity _entity; translator.Get(L, 2, out _entity);

                    bool gen_ret = gen_to_be_invoked.IsMainRoleEntity(_entity);
                    LuaAPI.lua_pushboolean(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }