Ejemplo n.º 1
0
        /// <summary>
        /// 离开匹配的处理
        /// </summary>
        /// <param name="client"></param>
        /// <param name="playerID"></param>
        private void OnMatchStop(MOBAClient client, int playerID)
        {
            bool result = matchCache.LeaveMatch(client, playerID);

            if (result)
            {
                Send(client, OperationCode.PlayerCode, OpPlayer.MatchStop, 0, "离开匹配成功");
            }
        }