Пример #1
0
 /// <summary>
 /// Asks the client whether to join a match.
 /// </summary>
 /// <param name="proposal">The proposed match.</param>
 public void ProposeMatch(MatchProposal proposal)
 {
     AddMessageOnGuiThread("Match proposed");
 }
Пример #2
0
 /// <summary>
 /// Asks the client whether to join a match.
 /// </summary>
 /// <param name="proposal">The proposed match.</param>
 public void ProposeMatch(MatchProposal proposal)
 {
     _sender.AcceptMatch(proposal);
 }
Пример #3
0
 /// <summary>
 /// Asks the client whether to join a match.
 /// </summary>
 /// <param name="proposal">The proposed match.</param>
 public void ProposeMatch(MatchProposal proposal)
 {
 }
Пример #4
0
 /// <summary>
 /// Accepts a proposed match.
 /// </summary>
 /// <param name="proposal">The proposed match.</param>
 public void AcceptMatch(MatchProposal proposal)
 {
     Validate.NotNull(proposal, "proposal");
       var t = new XAttribute("t", InvariantConvert.Format("{0},{1},r", proposal.Lobby, proposal.MatchType.TypeId));
       _connection.Send(new XElement("JOIN", t));
 }