示例#1
0
        protected virtual void GenerateMember(Node node, StreamWriter stream, string indent)
        {
            if (node.EnterAction != null && node.EnterAction.Name != "null_method")
            {
                MethodCppExporter.GenerateClassMember(node.EnterAction, stream, indent, "EnterAction");
            }

            if (node.ExitAction != null && node.ExitAction.Name != "null_method")
            {
                MethodCppExporter.GenerateClassMember(node.ExitAction, stream, indent, "ExitAction");
            }
        }
示例#2
0
        protected override void GenerateMember(Node node, StreamWriter stream, string indent)
        {
            base.GenerateMember(node, stream, indent);

            Action action = node as Action;

            Debug.Check(action != null);

            if (action.Method != null)
            {
                MethodCppExporter.GenerateClassMember(action.Method, stream, indent, "method");
            }
        }
示例#3
0
        protected override void GenerateMember(Node node, StringWriter stream, string indent)
        {
            base.GenerateMember(node, stream, indent);

            State state = node as State;

            if (state == null)
            {
                return;
            }

            if (state.Method != null)
            {
                MethodCppExporter.GenerateClassMember(state.Method, stream, indent, "method");
            }
        }
示例#4
0
        protected override void GenerateMember(Node node, StringWriter stream, string indent)
        {
            base.GenerateMember(node, stream, indent);

            Nodes.Action action = node as Nodes.Action;

            if (action == null)
            {
                return;
            }

            if (action.Method != null)
            {
                MethodCppExporter.GenerateClassMember(action.Method, stream, indent, "method");
            }
        }