protected override void GenerateConstructor(Attachment attachment, StreamWriter stream, string indent, string className) { base.GenerateConstructor(attachment, stream, indent, className); AttachAction attach = attachment as AttachAction; if (attach == null) { return; } RightValueCsExporter.GenerateClassConstructor(attachment, attach.Opl, stream, indent, "opl"); if (!attach.IsAction()) { if (attach.IsCompute() && attach.Opr1 != null) { RightValueCsExporter.GenerateClassConstructor(attachment, attach.Opr1, stream, indent, "opr1"); } if (attach.Opr2 != null) { RightValueCsExporter.GenerateClassConstructor(attachment, attach.Opr2, stream, indent, "opr2"); } } }
protected override void GenerateConstructor(Node node, StreamWriter stream, string indent, string className) { base.GenerateConstructor(node, stream, indent, className); Assignment assignment = node as Assignment; Debug.Check(assignment != null); if (assignment.Opr != null) { RightValueCsExporter.GenerateClassConstructor(assignment.Opr, stream, indent, "opr"); } }
protected override void GenerateConstructor(Node node, StringWriter stream, string indent, string className) { base.GenerateConstructor(node, stream, indent, className); WaitFrames waitFrames = node as WaitFrames; if (waitFrames == null) { return; } if (waitFrames.Frames != null) { RightValueCsExporter.GenerateClassConstructor(node, waitFrames.Frames, stream, indent, "Frames"); } }
protected override void GenerateConstructor(Node node, StreamWriter stream, string indent, string className) { base.GenerateConstructor(node, stream, indent, className); WaitState waitState = node as WaitState; if (waitState == null) { return; } if (waitState.Time != null) { RightValueCsExporter.GenerateClassConstructor(waitState.Time, stream, indent, "Time"); } }
protected override void GenerateConstructor(Node node, StringWriter stream, string indent, string className) { base.GenerateConstructor(node, stream, indent, className); DecoratorTime decoratorTime = node as DecoratorTime; if (decoratorTime == null) { return; } if (decoratorTime.Time != null) { RightValueCsExporter.GenerateClassConstructor(node, decoratorTime.Time, stream, indent, "Time"); } }
protected override void GenerateConstructor(Node node, StreamWriter stream, string indent, string className) { base.GenerateConstructor(node, stream, indent, className); PluginBehaviac.Nodes.Condition condition = node as PluginBehaviac.Nodes.Condition; Debug.Check(condition != null); if (condition.Opl != null) { RightValueCsExporter.GenerateClassConstructor(condition.Opl, stream, indent, "opl"); } if (condition.Opr != null) { VariableCsExporter.GenerateClassConstructor(condition.Opr, stream, indent, "opr"); } }
protected override void GenerateConstructor(Node node, StreamWriter stream, string indent, string className) { base.GenerateConstructor(node, stream, indent, className); Compute compute = node as Compute; Debug.Check(compute != null); if (compute.Opr1 != null) { RightValueCsExporter.GenerateClassConstructor(compute.Opr1, stream, indent, "opr1"); } if (compute.Opr2 != null) { RightValueCsExporter.GenerateClassConstructor(compute.Opr2, stream, indent, "opr2"); } }
protected override void GenerateConstructor(Node node, StringWriter stream, string indent, string className) { base.GenerateConstructor(node, stream, indent, className); End end = node as End; if (end == null) { return; } if (end.EndStatus != null) { RightValueCsExporter.GenerateClassConstructor(node, end.EndStatus, stream, indent, "EndStatus"); } if (end.EndOutside) { stream.WriteLine("{0}\t\t\tm_endOutside = true;", indent); } }
protected override void GenerateConstructor(Node node, StringWriter stream, string indent, string className) { base.GenerateConstructor(node, stream, indent, className); Assignment assignment = node as Assignment; if (assignment == null) { return; } if (assignment.IsCasting) { stream.WriteLine("{0}\t\t\tm_bCast = true;", indent); } if (assignment.Opr != null) { RightValueCsExporter.GenerateClassConstructor(node, assignment.Opr, stream, indent, "opr"); } }
protected override void GenerateConstructor(Attachment attachment, StreamWriter stream, string indent, string className) { base.GenerateConstructor(attachment, stream, indent, className); TransitionCondition transition = attachment as TransitionCondition; if (transition == null) { return; } stream.WriteLine("{0}\t\t\tthis.TargetStateId = {1};", indent, transition.TargetFSMNodeId); if (transition.Opl != null) { RightValueCsExporter.GenerateClassConstructor(attachment, transition.Opl, stream, indent, "opl"); } if (transition.Opr2 != null) { RightValueCsExporter.GenerateClassConstructor(attachment, transition.Opr2, stream, indent, "opr2"); } }