示例#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;
 }