Exemplo n.º 1
0
 public GameDetails(GameModel game)
 {
     GameId  = game.GameId;
     Label   = game.Label;
     State   = game.State;
     Players = game.ListPlayers().Select(p => new PlayerInfo(p)).ToArray();
 }
Exemplo n.º 2
0
        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");
        }