예제 #1
0
 private void ExecuteCommand(BaseCommand command)
 {
     command.Execute(Model);
     if (command.NextCommand != null)
     {
         ExecuteCommand(command.NextCommand);
     }
     else
     {
         SetAvailableActions();
     }
 }
예제 #2
0
 private Button ToButton(BaseCommand command, Texture2D texture)
 {
     return new Button
     {
         Command = command,
         Texture = texture
     };
 }
예제 #3
0
 public Shuffle(BaseCommand command)
 {
     NextCommand = command;
 }