예제 #1
0
		public PitchViewModel(GameStateService gameState, GameEngineService gameEngine)
		{
			_gameState = gameState;
			_gameEngine = gameEngine;

			Initialize();
		}
예제 #2
0
		public MainViewModel()
		{
			_gameState = new GameStateService(new ObservableTimerService());
			_gameEngine = new GameEngineService(_gameState);

			PitchVM = new PitchViewModel(_gameState, _gameEngine);
			DetailsVM = new DetailsViewModel(_gameState, _gameEngine);

			_gameState.Initialize();
		}
예제 #3
0
		public GameEngineService(GameStateService gameState)
		{
			_gameState = gameState;
		}
예제 #4
0
		public DetailsViewModel(GameStateService gameState, GameEngineService gameEngine)
		{
			_gameState = gameState;
			_gameEngine = gameEngine;
		}