/// <summary> /// Constructs a new instance of the game state machine. /// </summary> public GameStateMachine(IPlayerDirector director, ILogger <GameStateMachine> logger) { _logger = logger; Director = director; GameData = new GameData(); GameDataManipulator = new GameDataManipulator(GameData); PolicyDeck = new PolicyDeck(GameData.DrawPile, GameData.DiscardPile, true); }
public void LoadGameState(GameData data) { GameData = data; GameDataManipulator = new GameDataManipulator(GameData); PolicyDeck = new PolicyDeck(data.DrawPile, data.DiscardPile, false); }