Exemplo n.º 1
0
        static int _m_IsActorCanAttackLocalPlayer(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.PKModeManagerEx __cl_gen_to_be_invoked = (xc.PKModeManagerEx)translator.FastGetCSObj(L, 1);


            try {
                {
                    Actor actor     = (Actor)translator.GetObject(L, 2, typeof(Actor));
                    bool  show_tips = LuaAPI.lua_toboolean(L, 3);

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.IsActorCanAttackLocalPlayer(actor, ref show_tips);
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);
                    LuaAPI.lua_pushboolean(L, show_tips);



                    return(2);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Exemplo n.º 2
0
        static int _s_set_mGamePKLvProtect(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.PKModeManagerEx __cl_gen_to_be_invoked = (xc.PKModeManagerEx)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.mGamePKLvProtect = LuaAPI.xlua_tointeger(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Exemplo n.º 3
0
        static int _s_set_IsPVPBattleState(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.PKModeManagerEx __cl_gen_to_be_invoked = (xc.PKModeManagerEx)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.IsPVPBattleState = LuaAPI.lua_toboolean(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Exemplo n.º 4
0
        static int _g_get_LocalPlayerNameColor(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.PKModeManagerEx __cl_gen_to_be_invoked = (xc.PKModeManagerEx)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushuint(L, __cl_gen_to_be_invoked.LocalPlayerNameColor);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Exemplo n.º 5
0
        static int _g_get_IsPKProtectionGreenName(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.PKModeManagerEx __cl_gen_to_be_invoked = (xc.PKModeManagerEx)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, __cl_gen_to_be_invoked.IsPKProtectionGreenName);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Exemplo n.º 6
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    xc.PKModeManagerEx __cl_gen_ret = new xc.PKModeManagerEx();
                    translator.Push(L, __cl_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 xc.PKModeManagerEx constructor!"));
        }
Exemplo n.º 7
0
        static int _m_GetInstance_xlua_st_(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



            try {
                {
                    xc.PKModeManagerEx __cl_gen_ret = xc.Singleton <xc.PKModeManagerEx> .GetInstance(  );

                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Exemplo n.º 8
0
        static int _m_Reset(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.PKModeManagerEx __cl_gen_to_be_invoked = (xc.PKModeManagerEx)translator.FastGetCSObj(L, 1);


            try {
                {
                    __cl_gen_to_be_invoked.Reset(  );



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Exemplo n.º 9
0
        static int _m_IsInPKScene(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.PKModeManagerEx __cl_gen_to_be_invoked = (xc.PKModeManagerEx)translator.FastGetCSObj(L, 1);


            try {
                {
                    bool __cl_gen_ret = __cl_gen_to_be_invoked.IsInPKScene(  );
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Exemplo n.º 10
0
        static int _m_DelOneEmey(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.PKModeManagerEx __cl_gen_to_be_invoked = (xc.PKModeManagerEx)translator.FastGetCSObj(L, 1);


            try {
                {
                    xc.UnitID uid = (xc.UnitID)translator.GetObject(L, 2, typeof(xc.UnitID));

                    __cl_gen_to_be_invoked.DelOneEmey(uid);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Exemplo n.º 11
0
        static int _m_CanShowPVPBlood(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.PKModeManagerEx __cl_gen_to_be_invoked = (xc.PKModeManagerEx)translator.FastGetCSObj(L, 1);


            try {
                {
                    Actor actor = (Actor)translator.GetObject(L, 2, typeof(Actor));

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.CanShowPVPBlood(actor);
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Exemplo n.º 12
0
        static int _m_TryShowHostileAttackTips(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.PKModeManagerEx __cl_gen_to_be_invoked = (xc.PKModeManagerEx)translator.FastGetCSObj(L, 1);


            try {
                {
                    bool   isPlayer = LuaAPI.lua_toboolean(L, 2);
                    uint   obj_idx  = LuaAPI.xlua_touint(L, 3);
                    string name     = LuaAPI.lua_tostring(L, 4);

                    __cl_gen_to_be_invoked.TryShowHostileAttackTips(isPlayer, obj_idx, name);



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