Пример #1
0
        public void StartGame(List <JUMPPlayer> Players)
        {
            GameState         = new WordsWarGameState();
            GameState.Stage   = WordsWarGameStages.SendBoardID;
            GameState.BoardID = BoardManager.GetNewBoard().BoardID;

            foreach (var pl in Players)
            {
                WordsWarPlayer player = new WordsWarPlayer();
                player.PlayerID    = pl.PlayerID;
                player.IsConnected = pl.IsConnected;

                GameState.Players.Add(player.PlayerID, player);
            }
        }
Пример #2
0
 public WordsWarServerEngine()
 {
     GameState = new WordsWarGameState();
 }