Example #1
0
    private IEnumerator ExecuteWait(IExecuteCommand cmd)
    {
        this.freeze = true;
        yield return(cmd.OnExecute());

        this.freeze = false;
    }
Example #2
0
        public void ExecuteLazyCommand()
        {
            IExecuteCommand command = Activator.CreateInstance(this.type) as IExecuteCommand;

            command.ExecuteLazyCommand();
        }
Example #3
0
 // Fallback case
 private bool RunCommand(IExecuteCommand command)
 {
     BH.Engine.Base.Compute.RecordError($"The command {command.GetType().Name} is not supported by {this.GetType().Name}");
     return(true);
 }
Example #4
0
 public ConsoleEx(IExecuteCommand invoker, IDrive drive)
 {
     this.invoker = invoker;
     this.drive   = drive;
     outputter    = new ConsoleOutputter();
 }
Example #5
0
        /***************************************************/

        public static string IToSqlCommand(this IExecuteCommand request)
        {
            return(ToSqlCommand(request as dynamic));
        }
Example #6
0
 public ActionCommand(IExecuteCommand command)
 {
     this.command = command;
 }
Example #7
0
 // Use this for initialization
 void Start()
 {
     this.firstCmd  = first.GetComponent <IExecuteCommand>();
     this.secondCmd = second.GetComponent <IExecuteCommand>();
 }
Example #8
0
 public ActionCommand(IExecuteCommand command)
 {
     this.command = command;
 }