public GameDetails(GameModel game) { GameId = game.GameId; Label = game.Label; State = game.State; Players = game.ListPlayers().Select(p => new PlayerInfo(p)).ToArray(); }
public void LogGameStart(GameModel game) { int i = 0; foreach (Player p in game.ListPlayers()) { LogMessage("PLAYER", "{0} - [{1}] {2} ({3})", i++, p.Team, p.Name, p.PlayerId); } LogMessage("START", "Game started"); }