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

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

            Action action = node as Action;

            Debug.Check(action != null);

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

            Nodes.Action action = node as Nodes.Action;

            if (action == null)
            {
                return;
            }

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

            State state = node as State;

            if (state == null)
            {
                return;
            }

            stream.WriteLine("{0}\t\t\tthis->m_bIsEndState = {1};", indent, state.IsEndState ? "true" : "false");

            if (state.Method != null)
            {
                MethodCppExporter.GenerateClassConstructor(node, state.Method, stream, indent, "method");
            }
        }