public bool Add(ScenarioData.Param item, int currentLine) { CommandBase commandBase = CommandList.CommandGet(item.Command); if (commandBase == null) { Debug.LogError((object)("CommandGet Failed:" + (object)item.Command)); return(true); } commandBase.Initialize(this.scenario, item.Command, item.Args); commandBase.ConvertBeforeArgsProc(); for (int index = 0; index < commandBase.args.Length; ++index) { commandBase.args[index] = this.scenario.ReplaceVars(commandBase.args[index]); } commandBase.localLine = currentLine; commandBase.Do(); base.Add(commandBase); return(item.Multi); }
public Transfer(ScenarioData.Param param) { this.line = -1; this.param = param; }