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

            if (node.ExitAction != null && node.ExitAction.Name != "null_method")
            {
                MethodCsExporter.GenerateClassConstructor(node.ExitAction, stream, indent, "ExitAction");
            }
        }
Example #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)
            {
                MethodCsExporter.GenerateClassConstructor(action.Method, stream, indent, "method");
            }
        }
Example #3
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 && !isNullMethod(state.Method))
            {
                MethodCsExporter.GenerateClassConstructor(node, state.Method, stream, indent, "method");
            }
        }
Example #4
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;
            }

            stream.WriteLine("{0}\t\t\tthis.m_resultOption = {1};", indent, getResultOptionStr(action.ResultOption));

            if (action.Method != null && !isNullMethod(action.Method))
            {
                MethodCsExporter.GenerateClassConstructor(node, action.Method, stream, indent, "method");
            }
        }