/// <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, "离开成功"); } }
/// <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, "离开成功"); } }