public void ExecCommand(IFrameCommand cmd)
        {
            SLevelContext curLvelContext = Singleton <BattleLogic> .get_instance().GetCurLvelContext();

            bool   flag   = curLvelContext != null && curLvelContext.IsMobaMode();
            Player player = Singleton <GamePlayerCenter> .GetInstance().GetPlayer(cmd.playerID);

            if (player != null && ((flag && player.isGM) || (!flag && LobbyMsgHandler.isHostGMAcnt)))
            {
                CheatCommandBattleEntry.ProcessCheat(this.CheatType, ref player.Captain);
            }
        }
        public void ExecCommand(IFrameCommand cmd)
        {
            SLevelContext curLvelContext = Singleton <BattleLogic> .instance.GetCurLvelContext();

            bool   flag   = curLvelContext != null && curLvelContext.IsMobaMode();
            Player player = Singleton <GamePlayerCenter> .GetInstance().GetPlayer(cmd.playerID);

            if (player != null && ((flag && player.isGM) || (!flag && LobbyMsgHandler.isHostGMAcnt)))
            {
                PoolObjHandle <ActorRoot> orignalActor = player.Captain.handle.ActorControl.GetOrignalActor();
                if (orignalActor)
                {
                    CheatCommandBattleEntry.ProcessCheat(this.CheatType, ref orignalActor);
                }
            }
        }
 public static string ZeroCD()
 {
     return(CheatCommandBattleEntry.SendCommand(EBattleCheatType.EBC_ZeroCD));
 }
 public static string ResetLevel()
 {
     return(CheatCommandBattleEntry.SendCommand(EBattleCheatType.EBC_ResetLevel));
 }
 public static string LevelUp()
 {
     return(CheatCommandBattleEntry.SendCommand(EBattleCheatType.EBC_UpLevel));
 }