Exemple #1
0
 public virtual void Execute(IGameStateCommand command)
 {
     command.Execute(_gameStateManager.GameState);
     if (_stateUpdated != null)
     {
         _stateUpdated(_gameStateManager.GameState);
     }
 }
Exemple #2
0
 public GameStateCommandException(IGameStateCommand cmd) : base()
 {
     Cmd = cmd;
 }
 public override void Execute(IGameStateCommand command)
 {
     _commands.Add(command);
     base.Execute(command);
 }
 public virtual void Execute(IGameStateCommand command)
 {
     command.Execute(_gameStateManager.GameState);
     _stateUpdated.OnNext(_gameStateManager.GameState);
 }
 public virtual void Execute(IGameStateCommand command)
 {
     command.Execute(_gameStateManager.GameState);
     _StateUpdated?.Invoke(_gameStateManager.GameState);
 }
 public void IssueCommand(IGameStateCommand cmd);