Exemplo n.º 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");
 }
Exemplo n.º 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);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Asks the client whether to join a match.
 /// </summary>
 /// <param name="proposal">The proposed match.</param>
 public void ProposeMatch(MatchProposal proposal)
 {
 }
Exemplo n.º 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));
 }