Ejemplo n.º 1
0
 public InGamePresenter(InGameViewModel viewModel, IEventDispatcherService eventDispatcherService)
 {
     _viewModel = viewModel;
     _eventDispatcherService = eventDispatcherService;
     _eventDispatcherService.Subscribe <NewWordSignal>(NewWord);
     _eventDispatcherService.Subscribe <GuessResultSignal>(GuessReceived);
     _eventDispatcherService.Subscribe <WordCompletedSignal>(WordCompleted);
     _eventDispatcherService.Subscribe <RestartGameSignal>(RestartGame);
     _eventDispatcherService.Subscribe <GameOverSignal>(GameOver);
 }
 public MainMenuPresenter(MainMenuViewModel viewModel, IEventDispatcherService eventDispatcherService)
 {
     _viewModel = viewModel;
     _eventDispatcherService = eventDispatcherService;
     _eventDispatcherService.Subscribe <NewWordSignal>(WordUpdated);
 }
Ejemplo n.º 3
0
 public LoadingPresenter(LoadingViewModel viewModel, IEventDispatcherService eventDispatcherService)
 {
     _viewModel = viewModel;
     _eventDispatcherService = eventDispatcherService;
     _eventDispatcherService.Subscribe <UpdateLoadingScreenSignal>(UpdateLoadingScreen);
 }