Esempio n. 1
0
 /// <summary>
 /// Gets the game by a client.
 /// </summary>
 /// <param name="client">The client.</param>
 /// <returns></returns>
 public MazeGame GetGame(IClient client)
 {
     return(container.GetGame(client));
 }
 public Player GetPlayerDetails(int gameId, int playerId)
 {
     return(_games.GetGame(gameId).GetPlayers().FirstOrDefault(x => x.PlayerId == playerId));
 }