Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GameService"/> class.
 /// </summary>
 public GameService()
 {
     _currentGame = new PlayersReport
     {
         PlayerLocations = new List<PlayerLocation>(),
         CurGameState = GameState.PreLaunch
     };
 }
Esempio n. 2
0
 public bool Setup(string password)
 {
     var isGameReset = false;
     if (password == _password)
     {
         _currentGame = new PlayersReport
         {
             PlayerLocations = new List<PlayerLocation>(),
             CurGameState = GameState.PreLaunch
         };
         isGameReset = true;
     }
     return isGameReset;
 }