void SetupStep(Step Step) { Steps[Step.Name] = Step; }
public OutlineStep(Step Core) { this.Core = Core; OutlineArgs = new List<string>(Core.Args); }
void SetupCurrentStepFrom(string DesiredStepPrototype) { Action Fail = () => { throw new Exception("Missing implementation for '" + DesiredStepPrototype + "'"); }; var DesiredStep = new Step(DesiredStepPrototype); if (!Steps.ContainsKey(DesiredStep.Name)) Fail(); var CorrespondingStep = Steps[DesiredStep.Name]; if (DesiredStep.Args.Count != CorrespondingStep.Args.Count) Fail(); CurrentStep = CorrespondingStep; CurrentStep.Args = DesiredStep.Args; }