public PitchViewModel(GameStateService gameState, GameEngineService gameEngine) { _gameState = gameState; _gameEngine = gameEngine; Initialize(); }
public MainViewModel() { _gameState = new GameStateService(new ObservableTimerService()); _gameEngine = new GameEngineService(_gameState); PitchVM = new PitchViewModel(_gameState, _gameEngine); DetailsVM = new DetailsViewModel(_gameState, _gameEngine); _gameState.Initialize(); }
public GameEngineService(GameStateService gameState) { _gameState = gameState; }
public DetailsViewModel(GameStateService gameState, GameEngineService gameEngine) { _gameState = gameState; _gameEngine = gameEngine; }