コード例 #1
0
 /// <summary>
 /// 离开匹配
 /// </summary>
 /// <param name="client"></param>
 private void onStopMatch(MobaClient client)
 {
     if (matchCache.StopMatch(client, playerCache.GetId(client)))
     {
         Send(client, OpCode.PlayerCode, OpPlayer.StopMatch, 0, "离开成功");
     }
 }
コード例 #2
0
        /// <summary>
        /// 离开匹配
        /// </summary>
        private void OnStopMatch(MobaClient client)
        {
            bool result = matchCache.StopMatch(client, playerCache.GetId(client));

            if (result == true)
            {
                Send(client, OpCode.PlayerCode, OpPlayer.StopMatch, 0, "离开成功");
            }
        }