Esempio n. 1
0
        protected override void GenerateMember(Attachment attachment, StreamWriter stream, string indent)
        {
            base.GenerateMember(attachment, stream, indent);

            AttachAction attach = attachment as AttachAction;

            if (attach == null)
            {
                return;
            }

            RightValueCsExporter.GenerateClassMember(attach.Opl, stream, indent, "opl");

            if (!attach.IsAction())
            {
                if (attach.IsCompute() && attach.Opr1 != null)
                {
                    RightValueCsExporter.GenerateClassMember(attach.Opr1, stream, indent, "opr1");
                }

                if (attach.Opr2 != null)
                {
                    RightValueCsExporter.GenerateClassMember(attach.Opr2, stream, indent, "opr2");
                }
            }
        }
Esempio n. 2
0
        protected override void GenerateMember(Node node, StreamWriter stream, string indent)
        {
            base.GenerateMember(node, stream, indent);

            Assignment assignment = node as Assignment;

            Debug.Check(assignment != null);

            if (assignment.Opr != null)
            {
                RightValueCsExporter.GenerateClassMember(assignment.Opr, stream, indent, "opr");
            }
        }
Esempio n. 3
0
        protected override void GenerateMember(Node node, StringWriter stream, string indent)
        {
            base.GenerateMember(node, stream, indent);

            WaitFrames waitFrames = node as WaitFrames;

            if (waitFrames == null)
            {
                return;
            }

            if (waitFrames.Frames != null)
            {
                RightValueCsExporter.GenerateClassMember(waitFrames.Frames, stream, indent, "Frames");
            }
        }
Esempio n. 4
0
        protected override void GenerateMember(Node node, StreamWriter stream, string indent)
        {
            base.GenerateMember(node, stream, indent);

            ReferencedBehavior pReferencedBehavior = node as ReferencedBehavior;

            if (pReferencedBehavior == null)
            {
                return;
            }

            if (pReferencedBehavior.ReferenceBehavior != null)
            {
                RightValueCsExporter.GenerateClassMember(pReferencedBehavior.ReferenceBehavior, stream, indent, "Behavior");
            }
        }
Esempio n. 5
0
        protected override void GenerateMember(Node node, StreamWriter stream, string indent)
        {
            base.GenerateMember(node, stream, indent);

            WaitState waitState = node as WaitState;

            if (waitState == null)
            {
                return;
            }

            if (waitState.Time != null)
            {
                RightValueCsExporter.GenerateClassMember(waitState.Time, stream, indent, "Time");
            }
        }
Esempio n. 6
0
        protected override void GenerateMember(Node node, StreamWriter stream, string indent)
        {
            base.GenerateMember(node, stream, indent);

            DecoratorTime decoratorTime = node as DecoratorTime;

            if (decoratorTime == null)
            {
                return;
            }

            if (decoratorTime.Time != null)
            {
                RightValueCsExporter.GenerateClassMember(decoratorTime.Time, stream, indent, "Time");
            }
        }
Esempio n. 7
0
        protected override void GenerateMember(Node node, StringWriter stream, string indent)
        {
            base.GenerateMember(node, stream, indent);

            End end = node as End;

            if (end == null)
            {
                return;
            }

            if (end.EndStatus != null)
            {
                RightValueCsExporter.GenerateClassMember(end.EndStatus, stream, indent, "EndStatus");
            }
        }
Esempio n. 8
0
        protected override void GenerateMember(Node node, StreamWriter stream, string indent)
        {
            base.GenerateMember(node, stream, indent);

            PluginBehaviac.Nodes.Condition condition = node as PluginBehaviac.Nodes.Condition;
            Debug.Check(condition != null);

            if (condition.Opl != null)
            {
                RightValueCsExporter.GenerateClassMember(condition.Opl, stream, indent, "opl");
            }

            if (condition.Opr != null)
            {
                VariableCsExporter.GenerateClassMember(condition.Opr, stream, indent, "opr");
            }
        }
Esempio n. 9
0
        protected override void GenerateMember(Node node, StreamWriter stream, string indent)
        {
            base.GenerateMember(node, stream, indent);

            Compute compute = node as Compute;

            Debug.Check(compute != null);

            if (compute.Opr1 != null)
            {
                RightValueCsExporter.GenerateClassMember(compute.Opr1, stream, indent, "opr1");
            }

            if (compute.Opr2 != null)
            {
                RightValueCsExporter.GenerateClassMember(compute.Opr2, stream, indent, "opr2");
            }
        }
Esempio n. 10
0
        protected override void GenerateMember(Attachment attachment, StreamWriter stream, string indent)
        {
            base.GenerateMember(attachment, stream, indent);

            TransitionCondition transition = attachment as TransitionCondition;

            if (transition == null)
            {
                return;
            }

            if (transition.Opl != null)
            {
                RightValueCsExporter.GenerateClassMember(transition.Opl, stream, indent, "opl");
            }

            if (transition.Opr2 != null)
            {
                RightValueCsExporter.GenerateClassMember(transition.Opr2, stream, indent, "opr2");
            }
        }