예제 #1
0
 public Match CreateMatch()
 {
     Match match = new Match();
     match.Id = Guid.NewGuid();
     Matches.Add(match);
     return match;
 }
예제 #2
0
 public GameDirector(Match m)
 {
     match = m;
 }
예제 #3
0
 public static AsyncMessage GetInitMessage(Match match)
 {
     return new AsyncMessage(MessageType.InitialGameState, new { Board = new BoardStateInfo(match.BoardState) });
 }