protected override void Run(ISession playerContext, C2S_ExitBattleMessage message)
        {
            ExitBattleLocalMessage localMessage = new ExitBattleLocalMessage
            {
                BattleId = message.BattleId, PlayerId = message.PlayerId
            };


            GameServer.Instance.PostMessageToSystem <BattleSystem>(localMessage);
        }
        /// <summary>
        /// 收到从服务器或客户端发来的玩家退出战斗的请求
        /// </summary>
        /// <param name="exitBattleLocal"></param>
        private void OnExitBattle(ExitBattleLocalMessage msg)
        {
            m_battleDic.TryGetValue(msg.BattleId, out Battle battle);
            S2C_ExitBattleMessage response = new S2C_ExitBattleMessage
            {
                PlayerId = msg.PlayerId, BattleId = msg.BattleId
            };

            if (battle == null)
            {
                PostLocalMessageToCtx(new SystemSendNetMessage {
                    Message = response, PlayerId = msg.PlayerId
                }, msg.PlayerId);
                return;
            }
            battle.OnExitBattle(msg.PlayerId, response);
        }