public virtual void Handle(GameStartedEvent @event)
 {
     _openGames.Remove(@event.GameId);
 }
 public virtual void Handle(GameStartedEvent @event)
 {
     if (!_gameDetails.ContainsKey(@event.GameId)) return;
     var gameDetails = _gameDetails[@event.GameId];
     gameDetails.PlayerTwoId = @event.PlayerTwoId;
 }
Esempio n. 3
0
 public void Handle(GameStartedEvent @event)
 {
     state = GameState.Started;
     playerTwo = new GamePlayer(@event.PlayerTwoId);
 }