private IEnumerator ExecuteWait(IExecuteCommand cmd) { this.freeze = true; yield return(cmd.OnExecute()); this.freeze = false; }
public void ExecuteLazyCommand() { IExecuteCommand command = Activator.CreateInstance(this.type) as IExecuteCommand; command.ExecuteLazyCommand(); }
// 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); }
public ConsoleEx(IExecuteCommand invoker, IDrive drive) { this.invoker = invoker; this.drive = drive; outputter = new ConsoleOutputter(); }
/***************************************************/ public static string IToSqlCommand(this IExecuteCommand request) { return(ToSqlCommand(request as dynamic)); }
public ActionCommand(IExecuteCommand command) { this.command = command; }
// Use this for initialization void Start() { this.firstCmd = first.GetComponent <IExecuteCommand>(); this.secondCmd = second.GetComponent <IExecuteCommand>(); }