예제 #1
0
 public static bool build_behavior_tree(BehaviorTree bt)
 {
     bt.SetClassNameString("BehaviorTree");
     bt.SetId(-1);
     bt.SetName("Tank_Take_Award_Destroy_Enemy");
     #if !BEHAVIAC_RELEASE
     bt.SetAgentType("Player");
     #endif
     // pars
     bt.AddPar("UnityEngine.Vector3", "parT_enemyPosition", "{kEpsilon=0;x=0;y=0;z=0;}", "");
     bt.AddPar("behaviac.Agent", "parT_nearestEnemy", "null", "");
     bt.AddPar("int", "parT_PathFindLevel", "0", "");
     bt.AddPar("UnityEngine.Vector3", "parT_NavTargetPosition", "{kEpsilon=0;x=0;y=0;z=0;}", "");
     bt.AddPar("int", "parT_AwardID", "0", "");
     // children
     {
         DecoratorAlwaysRunning_bt_Tank_Take_Award_Destroy_Enemy_node10 node10 = new DecoratorAlwaysRunning_bt_Tank_Take_Award_Destroy_Enemy_node10();
         node10.SetClassNameString("DecoratorAlwaysRunning");
         node10.SetId(10);
     #if !BEHAVIAC_RELEASE
         node10.SetAgentType("Player");
     #endif
         bt.AddChild(node10);
         {
             Selector node11 = new Selector();
             node11.SetClassNameString("Selector");
             node11.SetId(11);
     #if !BEHAVIAC_RELEASE
             node11.SetAgentType("Player");
     #endif
             node10.AddChild(node11);
             {
                 Sequence node17 = new Sequence();
                 node17.SetClassNameString("Sequence");
                 node17.SetId(17);
     #if !BEHAVIAC_RELEASE
                 node17.SetAgentType("Player");
     #endif
                 node11.AddChild(node17);
                 {
                     Assignment_bt_Tank_Take_Award_Destroy_Enemy_node18 node18 = new Assignment_bt_Tank_Take_Award_Destroy_Enemy_node18();
                     node18.SetClassNameString("Assignment");
                     node18.SetId(18);
     #if !BEHAVIAC_RELEASE
                     node18.SetAgentType("Player");
     #endif
                     node17.AddChild(node18);
                     node17.SetHasEvents(node17.HasEvents() | node18.HasEvents());
                 }
                 {
                     Condition_bt_Tank_Take_Award_Destroy_Enemy_node19 node19 = new Condition_bt_Tank_Take_Award_Destroy_Enemy_node19();
                     node19.SetClassNameString("Condition");
                     node19.SetId(19);
     #if !BEHAVIAC_RELEASE
                     node19.SetAgentType("Player");
     #endif
                     node17.AddChild(node19);
                     node17.SetHasEvents(node17.HasEvents() | node19.HasEvents());
                 }
                 {
                     Assignment_bt_Tank_Take_Award_Destroy_Enemy_node20 node20 = new Assignment_bt_Tank_Take_Award_Destroy_Enemy_node20();
                     node20.SetClassNameString("Assignment");
                     node20.SetId(20);
     #if !BEHAVIAC_RELEASE
                     node20.SetAgentType("Player");
     #endif
                     node17.AddChild(node20);
                     node17.SetHasEvents(node17.HasEvents() | node20.HasEvents());
                 }
                 {
                     IfElse node13 = new IfElse();
                     node13.SetClassNameString("IfElse");
                     node13.SetId(13);
     #if !BEHAVIAC_RELEASE
                     node13.SetAgentType("Player");
     #endif
                     node17.AddChild(node13);
                     {
                         Condition_bt_Tank_Take_Award_Destroy_Enemy_node14 node14 = new Condition_bt_Tank_Take_Award_Destroy_Enemy_node14();
                         node14.SetClassNameString("Condition");
                         node14.SetId(14);
     #if !BEHAVIAC_RELEASE
                         node14.SetAgentType("Player");
     #endif
                         node13.AddChild(node14);
                         node13.SetHasEvents(node13.HasEvents() | node14.HasEvents());
                     }
                     {
                         Assignment_bt_Tank_Take_Award_Destroy_Enemy_node15 node15 = new Assignment_bt_Tank_Take_Award_Destroy_Enemy_node15();
                         node15.SetClassNameString("Assignment");
                         node15.SetId(15);
     #if !BEHAVIAC_RELEASE
                         node15.SetAgentType("Player");
     #endif
                         node13.AddChild(node15);
                         node13.SetHasEvents(node13.HasEvents() | node15.HasEvents());
                     }
                     {
                         Assignment_bt_Tank_Take_Award_Destroy_Enemy_node16 node16 = new Assignment_bt_Tank_Take_Award_Destroy_Enemy_node16();
                         node16.SetClassNameString("Assignment");
                         node16.SetId(16);
     #if !BEHAVIAC_RELEASE
                         node16.SetAgentType("Player");
     #endif
                         node13.AddChild(node16);
                         node13.SetHasEvents(node13.HasEvents() | node16.HasEvents());
                     }
                     node17.SetHasEvents(node17.HasEvents() | node13.HasEvents());
                 }
                 {
                     Action_bt_Tank_Take_Award_Destroy_Enemy_node8 node8 = new Action_bt_Tank_Take_Award_Destroy_Enemy_node8();
                     node8.SetClassNameString("Action");
                     node8.SetId(8);
     #if !BEHAVIAC_RELEASE
                     node8.SetAgentType("Player");
     #endif
                     node17.AddChild(node8);
                     node17.SetHasEvents(node17.HasEvents() | node8.HasEvents());
                 }
                 {
                     Action_bt_Tank_Take_Award_Destroy_Enemy_node29 node29 = new Action_bt_Tank_Take_Award_Destroy_Enemy_node29();
                     node29.SetClassNameString("Action");
                     node29.SetId(29);
     #if !BEHAVIAC_RELEASE
                     node29.SetAgentType("Player");
     #endif
                     node17.AddChild(node29);
                     node17.SetHasEvents(node17.HasEvents() | node29.HasEvents());
                 }
                 node11.SetHasEvents(node11.HasEvents() | node17.HasEvents());
             }
             {
                 Sequence node27 = new Sequence();
                 node27.SetClassNameString("Sequence");
                 node27.SetId(27);
     #if !BEHAVIAC_RELEASE
                 node27.SetAgentType("Player");
     #endif
                 node11.AddChild(node27);
                 {
                     Assignment_bt_Tank_Take_Award_Destroy_Enemy_node28 node28 = new Assignment_bt_Tank_Take_Award_Destroy_Enemy_node28();
                     node28.SetClassNameString("Assignment");
                     node28.SetId(28);
     #if !BEHAVIAC_RELEASE
                     node28.SetAgentType("Player");
     #endif
                     node27.AddChild(node28);
                     node27.SetHasEvents(node27.HasEvents() | node28.HasEvents());
                 }
                 {
                     Condition_bt_Tank_Take_Award_Destroy_Enemy_node34 node34 = new Condition_bt_Tank_Take_Award_Destroy_Enemy_node34();
                     node34.SetClassNameString("Condition");
                     node34.SetId(34);
     #if !BEHAVIAC_RELEASE
                     node34.SetAgentType("Player");
     #endif
                     node27.AddChild(node34);
                     node27.SetHasEvents(node27.HasEvents() | node34.HasEvents());
                 }
                 {
                     Assignment_bt_Tank_Take_Award_Destroy_Enemy_node37 node37 = new Assignment_bt_Tank_Take_Award_Destroy_Enemy_node37();
                     node37.SetClassNameString("Assignment");
                     node37.SetId(37);
     #if !BEHAVIAC_RELEASE
                     node37.SetAgentType("Player");
     #endif
                     node27.AddChild(node37);
                     node27.SetHasEvents(node27.HasEvents() | node37.HasEvents());
                 }
                 {
                     IfElse node23 = new IfElse();
                     node23.SetClassNameString("IfElse");
                     node23.SetId(23);
     #if !BEHAVIAC_RELEASE
                     node23.SetAgentType("Player");
     #endif
                     node27.AddChild(node23);
                     {
                         Condition_bt_Tank_Take_Award_Destroy_Enemy_node24 node24 = new Condition_bt_Tank_Take_Award_Destroy_Enemy_node24();
                         node24.SetClassNameString("Condition");
                         node24.SetId(24);
     #if !BEHAVIAC_RELEASE
                         node24.SetAgentType("Player");
     #endif
                         node23.AddChild(node24);
                         node23.SetHasEvents(node23.HasEvents() | node24.HasEvents());
                     }
                     {
                         Assignment_bt_Tank_Take_Award_Destroy_Enemy_node25 node25 = new Assignment_bt_Tank_Take_Award_Destroy_Enemy_node25();
                         node25.SetClassNameString("Assignment");
                         node25.SetId(25);
     #if !BEHAVIAC_RELEASE
                         node25.SetAgentType("Player");
     #endif
                         node23.AddChild(node25);
                         node23.SetHasEvents(node23.HasEvents() | node25.HasEvents());
                     }
                     {
                         Assignment_bt_Tank_Take_Award_Destroy_Enemy_node26 node26 = new Assignment_bt_Tank_Take_Award_Destroy_Enemy_node26();
                         node26.SetClassNameString("Assignment");
                         node26.SetId(26);
     #if !BEHAVIAC_RELEASE
                         node26.SetAgentType("Player");
     #endif
                         node23.AddChild(node26);
                         node23.SetHasEvents(node23.HasEvents() | node26.HasEvents());
                     }
                     node27.SetHasEvents(node27.HasEvents() | node23.HasEvents());
                 }
                 {
                     Action_bt_Tank_Take_Award_Destroy_Enemy_node21 node21 = new Action_bt_Tank_Take_Award_Destroy_Enemy_node21();
                     node21.SetClassNameString("Action");
                     node21.SetId(21);
     #if !BEHAVIAC_RELEASE
                     node21.SetAgentType("Player");
     #endif
                     node27.AddChild(node21);
                     node27.SetHasEvents(node27.HasEvents() | node21.HasEvents());
                 }
                 {
                     Action_bt_Tank_Take_Award_Destroy_Enemy_node30 node30 = new Action_bt_Tank_Take_Award_Destroy_Enemy_node30();
                     node30.SetClassNameString("Action");
                     node30.SetId(30);
     #if !BEHAVIAC_RELEASE
                     node30.SetAgentType("Player");
     #endif
                     node27.AddChild(node30);
                     node27.SetHasEvents(node27.HasEvents() | node30.HasEvents());
                 }
                 node11.SetHasEvents(node11.HasEvents() | node27.HasEvents());
             }
             {
                 Sequence node2 = new Sequence();
                 node2.SetClassNameString("Sequence");
                 node2.SetId(2);
     #if !BEHAVIAC_RELEASE
                 node2.SetAgentType("Player");
     #endif
                 node11.AddChild(node2);
                 {
                     Condition_bt_Tank_Take_Award_Destroy_Enemy_node12 node12 = new Condition_bt_Tank_Take_Award_Destroy_Enemy_node12();
                     node12.SetClassNameString("Condition");
                     node12.SetId(12);
     #if !BEHAVIAC_RELEASE
                     node12.SetAgentType("Player");
     #endif
                     node2.AddChild(node12);
                     node2.SetHasEvents(node2.HasEvents() | node12.HasEvents());
                 }
                 {
                     Action_bt_Tank_Take_Award_Destroy_Enemy_node1 node1 = new Action_bt_Tank_Take_Award_Destroy_Enemy_node1();
                     node1.SetClassNameString("Action");
                     node1.SetId(1);
     #if !BEHAVIAC_RELEASE
                     node1.SetAgentType("Player");
     #endif
                     node2.AddChild(node1);
                     node2.SetHasEvents(node2.HasEvents() | node1.HasEvents());
                 }
                 {
                     Action_bt_Tank_Take_Award_Destroy_Enemy_node3 node3 = new Action_bt_Tank_Take_Award_Destroy_Enemy_node3();
                     node3.SetClassNameString("Action");
                     node3.SetId(3);
     #if !BEHAVIAC_RELEASE
                     node3.SetAgentType("Player");
     #endif
                     node2.AddChild(node3);
                     node2.SetHasEvents(node2.HasEvents() | node3.HasEvents());
                 }
                 {
                     Action_bt_Tank_Take_Award_Destroy_Enemy_node4 node4 = new Action_bt_Tank_Take_Award_Destroy_Enemy_node4();
                     node4.SetClassNameString("Action");
                     node4.SetId(4);
     #if !BEHAVIAC_RELEASE
                     node4.SetAgentType("Player");
     #endif
                     node2.AddChild(node4);
                     node2.SetHasEvents(node2.HasEvents() | node4.HasEvents());
                 }
                 node11.SetHasEvents(node11.HasEvents() | node2.HasEvents());
             }
             node10.SetHasEvents(node10.HasEvents() | node11.HasEvents());
         }
         bt.SetHasEvents(bt.HasEvents() | node10.HasEvents());
     }
     return true;
 }
예제 #2
0
        public static bool build_behavior_tree(BehaviorTree bt)
        {
            bt.SetClassNameString("BehaviorTree");
            bt.SetId(-1);
            bt.SetName("SelectBT");
            bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
            bt.SetAgentType("FirstAgent");
#endif
            // children
            {
                Sequence node0 = new Sequence();
                node0.SetClassNameString("Sequence");
                node0.SetId(0);
#if !BEHAVIAC_RELEASE
                node0.SetAgentType("FirstAgent");
#endif
                bt.AddChild(node0);
                {
                    Assignment_bt_SelectBT_node1 node1 = new Assignment_bt_SelectBT_node1();
                    node1.SetClassNameString("Assignment");
                    node1.SetId(1);
#if !BEHAVIAC_RELEASE
                    node1.SetAgentType("FirstAgent");
#endif
                    node0.AddChild(node1);
                    node0.SetHasEvents(node0.HasEvents() | node1.HasEvents());
                }
                {
                    Selector node2 = new Selector();
                    node2.SetClassNameString("Selector");
                    node2.SetId(2);
#if !BEHAVIAC_RELEASE
                    node2.SetAgentType("FirstAgent");
#endif
                    node0.AddChild(node2);
                    {
                        Condition_bt_SelectBT_node3 node3 = new Condition_bt_SelectBT_node3();
                        node3.SetClassNameString("Condition");
                        node3.SetId(3);
#if !BEHAVIAC_RELEASE
                        node3.SetAgentType("FirstAgent");
#endif
                        node2.AddChild(node3);
                        node2.SetHasEvents(node2.HasEvents() | node3.HasEvents());
                    }
                    {
                        Action_bt_SelectBT_node4 node4 = new Action_bt_SelectBT_node4();
                        node4.SetClassNameString("Action");
                        node4.SetId(4);
#if !BEHAVIAC_RELEASE
                        node4.SetAgentType("FirstAgent");
#endif
                        node2.AddChild(node4);
                        node2.SetHasEvents(node2.HasEvents() | node4.HasEvents());
                    }
                    node0.SetHasEvents(node0.HasEvents() | node2.HasEvents());
                }
                bt.SetHasEvents(bt.HasEvents() | node0.HasEvents());
            }
            return(true);
        }
예제 #3
0
        public static bool build_behavior_tree(BehaviorTree bt)
        {
            bt.SetClassNameString("BehaviorTree");
            bt.SetId(-1);
            bt.SetName("WrapperAI/Hero/HeroRoundAI");
            bt.AddPar("UnityEngine.Vector3", "p_attackPathCurTargetPos", "{kEpsilon=0;x=0;y=0;z=0;}", string.Empty);
            bt.AddPar("UnityEngine.Vector3", "p_direction", "{kEpsilon=0;x=0;y=0;z=0;}", string.Empty);
            bt.AddPar("uint", "p_selfID", "0", string.Empty);
            Sequence sequence = new Sequence();

            sequence.SetClassNameString("Sequence");
            sequence.SetId(411);
            bt.AddChild(sequence);
            Assignment_bt_WrapperAI_Hero_HeroRoundAI_node658 assignment_bt_WrapperAI_Hero_HeroRoundAI_node = new Assignment_bt_WrapperAI_Hero_HeroRoundAI_node658();

            assignment_bt_WrapperAI_Hero_HeroRoundAI_node.SetClassNameString("Assignment");
            assignment_bt_WrapperAI_Hero_HeroRoundAI_node.SetId(658);
            sequence.AddChild(assignment_bt_WrapperAI_Hero_HeroRoundAI_node);
            sequence.SetHasEvents(sequence.HasEvents() | assignment_bt_WrapperAI_Hero_HeroRoundAI_node.HasEvents());
            Action_bt_WrapperAI_Hero_HeroRoundAI_node1035 action_bt_WrapperAI_Hero_HeroRoundAI_node = new Action_bt_WrapperAI_Hero_HeroRoundAI_node1035();

            action_bt_WrapperAI_Hero_HeroRoundAI_node.SetClassNameString("Action");
            action_bt_WrapperAI_Hero_HeroRoundAI_node.SetId(1035);
            sequence.AddChild(action_bt_WrapperAI_Hero_HeroRoundAI_node);
            sequence.SetHasEvents(sequence.HasEvents() | action_bt_WrapperAI_Hero_HeroRoundAI_node.HasEvents());
            DecoratorLoop_bt_WrapperAI_Hero_HeroRoundAI_node14 decoratorLoop_bt_WrapperAI_Hero_HeroRoundAI_node = new DecoratorLoop_bt_WrapperAI_Hero_HeroRoundAI_node14();

            decoratorLoop_bt_WrapperAI_Hero_HeroRoundAI_node.SetClassNameString("DecoratorLoop");
            decoratorLoop_bt_WrapperAI_Hero_HeroRoundAI_node.SetId(14);
            sequence.AddChild(decoratorLoop_bt_WrapperAI_Hero_HeroRoundAI_node);
            Sequence sequence2 = new Sequence();

            sequence2.SetClassNameString("Sequence");
            sequence2.SetId(69);
            decoratorLoop_bt_WrapperAI_Hero_HeroRoundAI_node.AddChild(sequence2);
            IfElse ifElse = new IfElse();

            ifElse.SetClassNameString("IfElse");
            ifElse.SetId(205);
            sequence2.AddChild(ifElse);
            Condition_bt_WrapperAI_Hero_HeroRoundAI_node207 condition_bt_WrapperAI_Hero_HeroRoundAI_node = new Condition_bt_WrapperAI_Hero_HeroRoundAI_node207();

            condition_bt_WrapperAI_Hero_HeroRoundAI_node.SetClassNameString("Condition");
            condition_bt_WrapperAI_Hero_HeroRoundAI_node.SetId(207);
            ifElse.AddChild(condition_bt_WrapperAI_Hero_HeroRoundAI_node);
            ifElse.SetHasEvents(ifElse.HasEvents() | condition_bt_WrapperAI_Hero_HeroRoundAI_node.HasEvents());
            Noop noop = new Noop();

            noop.SetClassNameString("Noop");
            noop.SetId(210);
            ifElse.AddChild(noop);
            ifElse.SetHasEvents(ifElse.HasEvents() | noop.HasEvents());
            Sequence sequence3 = new Sequence();

            sequence3.SetClassNameString("Sequence");
            sequence3.SetId(211);
            ifElse.AddChild(sequence3);
            Action_bt_WrapperAI_Hero_HeroRoundAI_node597 action_bt_WrapperAI_Hero_HeroRoundAI_node2 = new Action_bt_WrapperAI_Hero_HeroRoundAI_node597();

            action_bt_WrapperAI_Hero_HeroRoundAI_node2.SetClassNameString("Action");
            action_bt_WrapperAI_Hero_HeroRoundAI_node2.SetId(597);
            sequence3.AddChild(action_bt_WrapperAI_Hero_HeroRoundAI_node2);
            sequence3.SetHasEvents(sequence3.HasEvents() | action_bt_WrapperAI_Hero_HeroRoundAI_node2.HasEvents());
            Assignment_bt_WrapperAI_Hero_HeroRoundAI_node235 assignment_bt_WrapperAI_Hero_HeroRoundAI_node2 = new Assignment_bt_WrapperAI_Hero_HeroRoundAI_node235();

            assignment_bt_WrapperAI_Hero_HeroRoundAI_node2.SetClassNameString("Assignment");
            assignment_bt_WrapperAI_Hero_HeroRoundAI_node2.SetId(235);
            sequence3.AddChild(assignment_bt_WrapperAI_Hero_HeroRoundAI_node2);
            sequence3.SetHasEvents(sequence3.HasEvents() | assignment_bt_WrapperAI_Hero_HeroRoundAI_node2.HasEvents());
            ifElse.SetHasEvents(ifElse.HasEvents() | sequence3.HasEvents());
            sequence2.SetHasEvents(sequence2.HasEvents() | ifElse.HasEvents());
            SelectorLoop selectorLoop = new SelectorLoop();

            selectorLoop.SetClassNameString("SelectorLoop");
            selectorLoop.SetId(1);
            sequence2.AddChild(selectorLoop);
            WithPrecondition withPrecondition = new WithPrecondition();

            withPrecondition.SetClassNameString("WithPrecondition");
            withPrecondition.SetId(107);
            selectorLoop.AddChild(withPrecondition);
            Condition_bt_WrapperAI_Hero_HeroRoundAI_node108 condition_bt_WrapperAI_Hero_HeroRoundAI_node2 = new Condition_bt_WrapperAI_Hero_HeroRoundAI_node108();

            condition_bt_WrapperAI_Hero_HeroRoundAI_node2.SetClassNameString("Condition");
            condition_bt_WrapperAI_Hero_HeroRoundAI_node2.SetId(108);
            withPrecondition.AddChild(condition_bt_WrapperAI_Hero_HeroRoundAI_node2);
            withPrecondition.SetHasEvents(withPrecondition.HasEvents() | condition_bt_WrapperAI_Hero_HeroRoundAI_node2.HasEvents());
            Sequence sequence4 = new Sequence();

            sequence4.SetClassNameString("Sequence");
            sequence4.SetId(135);
            withPrecondition.AddChild(sequence4);
            Assignment_bt_WrapperAI_Hero_HeroRoundAI_node136 assignment_bt_WrapperAI_Hero_HeroRoundAI_node3 = new Assignment_bt_WrapperAI_Hero_HeroRoundAI_node136();

            assignment_bt_WrapperAI_Hero_HeroRoundAI_node3.SetClassNameString("Assignment");
            assignment_bt_WrapperAI_Hero_HeroRoundAI_node3.SetId(136);
            sequence4.AddChild(assignment_bt_WrapperAI_Hero_HeroRoundAI_node3);
            sequence4.SetHasEvents(sequence4.HasEvents() | assignment_bt_WrapperAI_Hero_HeroRoundAI_node3.HasEvents());
            IfElse ifElse2 = new IfElse();

            ifElse2.SetClassNameString("IfElse");
            ifElse2.SetId(327);
            sequence4.AddChild(ifElse2);
            Condition_bt_WrapperAI_Hero_HeroRoundAI_node328 condition_bt_WrapperAI_Hero_HeroRoundAI_node3 = new Condition_bt_WrapperAI_Hero_HeroRoundAI_node328();

            condition_bt_WrapperAI_Hero_HeroRoundAI_node3.SetClassNameString("Condition");
            condition_bt_WrapperAI_Hero_HeroRoundAI_node3.SetId(328);
            ifElse2.AddChild(condition_bt_WrapperAI_Hero_HeroRoundAI_node3);
            ifElse2.SetHasEvents(ifElse2.HasEvents() | condition_bt_WrapperAI_Hero_HeroRoundAI_node3.HasEvents());
            IfElse ifElse3 = new IfElse();

            ifElse3.SetClassNameString("IfElse");
            ifElse3.SetId(335);
            ifElse2.AddChild(ifElse3);
            Condition_bt_WrapperAI_Hero_HeroRoundAI_node336 condition_bt_WrapperAI_Hero_HeroRoundAI_node4 = new Condition_bt_WrapperAI_Hero_HeroRoundAI_node336();

            condition_bt_WrapperAI_Hero_HeroRoundAI_node4.SetClassNameString("Condition");
            condition_bt_WrapperAI_Hero_HeroRoundAI_node4.SetId(336);
            ifElse3.AddChild(condition_bt_WrapperAI_Hero_HeroRoundAI_node4);
            ifElse3.SetHasEvents(ifElse3.HasEvents() | condition_bt_WrapperAI_Hero_HeroRoundAI_node4.HasEvents());
            Sequence sequence5 = new Sequence();

            sequence5.SetClassNameString("Sequence");
            sequence5.SetId(337);
            ifElse3.AddChild(sequence5);
            Action_bt_WrapperAI_Hero_HeroRoundAI_node338 action_bt_WrapperAI_Hero_HeroRoundAI_node3 = new Action_bt_WrapperAI_Hero_HeroRoundAI_node338();

            action_bt_WrapperAI_Hero_HeroRoundAI_node3.SetClassNameString("Action");
            action_bt_WrapperAI_Hero_HeroRoundAI_node3.SetId(338);
            sequence5.AddChild(action_bt_WrapperAI_Hero_HeroRoundAI_node3);
            sequence5.SetHasEvents(sequence5.HasEvents() | action_bt_WrapperAI_Hero_HeroRoundAI_node3.HasEvents());
            WaitFrames_bt_WrapperAI_Hero_HeroRoundAI_node445 waitFrames_bt_WrapperAI_Hero_HeroRoundAI_node = new WaitFrames_bt_WrapperAI_Hero_HeroRoundAI_node445();

            waitFrames_bt_WrapperAI_Hero_HeroRoundAI_node.SetClassNameString("WaitFrames");
            waitFrames_bt_WrapperAI_Hero_HeroRoundAI_node.SetId(445);
            sequence5.AddChild(waitFrames_bt_WrapperAI_Hero_HeroRoundAI_node);
            sequence5.SetHasEvents(sequence5.HasEvents() | waitFrames_bt_WrapperAI_Hero_HeroRoundAI_node.HasEvents());
            ifElse3.SetHasEvents(ifElse3.HasEvents() | sequence5.HasEvents());
            Sequence sequence6 = new Sequence();

            sequence6.SetClassNameString("Sequence");
            sequence6.SetId(340);
            ifElse3.AddChild(sequence6);
            Action_bt_WrapperAI_Hero_HeroRoundAI_node444 action_bt_WrapperAI_Hero_HeroRoundAI_node4 = new Action_bt_WrapperAI_Hero_HeroRoundAI_node444();

            action_bt_WrapperAI_Hero_HeroRoundAI_node4.SetClassNameString("Action");
            action_bt_WrapperAI_Hero_HeroRoundAI_node4.SetId(444);
            sequence6.AddChild(action_bt_WrapperAI_Hero_HeroRoundAI_node4);
            sequence6.SetHasEvents(sequence6.HasEvents() | action_bt_WrapperAI_Hero_HeroRoundAI_node4.HasEvents());
            Action_bt_WrapperAI_Hero_HeroRoundAI_node341 action_bt_WrapperAI_Hero_HeroRoundAI_node5 = new Action_bt_WrapperAI_Hero_HeroRoundAI_node341();

            action_bt_WrapperAI_Hero_HeroRoundAI_node5.SetClassNameString("Action");
            action_bt_WrapperAI_Hero_HeroRoundAI_node5.SetId(341);
            sequence6.AddChild(action_bt_WrapperAI_Hero_HeroRoundAI_node5);
            sequence6.SetHasEvents(sequence6.HasEvents() | action_bt_WrapperAI_Hero_HeroRoundAI_node5.HasEvents());
            Action_bt_WrapperAI_Hero_HeroRoundAI_node342 action_bt_WrapperAI_Hero_HeroRoundAI_node6 = new Action_bt_WrapperAI_Hero_HeroRoundAI_node342();

            action_bt_WrapperAI_Hero_HeroRoundAI_node6.SetClassNameString("Action");
            action_bt_WrapperAI_Hero_HeroRoundAI_node6.SetId(342);
            sequence6.AddChild(action_bt_WrapperAI_Hero_HeroRoundAI_node6);
            sequence6.SetHasEvents(sequence6.HasEvents() | action_bt_WrapperAI_Hero_HeroRoundAI_node6.HasEvents());
            ifElse3.SetHasEvents(ifElse3.HasEvents() | sequence6.HasEvents());
            ifElse2.SetHasEvents(ifElse2.HasEvents() | ifElse3.HasEvents());
            Sequence sequence7 = new Sequence();

            sequence7.SetClassNameString("Sequence");
            sequence7.SetId(329);
            ifElse2.AddChild(sequence7);
            Action_bt_WrapperAI_Hero_HeroRoundAI_node447 action_bt_WrapperAI_Hero_HeroRoundAI_node7 = new Action_bt_WrapperAI_Hero_HeroRoundAI_node447();

            action_bt_WrapperAI_Hero_HeroRoundAI_node7.SetClassNameString("Action");
            action_bt_WrapperAI_Hero_HeroRoundAI_node7.SetId(447);
            sequence7.AddChild(action_bt_WrapperAI_Hero_HeroRoundAI_node7);
            sequence7.SetHasEvents(sequence7.HasEvents() | action_bt_WrapperAI_Hero_HeroRoundAI_node7.HasEvents());
            Action_bt_WrapperAI_Hero_HeroRoundAI_node137 action_bt_WrapperAI_Hero_HeroRoundAI_node8 = new Action_bt_WrapperAI_Hero_HeroRoundAI_node137();

            action_bt_WrapperAI_Hero_HeroRoundAI_node8.SetClassNameString("Action");
            action_bt_WrapperAI_Hero_HeroRoundAI_node8.SetId(137);
            sequence7.AddChild(action_bt_WrapperAI_Hero_HeroRoundAI_node8);
            sequence7.SetHasEvents(sequence7.HasEvents() | action_bt_WrapperAI_Hero_HeroRoundAI_node8.HasEvents());
            Action_bt_WrapperAI_Hero_HeroRoundAI_node138 action_bt_WrapperAI_Hero_HeroRoundAI_node9 = new Action_bt_WrapperAI_Hero_HeroRoundAI_node138();

            action_bt_WrapperAI_Hero_HeroRoundAI_node9.SetClassNameString("Action");
            action_bt_WrapperAI_Hero_HeroRoundAI_node9.SetId(138);
            sequence7.AddChild(action_bt_WrapperAI_Hero_HeroRoundAI_node9);
            sequence7.SetHasEvents(sequence7.HasEvents() | action_bt_WrapperAI_Hero_HeroRoundAI_node9.HasEvents());
            ifElse2.SetHasEvents(ifElse2.HasEvents() | sequence7.HasEvents());
            sequence4.SetHasEvents(sequence4.HasEvents() | ifElse2.HasEvents());
            withPrecondition.SetHasEvents(withPrecondition.HasEvents() | sequence4.HasEvents());
            selectorLoop.SetHasEvents(selectorLoop.HasEvents() | withPrecondition.HasEvents());
            WithPrecondition withPrecondition2 = new WithPrecondition();

            withPrecondition2.SetClassNameString("WithPrecondition");
            withPrecondition2.SetId(60);
            selectorLoop.AddChild(withPrecondition2);
            Condition_bt_WrapperAI_Hero_HeroRoundAI_node61 condition_bt_WrapperAI_Hero_HeroRoundAI_node5 = new Condition_bt_WrapperAI_Hero_HeroRoundAI_node61();

            condition_bt_WrapperAI_Hero_HeroRoundAI_node5.SetClassNameString("Condition");
            condition_bt_WrapperAI_Hero_HeroRoundAI_node5.SetId(61);
            withPrecondition2.AddChild(condition_bt_WrapperAI_Hero_HeroRoundAI_node5);
            withPrecondition2.SetHasEvents(withPrecondition2.HasEvents() | condition_bt_WrapperAI_Hero_HeroRoundAI_node5.HasEvents());
            Action_bt_WrapperAI_Hero_HeroRoundAI_node64 action_bt_WrapperAI_Hero_HeroRoundAI_node10 = new Action_bt_WrapperAI_Hero_HeroRoundAI_node64();

            action_bt_WrapperAI_Hero_HeroRoundAI_node10.SetClassNameString("Action");
            action_bt_WrapperAI_Hero_HeroRoundAI_node10.SetId(64);
            withPrecondition2.AddChild(action_bt_WrapperAI_Hero_HeroRoundAI_node10);
            withPrecondition2.SetHasEvents(withPrecondition2.HasEvents() | action_bt_WrapperAI_Hero_HeroRoundAI_node10.HasEvents());
            selectorLoop.SetHasEvents(selectorLoop.HasEvents() | withPrecondition2.HasEvents());
            WithPrecondition withPrecondition3 = new WithPrecondition();

            withPrecondition3.SetClassNameString("WithPrecondition");
            withPrecondition3.SetId(2);
            selectorLoop.AddChild(withPrecondition3);
            Condition_bt_WrapperAI_Hero_HeroRoundAI_node3 condition_bt_WrapperAI_Hero_HeroRoundAI_node6 = new Condition_bt_WrapperAI_Hero_HeroRoundAI_node3();

            condition_bt_WrapperAI_Hero_HeroRoundAI_node6.SetClassNameString("Condition");
            condition_bt_WrapperAI_Hero_HeroRoundAI_node6.SetId(3);
            withPrecondition3.AddChild(condition_bt_WrapperAI_Hero_HeroRoundAI_node6);
            withPrecondition3.SetHasEvents(withPrecondition3.HasEvents() | condition_bt_WrapperAI_Hero_HeroRoundAI_node6.HasEvents());
            Sequence sequence8 = new Sequence();

            sequence8.SetClassNameString("Sequence");
            sequence8.SetId(59);
            withPrecondition3.AddChild(sequence8);
            Selector selector = new Selector();

            selector.SetClassNameString("Selector");
            selector.SetId(487);
            sequence8.AddChild(selector);
            Action_bt_WrapperAI_Hero_HeroRoundAI_node488 action_bt_WrapperAI_Hero_HeroRoundAI_node11 = new Action_bt_WrapperAI_Hero_HeroRoundAI_node488();

            action_bt_WrapperAI_Hero_HeroRoundAI_node11.SetClassNameString("Action");
            action_bt_WrapperAI_Hero_HeroRoundAI_node11.SetId(488);
            selector.AddChild(action_bt_WrapperAI_Hero_HeroRoundAI_node11);
            selector.SetHasEvents(selector.HasEvents() | action_bt_WrapperAI_Hero_HeroRoundAI_node11.HasEvents());
            Action_bt_WrapperAI_Hero_HeroRoundAI_node4 action_bt_WrapperAI_Hero_HeroRoundAI_node12 = new Action_bt_WrapperAI_Hero_HeroRoundAI_node4();

            action_bt_WrapperAI_Hero_HeroRoundAI_node12.SetClassNameString("Action");
            action_bt_WrapperAI_Hero_HeroRoundAI_node12.SetId(4);
            selector.AddChild(action_bt_WrapperAI_Hero_HeroRoundAI_node12);
            selector.SetHasEvents(selector.HasEvents() | action_bt_WrapperAI_Hero_HeroRoundAI_node12.HasEvents());
            sequence8.SetHasEvents(sequence8.HasEvents() | selector.HasEvents());
            DecoratorLoop_bt_WrapperAI_Hero_HeroRoundAI_node65 decoratorLoop_bt_WrapperAI_Hero_HeroRoundAI_node2 = new DecoratorLoop_bt_WrapperAI_Hero_HeroRoundAI_node65();

            decoratorLoop_bt_WrapperAI_Hero_HeroRoundAI_node2.SetClassNameString("DecoratorLoop");
            decoratorLoop_bt_WrapperAI_Hero_HeroRoundAI_node2.SetId(65);
            sequence8.AddChild(decoratorLoop_bt_WrapperAI_Hero_HeroRoundAI_node2);
            Noop noop2 = new Noop();

            noop2.SetClassNameString("Noop");
            noop2.SetId(66);
            decoratorLoop_bt_WrapperAI_Hero_HeroRoundAI_node2.AddChild(noop2);
            decoratorLoop_bt_WrapperAI_Hero_HeroRoundAI_node2.SetHasEvents(decoratorLoop_bt_WrapperAI_Hero_HeroRoundAI_node2.HasEvents() | noop2.HasEvents());
            sequence8.SetHasEvents(sequence8.HasEvents() | decoratorLoop_bt_WrapperAI_Hero_HeroRoundAI_node2.HasEvents());
            withPrecondition3.SetHasEvents(withPrecondition3.HasEvents() | sequence8.HasEvents());
            selectorLoop.SetHasEvents(selectorLoop.HasEvents() | withPrecondition3.HasEvents());
            WithPrecondition withPrecondition4 = new WithPrecondition();

            withPrecondition4.SetClassNameString("WithPrecondition");
            withPrecondition4.SetId(450);
            selectorLoop.AddChild(withPrecondition4);
            Condition_bt_WrapperAI_Hero_HeroRoundAI_node454 condition_bt_WrapperAI_Hero_HeroRoundAI_node7 = new Condition_bt_WrapperAI_Hero_HeroRoundAI_node454();

            condition_bt_WrapperAI_Hero_HeroRoundAI_node7.SetClassNameString("Condition");
            condition_bt_WrapperAI_Hero_HeroRoundAI_node7.SetId(454);
            withPrecondition4.AddChild(condition_bt_WrapperAI_Hero_HeroRoundAI_node7);
            withPrecondition4.SetHasEvents(withPrecondition4.HasEvents() | condition_bt_WrapperAI_Hero_HeroRoundAI_node7.HasEvents());
            Sequence sequence9 = new Sequence();

            sequence9.SetClassNameString("Sequence");
            sequence9.SetId(455);
            withPrecondition4.AddChild(sequence9);
            Action_bt_WrapperAI_Hero_HeroRoundAI_node456 action_bt_WrapperAI_Hero_HeroRoundAI_node13 = new Action_bt_WrapperAI_Hero_HeroRoundAI_node456();

            action_bt_WrapperAI_Hero_HeroRoundAI_node13.SetClassNameString("Action");
            action_bt_WrapperAI_Hero_HeroRoundAI_node13.SetId(456);
            sequence9.AddChild(action_bt_WrapperAI_Hero_HeroRoundAI_node13);
            sequence9.SetHasEvents(sequence9.HasEvents() | action_bt_WrapperAI_Hero_HeroRoundAI_node13.HasEvents());
            DecoratorLoop_bt_WrapperAI_Hero_HeroRoundAI_node457 decoratorLoop_bt_WrapperAI_Hero_HeroRoundAI_node3 = new DecoratorLoop_bt_WrapperAI_Hero_HeroRoundAI_node457();

            decoratorLoop_bt_WrapperAI_Hero_HeroRoundAI_node3.SetClassNameString("DecoratorLoop");
            decoratorLoop_bt_WrapperAI_Hero_HeroRoundAI_node3.SetId(457);
            sequence9.AddChild(decoratorLoop_bt_WrapperAI_Hero_HeroRoundAI_node3);
            Noop noop3 = new Noop();

            noop3.SetClassNameString("Noop");
            noop3.SetId(458);
            decoratorLoop_bt_WrapperAI_Hero_HeroRoundAI_node3.AddChild(noop3);
            decoratorLoop_bt_WrapperAI_Hero_HeroRoundAI_node3.SetHasEvents(decoratorLoop_bt_WrapperAI_Hero_HeroRoundAI_node3.HasEvents() | noop3.HasEvents());
            sequence9.SetHasEvents(sequence9.HasEvents() | decoratorLoop_bt_WrapperAI_Hero_HeroRoundAI_node3.HasEvents());
            withPrecondition4.SetHasEvents(withPrecondition4.HasEvents() | sequence9.HasEvents());
            selectorLoop.SetHasEvents(selectorLoop.HasEvents() | withPrecondition4.HasEvents());
            sequence2.SetHasEvents(sequence2.HasEvents() | selectorLoop.HasEvents());
            decoratorLoop_bt_WrapperAI_Hero_HeroRoundAI_node.SetHasEvents(decoratorLoop_bt_WrapperAI_Hero_HeroRoundAI_node.HasEvents() | sequence2.HasEvents());
            sequence.SetHasEvents(sequence.HasEvents() | decoratorLoop_bt_WrapperAI_Hero_HeroRoundAI_node.HasEvents());
            bt.SetHasEvents(bt.HasEvents() | sequence.HasEvents());
            return(true);
        }
예제 #4
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("node_test/PreconditionEffectorTest/PreconditionEffectorTest_0");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("PreconEffectorAgent");
#endif
			// children
			{
				Selector node3 = new Selector();
				node3.SetClassNameString("Selector");
				node3.SetId(3);
#if !BEHAVIAC_RELEASE
				node3.SetAgentType("PreconEffectorAgent");
#endif
				// attachments
				{
					Precondition_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_0_attach0 attach0 = new Precondition_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_0_attach0();
					attach0.SetClassNameString("Precondition");
					attach0.SetId(0);
#if !BEHAVIAC_RELEASE
					attach0.SetAgentType("PreconEffectorAgent");
#endif
					node3.Attach(attach0, true, false, false);
				}
				bt.AddChild(node3);
				{
					Action_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_0_node8 node8 = new Action_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_0_node8();
					node8.SetClassNameString("Action");
					node8.SetId(8);
#if !BEHAVIAC_RELEASE
					node8.SetAgentType("PreconEffectorAgent");
#endif
					// attachments
					{
						Precondition_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_0_attach1 attach1 = new Precondition_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_0_attach1();
						attach1.SetClassNameString("Precondition");
						attach1.SetId(1);
#if !BEHAVIAC_RELEASE
						attach1.SetAgentType("PreconEffectorAgent");
#endif
						node8.Attach(attach1, true, false, false);
					}
					{
						Effector_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_0_attach2 attach2 = new Effector_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_0_attach2();
						attach2.SetClassNameString("Effector");
						attach2.SetId(2);
#if !BEHAVIAC_RELEASE
						attach2.SetAgentType("PreconEffectorAgent");
#endif
						node8.Attach(attach2, false, true, false);
					}
					{
						Effector_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_0_attach4 attach4 = new Effector_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_0_attach4();
						attach4.SetClassNameString("Effector");
						attach4.SetId(4);
#if !BEHAVIAC_RELEASE
						attach4.SetAgentType("PreconEffectorAgent");
#endif
						node8.Attach(attach4, false, true, false);
					}
					node3.AddChild(node8);
					node3.SetHasEvents(node3.HasEvents() | node8.HasEvents());
				}
				{
					Action_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_0_node9 node9 = new Action_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_0_node9();
					node9.SetClassNameString("Action");
					node9.SetId(9);
#if !BEHAVIAC_RELEASE
					node9.SetAgentType("PreconEffectorAgent");
#endif
					// attachments
					{
						Precondition_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_0_attach10 attach10 = new Precondition_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_0_attach10();
						attach10.SetClassNameString("Precondition");
						attach10.SetId(10);
#if !BEHAVIAC_RELEASE
						attach10.SetAgentType("PreconEffectorAgent");
#endif
						node9.Attach(attach10, true, false, false);
					}
					{
						Effector_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_0_attach5 attach5 = new Effector_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_0_attach5();
						attach5.SetClassNameString("Effector");
						attach5.SetId(5);
#if !BEHAVIAC_RELEASE
						attach5.SetAgentType("PreconEffectorAgent");
#endif
						node9.Attach(attach5, false, true, false);
					}
					{
						Effector_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_0_attach6 attach6 = new Effector_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_0_attach6();
						attach6.SetClassNameString("Effector");
						attach6.SetId(6);
#if !BEHAVIAC_RELEASE
						attach6.SetAgentType("PreconEffectorAgent");
#endif
						node9.Attach(attach6, false, true, false);
					}
					node3.AddChild(node9);
					node3.SetHasEvents(node3.HasEvents() | node9.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node3.HasEvents());
			}
			return true;
		}
예제 #5
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("node_test/decoration_alwayssuccess_ut_0");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("AgentNodeTest");
#endif
			// children
			{
				Sequence node0 = new Sequence();
				node0.SetClassNameString("Sequence");
				node0.SetId(0);
#if !BEHAVIAC_RELEASE
				node0.SetAgentType("AgentNodeTest");
#endif
				bt.AddChild(node0);
				{
					Selector node4 = new Selector();
					node4.SetClassNameString("Selector");
					node4.SetId(4);
#if !BEHAVIAC_RELEASE
					node4.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node4);
					{
						DecoratorAlwaysSuccess_bt_node_test_decoration_alwayssuccess_ut_0_node1 node1 = new DecoratorAlwaysSuccess_bt_node_test_decoration_alwayssuccess_ut_0_node1();
						node1.SetClassNameString("DecoratorAlwaysSuccess");
						node1.SetId(1);
#if !BEHAVIAC_RELEASE
						node1.SetAgentType("AgentNodeTest");
#endif
						node4.AddChild(node1);
						{
							Action_bt_node_test_decoration_alwayssuccess_ut_0_node5 node5 = new Action_bt_node_test_decoration_alwayssuccess_ut_0_node5();
							node5.SetClassNameString("Action");
							node5.SetId(5);
#if !BEHAVIAC_RELEASE
							node5.SetAgentType("AgentNodeTest");
#endif
							node1.AddChild(node5);
							node1.SetHasEvents(node1.HasEvents() | node5.HasEvents());
						}
						node4.SetHasEvents(node4.HasEvents() | node1.HasEvents());
					}
					{
						Action_bt_node_test_decoration_alwayssuccess_ut_0_node6 node6 = new Action_bt_node_test_decoration_alwayssuccess_ut_0_node6();
						node6.SetClassNameString("Action");
						node6.SetId(6);
#if !BEHAVIAC_RELEASE
						node6.SetAgentType("AgentNodeTest");
#endif
						node4.AddChild(node6);
						node4.SetHasEvents(node4.HasEvents() | node6.HasEvents());
					}
					node0.SetHasEvents(node0.HasEvents() | node4.HasEvents());
				}
				{
					Selector node2 = new Selector();
					node2.SetClassNameString("Selector");
					node2.SetId(2);
#if !BEHAVIAC_RELEASE
					node2.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node2);
					{
						DecoratorAlwaysSuccess_bt_node_test_decoration_alwayssuccess_ut_0_node3 node3 = new DecoratorAlwaysSuccess_bt_node_test_decoration_alwayssuccess_ut_0_node3();
						node3.SetClassNameString("DecoratorAlwaysSuccess");
						node3.SetId(3);
#if !BEHAVIAC_RELEASE
						node3.SetAgentType("AgentNodeTest");
#endif
						node2.AddChild(node3);
						{
							Action_bt_node_test_decoration_alwayssuccess_ut_0_node7 node7 = new Action_bt_node_test_decoration_alwayssuccess_ut_0_node7();
							node7.SetClassNameString("Action");
							node7.SetId(7);
#if !BEHAVIAC_RELEASE
							node7.SetAgentType("AgentNodeTest");
#endif
							node3.AddChild(node7);
							node3.SetHasEvents(node3.HasEvents() | node7.HasEvents());
						}
						node2.SetHasEvents(node2.HasEvents() | node3.HasEvents());
					}
					{
						Action_bt_node_test_decoration_alwayssuccess_ut_0_node8 node8 = new Action_bt_node_test_decoration_alwayssuccess_ut_0_node8();
						node8.SetClassNameString("Action");
						node8.SetId(8);
#if !BEHAVIAC_RELEASE
						node8.SetAgentType("AgentNodeTest");
#endif
						node2.AddChild(node8);
						node2.SetHasEvents(node2.HasEvents() | node8.HasEvents());
					}
					node0.SetHasEvents(node0.HasEvents() | node2.HasEvents());
				}
				{
					Selector node9 = new Selector();
					node9.SetClassNameString("Selector");
					node9.SetId(9);
#if !BEHAVIAC_RELEASE
					node9.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node9);
					{
						DecoratorAlwaysSuccess_bt_node_test_decoration_alwayssuccess_ut_0_node10 node10 = new DecoratorAlwaysSuccess_bt_node_test_decoration_alwayssuccess_ut_0_node10();
						node10.SetClassNameString("DecoratorAlwaysSuccess");
						node10.SetId(10);
#if !BEHAVIAC_RELEASE
						node10.SetAgentType("AgentNodeTest");
#endif
						node9.AddChild(node10);
						{
							Action_bt_node_test_decoration_alwayssuccess_ut_0_node11 node11 = new Action_bt_node_test_decoration_alwayssuccess_ut_0_node11();
							node11.SetClassNameString("Action");
							node11.SetId(11);
#if !BEHAVIAC_RELEASE
							node11.SetAgentType("AgentNodeTest");
#endif
							node10.AddChild(node11);
							node10.SetHasEvents(node10.HasEvents() | node11.HasEvents());
						}
						node9.SetHasEvents(node9.HasEvents() | node10.HasEvents());
					}
					{
						Action_bt_node_test_decoration_alwayssuccess_ut_0_node12 node12 = new Action_bt_node_test_decoration_alwayssuccess_ut_0_node12();
						node12.SetClassNameString("Action");
						node12.SetId(12);
#if !BEHAVIAC_RELEASE
						node12.SetAgentType("AgentNodeTest");
#endif
						node9.AddChild(node12);
						node9.SetHasEvents(node9.HasEvents() | node12.HasEvents());
					}
					node0.SetHasEvents(node0.HasEvents() | node9.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node0.HasEvents());
			}
			return true;
		}
예제 #6
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("node_test/enter_exit_action_ut_0");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("AgentNodeTest");
#endif
			// children
			{
				Sequence node0 = new Sequence();
				node0.SetClassNameString("Sequence");
				node0.SetId(0);
#if !BEHAVIAC_RELEASE
				node0.SetAgentType("AgentNodeTest");
#endif
				// attachments
				{
					Precondition_bt_node_test_enter_exit_action_ut_0_attach1 attach1 = new Precondition_bt_node_test_enter_exit_action_ut_0_attach1();
					attach1.SetClassNameString("Precondition");
					attach1.SetId(1);
#if !BEHAVIAC_RELEASE
					attach1.SetAgentType("AgentNodeTest");
#endif
					node0.Attach(attach1, true, false, false);
				}
				{
					Effector_bt_node_test_enter_exit_action_ut_0_attach2 attach2 = new Effector_bt_node_test_enter_exit_action_ut_0_attach2();
					attach2.SetClassNameString("Effector");
					attach2.SetId(2);
#if !BEHAVIAC_RELEASE
					attach2.SetAgentType("AgentNodeTest");
#endif
					node0.Attach(attach2, false, true, false);
				}
				bt.AddChild(node0);
				{
					Selector node6 = new Selector();
					node6.SetClassNameString("Selector");
					node6.SetId(6);
#if !BEHAVIAC_RELEASE
					node6.SetAgentType("AgentNodeTest");
#endif
					// attachments
					{
						Precondition_bt_node_test_enter_exit_action_ut_0_attach3 attach3 = new Precondition_bt_node_test_enter_exit_action_ut_0_attach3();
						attach3.SetClassNameString("Precondition");
						attach3.SetId(3);
#if !BEHAVIAC_RELEASE
						attach3.SetAgentType("AgentNodeTest");
#endif
						node6.Attach(attach3, true, false, false);
					}
					{
						Effector_bt_node_test_enter_exit_action_ut_0_attach4 attach4 = new Effector_bt_node_test_enter_exit_action_ut_0_attach4();
						attach4.SetClassNameString("Effector");
						attach4.SetId(4);
#if !BEHAVIAC_RELEASE
						attach4.SetAgentType("AgentNodeTest");
#endif
						node6.Attach(attach4, false, true, false);
					}
					node0.AddChild(node6);
					{
						WaitforSignal node7 = new WaitforSignal();
						node7.SetClassNameString("WaitforSignal");
						node7.SetId(7);
#if !BEHAVIAC_RELEASE
						node7.SetAgentType("AgentNodeTest");
#endif
						node6.AddChild(node7);
						{
							Condition_bt_node_test_enter_exit_action_ut_0_node5 node5 = new Condition_bt_node_test_enter_exit_action_ut_0_node5();
							node5.SetClassNameString("Condition");
							node5.SetId(5);
#if !BEHAVIAC_RELEASE
							node5.SetAgentType("AgentNodeTest");
#endif
							node7.SetCustomCondition(node5);
							node7.SetHasEvents(node7.HasEvents() | node5.HasEvents());
						}
						node6.SetHasEvents(node6.HasEvents() | node7.HasEvents());
					}
					{
						True node8 = new True();
						node8.SetClassNameString("True");
						node8.SetId(8);
#if !BEHAVIAC_RELEASE
						node8.SetAgentType("AgentNodeTest");
#endif
						node6.AddChild(node8);
						node6.SetHasEvents(node6.HasEvents() | node8.HasEvents());
					}
					node0.SetHasEvents(node0.HasEvents() | node6.HasEvents());
				}
				{
					True node9 = new True();
					node9.SetClassNameString("True");
					node9.SetId(9);
#if !BEHAVIAC_RELEASE
					node9.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node9);
					node0.SetHasEvents(node0.HasEvents() | node9.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node0.HasEvents());
			}
			return true;
		}
예제 #7
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("node_test/selector_loop_ut_8");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("AgentNodeTest");
#endif
			// children
			{
				Sequence node15 = new Sequence();
				node15.SetClassNameString("Sequence");
				node15.SetId(15);
#if !BEHAVIAC_RELEASE
				node15.SetAgentType("AgentNodeTest");
#endif
				bt.AddChild(node15);
				{
					Action_bt_node_test_selector_loop_ut_8_node16 node16 = new Action_bt_node_test_selector_loop_ut_8_node16();
					node16.SetClassNameString("Action");
					node16.SetId(16);
#if !BEHAVIAC_RELEASE
					node16.SetAgentType("AgentNodeTest");
#endif
					node15.AddChild(node16);
					node15.SetHasEvents(node15.HasEvents() | node16.HasEvents());
				}
				{
					Assignment_bt_node_test_selector_loop_ut_8_node21 node21 = new Assignment_bt_node_test_selector_loop_ut_8_node21();
					node21.SetClassNameString("Assignment");
					node21.SetId(21);
#if !BEHAVIAC_RELEASE
					node21.SetAgentType("AgentNodeTest");
#endif
					node15.AddChild(node21);
					node15.SetHasEvents(node15.HasEvents() | node21.HasEvents());
				}
				{
					Selector node23 = new Selector();
					node23.SetClassNameString("Selector");
					node23.SetId(23);
#if !BEHAVIAC_RELEASE
					node23.SetAgentType("AgentNodeTest");
#endif
					node15.AddChild(node23);
					{
						Selector node10 = new Selector();
						node10.SetClassNameString("Selector");
						node10.SetId(10);
#if !BEHAVIAC_RELEASE
						node10.SetAgentType("AgentNodeTest");
#endif
						// attachments
						{
							Precondition_bt_node_test_selector_loop_ut_8_attach24 attach24 = new Precondition_bt_node_test_selector_loop_ut_8_attach24();
							attach24.SetClassNameString("Precondition");
							attach24.SetId(24);
#if !BEHAVIAC_RELEASE
							attach24.SetAgentType("AgentNodeTest");
#endif
							node10.Attach(attach24, true, false, false);
						}
						node23.AddChild(node10);
						{
							DecoratorLoop_bt_node_test_selector_loop_ut_8_node9 node9 = new DecoratorLoop_bt_node_test_selector_loop_ut_8_node9();
							node9.SetClassNameString("DecoratorLoop");
							node9.SetId(9);
#if !BEHAVIAC_RELEASE
							node9.SetAgentType("AgentNodeTest");
#endif
							// attachments
							{
								Precondition_bt_node_test_selector_loop_ut_8_attach14 attach14 = new Precondition_bt_node_test_selector_loop_ut_8_attach14();
								attach14.SetClassNameString("Precondition");
								attach14.SetId(14);
#if !BEHAVIAC_RELEASE
								attach14.SetAgentType("AgentNodeTest");
#endif
								node9.Attach(attach14, true, false, false);
							}
							{
								Precondition_bt_node_test_selector_loop_ut_8_attach17 attach17 = new Precondition_bt_node_test_selector_loop_ut_8_attach17();
								attach17.SetClassNameString("Precondition");
								attach17.SetId(17);
#if !BEHAVIAC_RELEASE
								attach17.SetAgentType("AgentNodeTest");
#endif
								node9.Attach(attach17, true, false, false);
							}
							{
								Effector_bt_node_test_selector_loop_ut_8_attach18 attach18 = new Effector_bt_node_test_selector_loop_ut_8_attach18();
								attach18.SetClassNameString("Effector");
								attach18.SetId(18);
#if !BEHAVIAC_RELEASE
								attach18.SetAgentType("AgentNodeTest");
#endif
								node9.Attach(attach18, false, true, false);
							}
							node10.AddChild(node9);
							{
								SelectorLoop node0 = new SelectorLoop();
								node0.SetClassNameString("SelectorLoop");
								node0.SetId(0);
#if !BEHAVIAC_RELEASE
								node0.SetAgentType("AgentNodeTest");
#endif
								node9.AddChild(node0);
								{
									WithPrecondition node1 = new WithPrecondition();
									node1.SetClassNameString("WithPrecondition");
									node1.SetId(1);
#if !BEHAVIAC_RELEASE
									node1.SetAgentType("AgentNodeTest");
#endif
									node0.AddChild(node1);
									{
										Condition_bt_node_test_selector_loop_ut_8_node4 node4 = new Condition_bt_node_test_selector_loop_ut_8_node4();
										node4.SetClassNameString("Condition");
										node4.SetId(4);
#if !BEHAVIAC_RELEASE
										node4.SetAgentType("AgentNodeTest");
#endif
										node1.AddChild(node4);
										node1.SetHasEvents(node1.HasEvents() | node4.HasEvents());
									}
									{
										Action_bt_node_test_selector_loop_ut_8_node5 node5 = new Action_bt_node_test_selector_loop_ut_8_node5();
										node5.SetClassNameString("Action");
										node5.SetId(5);
#if !BEHAVIAC_RELEASE
										node5.SetAgentType("AgentNodeTest");
#endif
										// attachments
										{
											Precondition_bt_node_test_selector_loop_ut_8_attach7 attach7 = new Precondition_bt_node_test_selector_loop_ut_8_attach7();
											attach7.SetClassNameString("Precondition");
											attach7.SetId(7);
#if !BEHAVIAC_RELEASE
											attach7.SetAgentType("AgentNodeTest");
#endif
											node5.Attach(attach7, true, false, false);
										}
										node1.AddChild(node5);
										node1.SetHasEvents(node1.HasEvents() | node5.HasEvents());
									}
									node0.SetHasEvents(node0.HasEvents() | node1.HasEvents());
								}
								{
									WithPrecondition node2 = new WithPrecondition();
									node2.SetClassNameString("WithPrecondition");
									node2.SetId(2);
#if !BEHAVIAC_RELEASE
									node2.SetAgentType("AgentNodeTest");
#endif
									node0.AddChild(node2);
									{
										True node3 = new True();
										node3.SetClassNameString("True");
										node3.SetId(3);
#if !BEHAVIAC_RELEASE
										node3.SetAgentType("AgentNodeTest");
#endif
										node2.AddChild(node3);
										node2.SetHasEvents(node2.HasEvents() | node3.HasEvents());
									}
									{
										Action_bt_node_test_selector_loop_ut_8_node6 node6 = new Action_bt_node_test_selector_loop_ut_8_node6();
										node6.SetClassNameString("Action");
										node6.SetId(6);
#if !BEHAVIAC_RELEASE
										node6.SetAgentType("AgentNodeTest");
#endif
										// attachments
										{
											Precondition_bt_node_test_selector_loop_ut_8_attach8 attach8 = new Precondition_bt_node_test_selector_loop_ut_8_attach8();
											attach8.SetClassNameString("Precondition");
											attach8.SetId(8);
#if !BEHAVIAC_RELEASE
											attach8.SetAgentType("AgentNodeTest");
#endif
											node6.Attach(attach8, true, false, false);
										}
										node2.AddChild(node6);
										node2.SetHasEvents(node2.HasEvents() | node6.HasEvents());
									}
									node0.SetHasEvents(node0.HasEvents() | node2.HasEvents());
								}
								node9.SetHasEvents(node9.HasEvents() | node0.HasEvents());
							}
							node10.SetHasEvents(node10.HasEvents() | node9.HasEvents());
						}
						{
							Sequence node11 = new Sequence();
							node11.SetClassNameString("Sequence");
							node11.SetId(11);
#if !BEHAVIAC_RELEASE
							node11.SetAgentType("AgentNodeTest");
#endif
							// attachments
							{
								Precondition_bt_node_test_selector_loop_ut_8_attach19 attach19 = new Precondition_bt_node_test_selector_loop_ut_8_attach19();
								attach19.SetClassNameString("Precondition");
								attach19.SetId(19);
#if !BEHAVIAC_RELEASE
								attach19.SetAgentType("AgentNodeTest");
#endif
								node11.Attach(attach19, true, false, false);
							}
							node10.AddChild(node11);
							{
								Action_bt_node_test_selector_loop_ut_8_node12 node12 = new Action_bt_node_test_selector_loop_ut_8_node12();
								node12.SetClassNameString("Action");
								node12.SetId(12);
#if !BEHAVIAC_RELEASE
								node12.SetAgentType("AgentNodeTest");
#endif
								// attachments
								{
									Precondition_bt_node_test_selector_loop_ut_8_attach20 attach20 = new Precondition_bt_node_test_selector_loop_ut_8_attach20();
									attach20.SetClassNameString("Precondition");
									attach20.SetId(20);
#if !BEHAVIAC_RELEASE
									attach20.SetAgentType("AgentNodeTest");
#endif
									node12.Attach(attach20, true, false, false);
								}
								node11.AddChild(node12);
								node11.SetHasEvents(node11.HasEvents() | node12.HasEvents());
							}
							{
								Action_bt_node_test_selector_loop_ut_8_node13 node13 = new Action_bt_node_test_selector_loop_ut_8_node13();
								node13.SetClassNameString("Action");
								node13.SetId(13);
#if !BEHAVIAC_RELEASE
								node13.SetAgentType("AgentNodeTest");
#endif
								// attachments
								{
									Precondition_bt_node_test_selector_loop_ut_8_attach22 attach22 = new Precondition_bt_node_test_selector_loop_ut_8_attach22();
									attach22.SetClassNameString("Precondition");
									attach22.SetId(22);
#if !BEHAVIAC_RELEASE
									attach22.SetAgentType("AgentNodeTest");
#endif
									node13.Attach(attach22, true, false, false);
								}
								node11.AddChild(node13);
								node11.SetHasEvents(node11.HasEvents() | node13.HasEvents());
							}
							node10.SetHasEvents(node10.HasEvents() | node11.HasEvents());
						}
						node23.SetHasEvents(node23.HasEvents() | node10.HasEvents());
					}
					{
						Assignment_bt_node_test_selector_loop_ut_8_node25 node25 = new Assignment_bt_node_test_selector_loop_ut_8_node25();
						node25.SetClassNameString("Assignment");
						node25.SetId(25);
#if !BEHAVIAC_RELEASE
						node25.SetAgentType("AgentNodeTest");
#endif
						node23.AddChild(node25);
						node23.SetHasEvents(node23.HasEvents() | node25.HasEvents());
					}
					node15.SetHasEvents(node15.HasEvents() | node23.HasEvents());
				}
				{
					Compute_bt_node_test_selector_loop_ut_8_node26 node26 = new Compute_bt_node_test_selector_loop_ut_8_node26();
					node26.SetClassNameString("Compute");
					node26.SetId(26);
#if !BEHAVIAC_RELEASE
					node26.SetAgentType("AgentNodeTest");
#endif
					node15.AddChild(node26);
					node15.SetHasEvents(node15.HasEvents() | node26.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node15.HasEvents());
			}
			return true;
		}
        public static bool build_behavior_tree(BehaviorTree bt)
        {
            bt.SetClassNameString("BehaviorTree");
            bt.SetId(-1);
            bt.SetName("WrapperAI/Organ/OrganTurret");
            bt.AddPar("Assets.Scripts.GameLogic.SkillSlotType", "p_curSlotType", "SLOT_SKILL_0", string.Empty);
            bt.AddPar("uint", "p_targetID", "0", string.Empty);
            bt.AddPar("int", "p_srchRange", "0", string.Empty);
            bt.AddPar("UnityEngine.Vector3", "p_AttackMoveDest", "{kEpsilon=0;x=0;y=0;z=0;}", string.Empty);
            bt.AddPar("bool", "p_IsAttackMove_Attack", "false", string.Empty);
            bt.AddPar("bool", "p_AttackIsFinished", "true", string.Empty);
            bt.AddPar("uint", "p_CmdID", "0", string.Empty);
            bt.AddPar("UnityEngine.Vector3", "p_attackPathCurTargetPos", "{kEpsilon=0;x=0;y=0;z=0;}", string.Empty);
            DecoratorLoop_bt_WrapperAI_Organ_OrganTurret_node14 pChild = new DecoratorLoop_bt_WrapperAI_Organ_OrganTurret_node14();

            pChild.SetClassNameString("DecoratorLoop");
            pChild.SetId(14);
            bt.AddChild(pChild);
            SelectorLoop loop = new SelectorLoop();

            loop.SetClassNameString("SelectorLoop");
            loop.SetId(1);
            pChild.AddChild(loop);
            WithPrecondition precondition = new WithPrecondition();

            precondition.SetClassNameString("WithPrecondition");
            precondition.SetId(11);
            loop.AddChild(precondition);
            Or or = new Or();

            or.SetClassNameString("Or");
            or.SetId(0);
            precondition.AddChild(or);
            Condition_bt_WrapperAI_Organ_OrganTurret_node12 _node2 = new Condition_bt_WrapperAI_Organ_OrganTurret_node12();

            _node2.SetClassNameString("Condition");
            _node2.SetId(12);
            or.AddChild(_node2);
            or.SetHasEvents(or.HasEvents() | _node2.HasEvents());
            Condition_bt_WrapperAI_Organ_OrganTurret_node26 _node3 = new Condition_bt_WrapperAI_Organ_OrganTurret_node26();

            _node3.SetClassNameString("Condition");
            _node3.SetId(0x1a);
            or.AddChild(_node3);
            or.SetHasEvents(or.HasEvents() | _node3.HasEvents());
            Condition_bt_WrapperAI_Organ_OrganTurret_node27 _node4 = new Condition_bt_WrapperAI_Organ_OrganTurret_node27();

            _node4.SetClassNameString("Condition");
            _node4.SetId(0x1b);
            or.AddChild(_node4);
            or.SetHasEvents(or.HasEvents() | _node4.HasEvents());
            precondition.SetHasEvents(precondition.HasEvents() | or.HasEvents());
            Sequence sequence = new Sequence();

            sequence.SetClassNameString("Sequence");
            sequence.SetId(0x56);
            precondition.AddChild(sequence);
            Action_bt_WrapperAI_Organ_OrganTurret_node140 _node5 = new Action_bt_WrapperAI_Organ_OrganTurret_node140();

            _node5.SetClassNameString("Action");
            _node5.SetId(140);
            sequence.AddChild(_node5);
            sequence.SetHasEvents(sequence.HasEvents() | _node5.HasEvents());
            Action_bt_WrapperAI_Organ_OrganTurret_node88 _node6 = new Action_bt_WrapperAI_Organ_OrganTurret_node88();

            _node6.SetClassNameString("Action");
            _node6.SetId(0x58);
            sequence.AddChild(_node6);
            sequence.SetHasEvents(sequence.HasEvents() | _node6.HasEvents());
            Action_bt_WrapperAI_Organ_OrganTurret_node91 _node7 = new Action_bt_WrapperAI_Organ_OrganTurret_node91();

            _node7.SetClassNameString("Action");
            _node7.SetId(0x5b);
            sequence.AddChild(_node7);
            sequence.SetHasEvents(sequence.HasEvents() | _node7.HasEvents());
            DecoratorLoopUntil_bt_WrapperAI_Organ_OrganTurret_node92 _node8 = new DecoratorLoopUntil_bt_WrapperAI_Organ_OrganTurret_node92();

            _node8.SetClassNameString("DecoratorLoopUntil");
            _node8.SetId(0x5c);
            sequence.AddChild(_node8);
            Condition_bt_WrapperAI_Organ_OrganTurret_node93 _node9 = new Condition_bt_WrapperAI_Organ_OrganTurret_node93();

            _node9.SetClassNameString("Condition");
            _node9.SetId(0x5d);
            _node8.AddChild(_node9);
            _node8.SetHasEvents(_node8.HasEvents() | _node9.HasEvents());
            sequence.SetHasEvents(sequence.HasEvents() | _node8.HasEvents());
            precondition.SetHasEvents(precondition.HasEvents() | sequence.HasEvents());
            loop.SetHasEvents(loop.HasEvents() | precondition.HasEvents());
            WithPrecondition precondition2 = new WithPrecondition();

            precondition2.SetClassNameString("WithPrecondition");
            precondition2.SetId(5);
            loop.AddChild(precondition2);
            Condition_bt_WrapperAI_Organ_OrganTurret_node9 _node10 = new Condition_bt_WrapperAI_Organ_OrganTurret_node9();

            _node10.SetClassNameString("Condition");
            _node10.SetId(9);
            precondition2.AddChild(_node10);
            precondition2.SetHasEvents(precondition2.HasEvents() | _node10.HasEvents());
            Sequence sequence2 = new Sequence();

            sequence2.SetClassNameString("Sequence");
            sequence2.SetId(0x3b);
            precondition2.AddChild(sequence2);
            Selector selector = new Selector();

            selector.SetClassNameString("Selector");
            selector.SetId(0x1e7);
            sequence2.AddChild(selector);
            Action_bt_WrapperAI_Organ_OrganTurret_node488 _node11 = new Action_bt_WrapperAI_Organ_OrganTurret_node488();

            _node11.SetClassNameString("Action");
            _node11.SetId(0x1e8);
            selector.AddChild(_node11);
            selector.SetHasEvents(selector.HasEvents() | _node11.HasEvents());
            Action_bt_WrapperAI_Organ_OrganTurret_node10 _node12 = new Action_bt_WrapperAI_Organ_OrganTurret_node10();

            _node12.SetClassNameString("Action");
            _node12.SetId(10);
            selector.AddChild(_node12);
            selector.SetHasEvents(selector.HasEvents() | _node12.HasEvents());
            sequence2.SetHasEvents(sequence2.HasEvents() | selector.HasEvents());
            DecoratorLoop_bt_WrapperAI_Organ_OrganTurret_node65 _node13 = new DecoratorLoop_bt_WrapperAI_Organ_OrganTurret_node65();

            _node13.SetClassNameString("DecoratorLoop");
            _node13.SetId(0x41);
            sequence2.AddChild(_node13);
            Noop noop = new Noop();

            noop.SetClassNameString("Noop");
            noop.SetId(0x42);
            _node13.AddChild(noop);
            _node13.SetHasEvents(_node13.HasEvents() | noop.HasEvents());
            sequence2.SetHasEvents(sequence2.HasEvents() | _node13.HasEvents());
            precondition2.SetHasEvents(precondition2.HasEvents() | sequence2.HasEvents());
            loop.SetHasEvents(loop.HasEvents() | precondition2.HasEvents());
            pChild.SetHasEvents(pChild.HasEvents() | loop.HasEvents());
            bt.SetHasEvents(bt.HasEvents() | pChild.HasEvents());
            return(true);
        }
        public static bool build_behavior_tree(BehaviorTree bt)
        {
            bt.SetClassNameString("BehaviorTree");
            bt.SetId(-1);
            bt.SetName("WrapperAI/Soldier/BTSoldierSiege");
            bt.AddPar("Assets.Scripts.GameLogic.SkillSlotType", "p_curSlotType", "SLOT_SKILL_0", string.Empty);
            bt.AddPar("uint", "p_targetID", "0", string.Empty);
            bt.AddPar("int", "p_srchRange", "0", string.Empty);
            bt.AddPar("UnityEngine.Vector3", "p_AttackMoveDest", "{kEpsilon=0;x=0;y=0;z=0;}", string.Empty);
            bt.AddPar("bool", "p_IsAttackMove_Attack", "false", string.Empty);
            bt.AddPar("bool", "p_AttackIsFinished", "true", string.Empty);
            bt.AddPar("uint", "p_CmdID", "0", string.Empty);
            bt.AddPar("UnityEngine.Vector3", "p_attackPathCurTargetPos", "{kEpsilon=0;x=0;y=0;z=0;}", string.Empty);
            bt.AddPar("uint", "p_tempTargetId", "0", string.Empty);
            bt.AddPar("ushort", "p_chooseTargetCount", "0", string.Empty);
            Sequence sequence = new Sequence();

            sequence.SetClassNameString("Sequence");
            sequence.SetId(0);
            bt.AddChild(sequence);
            Assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node106 assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node = new Assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node106();

            assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node.SetClassNameString("Assignment");
            assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node.SetId(106);
            sequence.AddChild(assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node);
            sequence.SetHasEvents(sequence.HasEvents() | assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node.HasEvents());
            DecoratorLoop_bt_WrapperAI_Soldier_BTSoldierSiege_node14 decoratorLoop_bt_WrapperAI_Soldier_BTSoldierSiege_node = new DecoratorLoop_bt_WrapperAI_Soldier_BTSoldierSiege_node14();

            decoratorLoop_bt_WrapperAI_Soldier_BTSoldierSiege_node.SetClassNameString("DecoratorLoop");
            decoratorLoop_bt_WrapperAI_Soldier_BTSoldierSiege_node.SetId(14);
            sequence.AddChild(decoratorLoop_bt_WrapperAI_Soldier_BTSoldierSiege_node);
            SelectorLoop selectorLoop = new SelectorLoop();

            selectorLoop.SetClassNameString("SelectorLoop");
            selectorLoop.SetId(1);
            decoratorLoop_bt_WrapperAI_Soldier_BTSoldierSiege_node.AddChild(selectorLoop);
            WithPrecondition withPrecondition = new WithPrecondition();

            withPrecondition.SetClassNameString("WithPrecondition");
            withPrecondition.SetId(59);
            selectorLoop.AddChild(withPrecondition);
            Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node78 condition_bt_WrapperAI_Soldier_BTSoldierSiege_node = new Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node78();

            condition_bt_WrapperAI_Soldier_BTSoldierSiege_node.SetClassNameString("Condition");
            condition_bt_WrapperAI_Soldier_BTSoldierSiege_node.SetId(78);
            withPrecondition.AddChild(condition_bt_WrapperAI_Soldier_BTSoldierSiege_node);
            withPrecondition.SetHasEvents(withPrecondition.HasEvents() | condition_bt_WrapperAI_Soldier_BTSoldierSiege_node.HasEvents());
            Sequence sequence2 = new Sequence();

            sequence2.SetClassNameString("Sequence");
            sequence2.SetId(41);
            withPrecondition.AddChild(sequence2);
            Assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node42 assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node2 = new Assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node42();

            assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node2.SetClassNameString("Assignment");
            assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node2.SetId(42);
            sequence2.AddChild(assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node2);
            sequence2.SetHasEvents(sequence2.HasEvents() | assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node2.HasEvents());
            SelectorLoop selectorLoop2 = new SelectorLoop();

            selectorLoop2.SetClassNameString("SelectorLoop");
            selectorLoop2.SetId(29);
            sequence2.AddChild(selectorLoop2);
            WithPrecondition withPrecondition2 = new WithPrecondition();

            withPrecondition2.SetClassNameString("WithPrecondition");
            withPrecondition2.SetId(4);
            selectorLoop2.AddChild(withPrecondition2);
            Sequence sequence3 = new Sequence();

            sequence3.SetClassNameString("Sequence");
            sequence3.SetId(105);
            withPrecondition2.AddChild(sequence3);
            Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node39 condition_bt_WrapperAI_Soldier_BTSoldierSiege_node2 = new Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node39();

            condition_bt_WrapperAI_Soldier_BTSoldierSiege_node2.SetClassNameString("Condition");
            condition_bt_WrapperAI_Soldier_BTSoldierSiege_node2.SetId(39);
            sequence3.AddChild(condition_bt_WrapperAI_Soldier_BTSoldierSiege_node2);
            sequence3.SetHasEvents(sequence3.HasEvents() | condition_bt_WrapperAI_Soldier_BTSoldierSiege_node2.HasEvents());
            Compute_bt_WrapperAI_Soldier_BTSoldierSiege_node40 compute_bt_WrapperAI_Soldier_BTSoldierSiege_node = new Compute_bt_WrapperAI_Soldier_BTSoldierSiege_node40();

            compute_bt_WrapperAI_Soldier_BTSoldierSiege_node.SetClassNameString("Compute");
            compute_bt_WrapperAI_Soldier_BTSoldierSiege_node.SetId(40);
            sequence3.AddChild(compute_bt_WrapperAI_Soldier_BTSoldierSiege_node);
            sequence3.SetHasEvents(sequence3.HasEvents() | compute_bt_WrapperAI_Soldier_BTSoldierSiege_node.HasEvents());
            Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node37 condition_bt_WrapperAI_Soldier_BTSoldierSiege_node3 = new Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node37();

            condition_bt_WrapperAI_Soldier_BTSoldierSiege_node3.SetClassNameString("Condition");
            condition_bt_WrapperAI_Soldier_BTSoldierSiege_node3.SetId(37);
            sequence3.AddChild(condition_bt_WrapperAI_Soldier_BTSoldierSiege_node3);
            sequence3.SetHasEvents(sequence3.HasEvents() | condition_bt_WrapperAI_Soldier_BTSoldierSiege_node3.HasEvents());
            Assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node107 assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node3 = new Assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node107();

            assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node3.SetClassNameString("Assignment");
            assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node3.SetId(107);
            sequence3.AddChild(assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node3);
            sequence3.SetHasEvents(sequence3.HasEvents() | assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node3.HasEvents());
            Assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node38 assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node4 = new Assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node38();

            assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node4.SetClassNameString("Assignment");
            assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node4.SetId(38);
            sequence3.AddChild(assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node4);
            sequence3.SetHasEvents(sequence3.HasEvents() | assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node4.HasEvents());
            Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node33 condition_bt_WrapperAI_Soldier_BTSoldierSiege_node4 = new Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node33();

            condition_bt_WrapperAI_Soldier_BTSoldierSiege_node4.SetClassNameString("Condition");
            condition_bt_WrapperAI_Soldier_BTSoldierSiege_node4.SetId(33);
            sequence3.AddChild(condition_bt_WrapperAI_Soldier_BTSoldierSiege_node4);
            sequence3.SetHasEvents(sequence3.HasEvents() | condition_bt_WrapperAI_Soldier_BTSoldierSiege_node4.HasEvents());
            Assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node34 assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node5 = new Assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node34();

            assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node5.SetClassNameString("Assignment");
            assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node5.SetId(34);
            sequence3.AddChild(assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node5);
            sequence3.SetHasEvents(sequence3.HasEvents() | assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node5.HasEvents());
            withPrecondition2.SetHasEvents(withPrecondition2.HasEvents() | sequence3.HasEvents());
            False @false = new False();

            @false.SetClassNameString("False");
            @false.SetId(36);
            withPrecondition2.AddChild(@false);
            withPrecondition2.SetHasEvents(withPrecondition2.HasEvents() | @false.HasEvents());
            selectorLoop2.SetHasEvents(selectorLoop2.HasEvents() | withPrecondition2.HasEvents());
            WithPrecondition withPrecondition3 = new WithPrecondition();

            withPrecondition3.SetClassNameString("WithPrecondition");
            withPrecondition3.SetId(30);
            selectorLoop2.AddChild(withPrecondition3);
            True @true = new True();

            @true.SetClassNameString("True");
            @true.SetId(31);
            withPrecondition3.AddChild(@true);
            withPrecondition3.SetHasEvents(withPrecondition3.HasEvents() | @true.HasEvents());
            IfElse ifElse = new IfElse();

            ifElse.SetClassNameString("IfElse");
            ifElse.SetId(108);
            withPrecondition3.AddChild(ifElse);
            Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node109 condition_bt_WrapperAI_Soldier_BTSoldierSiege_node5 = new Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node109();

            condition_bt_WrapperAI_Soldier_BTSoldierSiege_node5.SetClassNameString("Condition");
            condition_bt_WrapperAI_Soldier_BTSoldierSiege_node5.SetId(109);
            ifElse.AddChild(condition_bt_WrapperAI_Soldier_BTSoldierSiege_node5);
            ifElse.SetHasEvents(ifElse.HasEvents() | condition_bt_WrapperAI_Soldier_BTSoldierSiege_node5.HasEvents());
            Sequence sequence4 = new Sequence();

            sequence4.SetClassNameString("Sequence");
            sequence4.SetId(110);
            ifElse.AddChild(sequence4);
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node111 action_bt_WrapperAI_Soldier_BTSoldierSiege_node = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node111();

            action_bt_WrapperAI_Soldier_BTSoldierSiege_node.SetClassNameString("Action");
            action_bt_WrapperAI_Soldier_BTSoldierSiege_node.SetId(111);
            sequence4.AddChild(action_bt_WrapperAI_Soldier_BTSoldierSiege_node);
            sequence4.SetHasEvents(sequence4.HasEvents() | action_bt_WrapperAI_Soldier_BTSoldierSiege_node.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node112 action_bt_WrapperAI_Soldier_BTSoldierSiege_node2 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node112();

            action_bt_WrapperAI_Soldier_BTSoldierSiege_node2.SetClassNameString("Action");
            action_bt_WrapperAI_Soldier_BTSoldierSiege_node2.SetId(112);
            sequence4.AddChild(action_bt_WrapperAI_Soldier_BTSoldierSiege_node2);
            sequence4.SetHasEvents(sequence4.HasEvents() | action_bt_WrapperAI_Soldier_BTSoldierSiege_node2.HasEvents());
            IfElse ifElse2 = new IfElse();

            ifElse2.SetClassNameString("IfElse");
            ifElse2.SetId(5);
            sequence4.AddChild(ifElse2);
            Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node6 condition_bt_WrapperAI_Soldier_BTSoldierSiege_node6 = new Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node6();

            condition_bt_WrapperAI_Soldier_BTSoldierSiege_node6.SetClassNameString("Condition");
            condition_bt_WrapperAI_Soldier_BTSoldierSiege_node6.SetId(6);
            ifElse2.AddChild(condition_bt_WrapperAI_Soldier_BTSoldierSiege_node6);
            ifElse2.SetHasEvents(ifElse2.HasEvents() | condition_bt_WrapperAI_Soldier_BTSoldierSiege_node6.HasEvents());
            Sequence sequence5 = new Sequence();

            sequence5.SetClassNameString("Sequence");
            sequence5.SetId(7);
            ifElse2.AddChild(sequence5);
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node23 action_bt_WrapperAI_Soldier_BTSoldierSiege_node3 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node23();

            action_bt_WrapperAI_Soldier_BTSoldierSiege_node3.SetClassNameString("Action");
            action_bt_WrapperAI_Soldier_BTSoldierSiege_node3.SetId(23);
            sequence5.AddChild(action_bt_WrapperAI_Soldier_BTSoldierSiege_node3);
            sequence5.SetHasEvents(sequence5.HasEvents() | action_bt_WrapperAI_Soldier_BTSoldierSiege_node3.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node113 action_bt_WrapperAI_Soldier_BTSoldierSiege_node4 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node113();

            action_bt_WrapperAI_Soldier_BTSoldierSiege_node4.SetClassNameString("Action");
            action_bt_WrapperAI_Soldier_BTSoldierSiege_node4.SetId(113);
            sequence5.AddChild(action_bt_WrapperAI_Soldier_BTSoldierSiege_node4);
            sequence5.SetHasEvents(sequence5.HasEvents() | action_bt_WrapperAI_Soldier_BTSoldierSiege_node4.HasEvents());
            Selector selector = new Selector();

            selector.SetClassNameString("Selector");
            selector.SetId(17);
            sequence5.AddChild(selector);
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node114 action_bt_WrapperAI_Soldier_BTSoldierSiege_node5 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node114();

            action_bt_WrapperAI_Soldier_BTSoldierSiege_node5.SetClassNameString("Action");
            action_bt_WrapperAI_Soldier_BTSoldierSiege_node5.SetId(114);
            selector.AddChild(action_bt_WrapperAI_Soldier_BTSoldierSiege_node5);
            selector.SetHasEvents(selector.HasEvents() | action_bt_WrapperAI_Soldier_BTSoldierSiege_node5.HasEvents());
            DecoratorAlwaysFailure_bt_WrapperAI_Soldier_BTSoldierSiege_node19 decoratorAlwaysFailure_bt_WrapperAI_Soldier_BTSoldierSiege_node = new DecoratorAlwaysFailure_bt_WrapperAI_Soldier_BTSoldierSiege_node19();

            decoratorAlwaysFailure_bt_WrapperAI_Soldier_BTSoldierSiege_node.SetClassNameString("DecoratorAlwaysFailure");
            decoratorAlwaysFailure_bt_WrapperAI_Soldier_BTSoldierSiege_node.SetId(19);
            selector.AddChild(decoratorAlwaysFailure_bt_WrapperAI_Soldier_BTSoldierSiege_node);
            Assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node18 assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node6 = new Assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node18();

            assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node6.SetClassNameString("Assignment");
            assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node6.SetId(18);
            decoratorAlwaysFailure_bt_WrapperAI_Soldier_BTSoldierSiege_node.AddChild(assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node6);
            decoratorAlwaysFailure_bt_WrapperAI_Soldier_BTSoldierSiege_node.SetHasEvents(decoratorAlwaysFailure_bt_WrapperAI_Soldier_BTSoldierSiege_node.HasEvents() | assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node6.HasEvents());
            selector.SetHasEvents(selector.HasEvents() | decoratorAlwaysFailure_bt_WrapperAI_Soldier_BTSoldierSiege_node.HasEvents());
            sequence5.SetHasEvents(sequence5.HasEvents() | selector.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node140 action_bt_WrapperAI_Soldier_BTSoldierSiege_node6 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node140();

            action_bt_WrapperAI_Soldier_BTSoldierSiege_node6.SetClassNameString("Action");
            action_bt_WrapperAI_Soldier_BTSoldierSiege_node6.SetId(140);
            sequence5.AddChild(action_bt_WrapperAI_Soldier_BTSoldierSiege_node6);
            sequence5.SetHasEvents(sequence5.HasEvents() | action_bt_WrapperAI_Soldier_BTSoldierSiege_node6.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node116 action_bt_WrapperAI_Soldier_BTSoldierSiege_node7 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node116();

            action_bt_WrapperAI_Soldier_BTSoldierSiege_node7.SetClassNameString("Action");
            action_bt_WrapperAI_Soldier_BTSoldierSiege_node7.SetId(116);
            sequence5.AddChild(action_bt_WrapperAI_Soldier_BTSoldierSiege_node7);
            sequence5.SetHasEvents(sequence5.HasEvents() | action_bt_WrapperAI_Soldier_BTSoldierSiege_node7.HasEvents());
            DecoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node117 decoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node = new DecoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node117();

            decoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node.SetClassNameString("DecoratorLoopUntil");
            decoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node.SetId(117);
            sequence5.AddChild(decoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node);
            Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node118 condition_bt_WrapperAI_Soldier_BTSoldierSiege_node7 = new Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node118();

            condition_bt_WrapperAI_Soldier_BTSoldierSiege_node7.SetClassNameString("Condition");
            condition_bt_WrapperAI_Soldier_BTSoldierSiege_node7.SetId(118);
            decoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node.AddChild(condition_bt_WrapperAI_Soldier_BTSoldierSiege_node7);
            decoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node.SetHasEvents(decoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node.HasEvents() | condition_bt_WrapperAI_Soldier_BTSoldierSiege_node7.HasEvents());
            sequence5.SetHasEvents(sequence5.HasEvents() | decoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node.HasEvents());
            ifElse2.SetHasEvents(ifElse2.HasEvents() | sequence5.HasEvents());
            Sequence sequence6 = new Sequence();

            sequence6.SetClassNameString("Sequence");
            sequence6.SetId(9);
            ifElse2.AddChild(sequence6);
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node32 action_bt_WrapperAI_Soldier_BTSoldierSiege_node8 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node32();

            action_bt_WrapperAI_Soldier_BTSoldierSiege_node8.SetClassNameString("Action");
            action_bt_WrapperAI_Soldier_BTSoldierSiege_node8.SetId(32);
            sequence6.AddChild(action_bt_WrapperAI_Soldier_BTSoldierSiege_node8);
            sequence6.SetHasEvents(sequence6.HasEvents() | action_bt_WrapperAI_Soldier_BTSoldierSiege_node8.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node13 action_bt_WrapperAI_Soldier_BTSoldierSiege_node9 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node13();

            action_bt_WrapperAI_Soldier_BTSoldierSiege_node9.SetClassNameString("Action");
            action_bt_WrapperAI_Soldier_BTSoldierSiege_node9.SetId(13);
            sequence6.AddChild(action_bt_WrapperAI_Soldier_BTSoldierSiege_node9);
            sequence6.SetHasEvents(sequence6.HasEvents() | action_bt_WrapperAI_Soldier_BTSoldierSiege_node9.HasEvents());
            DecoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node15 decoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node2 = new DecoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node15();

            decoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node2.SetClassNameString("DecoratorLoopUntil");
            decoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node2.SetId(15);
            sequence6.AddChild(decoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node2);
            Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node16 condition_bt_WrapperAI_Soldier_BTSoldierSiege_node8 = new Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node16();

            condition_bt_WrapperAI_Soldier_BTSoldierSiege_node8.SetClassNameString("Condition");
            condition_bt_WrapperAI_Soldier_BTSoldierSiege_node8.SetId(16);
            decoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node2.AddChild(condition_bt_WrapperAI_Soldier_BTSoldierSiege_node8);
            decoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node2.SetHasEvents(decoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node2.HasEvents() | condition_bt_WrapperAI_Soldier_BTSoldierSiege_node8.HasEvents());
            sequence6.SetHasEvents(sequence6.HasEvents() | decoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node2.HasEvents());
            ifElse2.SetHasEvents(ifElse2.HasEvents() | sequence6.HasEvents());
            sequence4.SetHasEvents(sequence4.HasEvents() | ifElse2.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node28 action_bt_WrapperAI_Soldier_BTSoldierSiege_node10 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node28();

            action_bt_WrapperAI_Soldier_BTSoldierSiege_node10.SetClassNameString("Action");
            action_bt_WrapperAI_Soldier_BTSoldierSiege_node10.SetId(28);
            sequence4.AddChild(action_bt_WrapperAI_Soldier_BTSoldierSiege_node10);
            sequence4.SetHasEvents(sequence4.HasEvents() | action_bt_WrapperAI_Soldier_BTSoldierSiege_node10.HasEvents());
            ifElse.SetHasEvents(ifElse.HasEvents() | sequence4.HasEvents());
            Sequence sequence7 = new Sequence();

            sequence7.SetClassNameString("Sequence");
            sequence7.SetId(128);
            ifElse.AddChild(sequence7);
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node129 action_bt_WrapperAI_Soldier_BTSoldierSiege_node11 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node129();

            action_bt_WrapperAI_Soldier_BTSoldierSiege_node11.SetClassNameString("Action");
            action_bt_WrapperAI_Soldier_BTSoldierSiege_node11.SetId(129);
            sequence7.AddChild(action_bt_WrapperAI_Soldier_BTSoldierSiege_node11);
            sequence7.SetHasEvents(sequence7.HasEvents() | action_bt_WrapperAI_Soldier_BTSoldierSiege_node11.HasEvents());
            IfElse ifElse3 = new IfElse();

            ifElse3.SetClassNameString("IfElse");
            ifElse3.SetId(119);
            sequence7.AddChild(ifElse3);
            Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node120 condition_bt_WrapperAI_Soldier_BTSoldierSiege_node9 = new Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node120();

            condition_bt_WrapperAI_Soldier_BTSoldierSiege_node9.SetClassNameString("Condition");
            condition_bt_WrapperAI_Soldier_BTSoldierSiege_node9.SetId(120);
            ifElse3.AddChild(condition_bt_WrapperAI_Soldier_BTSoldierSiege_node9);
            ifElse3.SetHasEvents(ifElse3.HasEvents() | condition_bt_WrapperAI_Soldier_BTSoldierSiege_node9.HasEvents());
            Sequence sequence8 = new Sequence();

            sequence8.SetClassNameString("Sequence");
            sequence8.SetId(121);
            ifElse3.AddChild(sequence8);
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node24 action_bt_WrapperAI_Soldier_BTSoldierSiege_node12 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node24();

            action_bt_WrapperAI_Soldier_BTSoldierSiege_node12.SetClassNameString("Action");
            action_bt_WrapperAI_Soldier_BTSoldierSiege_node12.SetId(24);
            sequence8.AddChild(action_bt_WrapperAI_Soldier_BTSoldierSiege_node12);
            sequence8.SetHasEvents(sequence8.HasEvents() | action_bt_WrapperAI_Soldier_BTSoldierSiege_node12.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node444 action_bt_WrapperAI_Soldier_BTSoldierSiege_node13 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node444();

            action_bt_WrapperAI_Soldier_BTSoldierSiege_node13.SetClassNameString("Action");
            action_bt_WrapperAI_Soldier_BTSoldierSiege_node13.SetId(444);
            sequence8.AddChild(action_bt_WrapperAI_Soldier_BTSoldierSiege_node13);
            sequence8.SetHasEvents(sequence8.HasEvents() | action_bt_WrapperAI_Soldier_BTSoldierSiege_node13.HasEvents());
            Assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node122 assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node7 = new Assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node122();

            assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node7.SetClassNameString("Assignment");
            assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node7.SetId(122);
            sequence8.AddChild(assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node7);
            sequence8.SetHasEvents(sequence8.HasEvents() | assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node7.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node123 action_bt_WrapperAI_Soldier_BTSoldierSiege_node14 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node123();

            action_bt_WrapperAI_Soldier_BTSoldierSiege_node14.SetClassNameString("Action");
            action_bt_WrapperAI_Soldier_BTSoldierSiege_node14.SetId(123);
            sequence8.AddChild(action_bt_WrapperAI_Soldier_BTSoldierSiege_node14);
            sequence8.SetHasEvents(sequence8.HasEvents() | action_bt_WrapperAI_Soldier_BTSoldierSiege_node14.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node124 action_bt_WrapperAI_Soldier_BTSoldierSiege_node15 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node124();

            action_bt_WrapperAI_Soldier_BTSoldierSiege_node15.SetClassNameString("Action");
            action_bt_WrapperAI_Soldier_BTSoldierSiege_node15.SetId(124);
            sequence8.AddChild(action_bt_WrapperAI_Soldier_BTSoldierSiege_node15);
            sequence8.SetHasEvents(sequence8.HasEvents() | action_bt_WrapperAI_Soldier_BTSoldierSiege_node15.HasEvents());
            ifElse3.SetHasEvents(ifElse3.HasEvents() | sequence8.HasEvents());
            Sequence sequence9 = new Sequence();

            sequence9.SetClassNameString("Sequence");
            sequence9.SetId(125);
            ifElse3.AddChild(sequence9);
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node126 action_bt_WrapperAI_Soldier_BTSoldierSiege_node16 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node126();

            action_bt_WrapperAI_Soldier_BTSoldierSiege_node16.SetClassNameString("Action");
            action_bt_WrapperAI_Soldier_BTSoldierSiege_node16.SetId(126);
            sequence9.AddChild(action_bt_WrapperAI_Soldier_BTSoldierSiege_node16);
            sequence9.SetHasEvents(sequence9.HasEvents() | action_bt_WrapperAI_Soldier_BTSoldierSiege_node16.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node127 action_bt_WrapperAI_Soldier_BTSoldierSiege_node17 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node127();

            action_bt_WrapperAI_Soldier_BTSoldierSiege_node17.SetClassNameString("Action");
            action_bt_WrapperAI_Soldier_BTSoldierSiege_node17.SetId(127);
            sequence9.AddChild(action_bt_WrapperAI_Soldier_BTSoldierSiege_node17);
            sequence9.SetHasEvents(sequence9.HasEvents() | action_bt_WrapperAI_Soldier_BTSoldierSiege_node17.HasEvents());
            ifElse3.SetHasEvents(ifElse3.HasEvents() | sequence9.HasEvents());
            sequence7.SetHasEvents(sequence7.HasEvents() | ifElse3.HasEvents());
            ifElse.SetHasEvents(ifElse.HasEvents() | sequence7.HasEvents());
            withPrecondition3.SetHasEvents(withPrecondition3.HasEvents() | ifElse.HasEvents());
            selectorLoop2.SetHasEvents(selectorLoop2.HasEvents() | withPrecondition3.HasEvents());
            sequence2.SetHasEvents(sequence2.HasEvents() | selectorLoop2.HasEvents());
            withPrecondition.SetHasEvents(withPrecondition.HasEvents() | sequence2.HasEvents());
            selectorLoop.SetHasEvents(selectorLoop.HasEvents() | withPrecondition.HasEvents());
            WithPrecondition withPrecondition4 = new WithPrecondition();

            withPrecondition4.SetClassNameString("WithPrecondition");
            withPrecondition4.SetId(515);
            selectorLoop.AddChild(withPrecondition4);
            Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node516 condition_bt_WrapperAI_Soldier_BTSoldierSiege_node10 = new Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node516();

            condition_bt_WrapperAI_Soldier_BTSoldierSiege_node10.SetClassNameString("Condition");
            condition_bt_WrapperAI_Soldier_BTSoldierSiege_node10.SetId(516);
            withPrecondition4.AddChild(condition_bt_WrapperAI_Soldier_BTSoldierSiege_node10);
            withPrecondition4.SetHasEvents(withPrecondition4.HasEvents() | condition_bt_WrapperAI_Soldier_BTSoldierSiege_node10.HasEvents());
            Selector selector2 = new Selector();

            selector2.SetClassNameString("Selector");
            selector2.SetId(2);
            withPrecondition4.AddChild(selector2);
            Sequence sequence10 = new Sequence();

            sequence10.SetClassNameString("Sequence");
            sequence10.SetId(3);
            selector2.AddChild(sequence10);
            Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node10 condition_bt_WrapperAI_Soldier_BTSoldierSiege_node11 = new Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node10();

            condition_bt_WrapperAI_Soldier_BTSoldierSiege_node11.SetClassNameString("Condition");
            condition_bt_WrapperAI_Soldier_BTSoldierSiege_node11.SetId(10);
            sequence10.AddChild(condition_bt_WrapperAI_Soldier_BTSoldierSiege_node11);
            sequence10.SetHasEvents(sequence10.HasEvents() | condition_bt_WrapperAI_Soldier_BTSoldierSiege_node11.HasEvents());
            Assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node11 assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node8 = new Assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node11();

            assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node8.SetClassNameString("Assignment");
            assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node8.SetId(11);
            sequence10.AddChild(assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node8);
            sequence10.SetHasEvents(sequence10.HasEvents() | assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node8.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node12 action_bt_WrapperAI_Soldier_BTSoldierSiege_node18 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node12();

            action_bt_WrapperAI_Soldier_BTSoldierSiege_node18.SetClassNameString("Action");
            action_bt_WrapperAI_Soldier_BTSoldierSiege_node18.SetId(12);
            sequence10.AddChild(action_bt_WrapperAI_Soldier_BTSoldierSiege_node18);
            sequence10.SetHasEvents(sequence10.HasEvents() | action_bt_WrapperAI_Soldier_BTSoldierSiege_node18.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node8 action_bt_WrapperAI_Soldier_BTSoldierSiege_node19 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node8();

            action_bt_WrapperAI_Soldier_BTSoldierSiege_node19.SetClassNameString("Action");
            action_bt_WrapperAI_Soldier_BTSoldierSiege_node19.SetId(8);
            sequence10.AddChild(action_bt_WrapperAI_Soldier_BTSoldierSiege_node19);
            sequence10.SetHasEvents(sequence10.HasEvents() | action_bt_WrapperAI_Soldier_BTSoldierSiege_node19.HasEvents());
            selector2.SetHasEvents(selector2.HasEvents() | sequence10.HasEvents());
            Sequence sequence11 = new Sequence();

            sequence11.SetClassNameString("Sequence");
            sequence11.SetId(517);
            selector2.AddChild(sequence11);
            Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node20 condition_bt_WrapperAI_Soldier_BTSoldierSiege_node12 = new Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node20();

            condition_bt_WrapperAI_Soldier_BTSoldierSiege_node12.SetClassNameString("Condition");
            condition_bt_WrapperAI_Soldier_BTSoldierSiege_node12.SetId(20);
            sequence11.AddChild(condition_bt_WrapperAI_Soldier_BTSoldierSiege_node12);
            sequence11.SetHasEvents(sequence11.HasEvents() | condition_bt_WrapperAI_Soldier_BTSoldierSiege_node12.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node518 action_bt_WrapperAI_Soldier_BTSoldierSiege_node20 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node518();

            action_bt_WrapperAI_Soldier_BTSoldierSiege_node20.SetClassNameString("Action");
            action_bt_WrapperAI_Soldier_BTSoldierSiege_node20.SetId(518);
            sequence11.AddChild(action_bt_WrapperAI_Soldier_BTSoldierSiege_node20);
            sequence11.SetHasEvents(sequence11.HasEvents() | action_bt_WrapperAI_Soldier_BTSoldierSiege_node20.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node519 action_bt_WrapperAI_Soldier_BTSoldierSiege_node21 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node519();

            action_bt_WrapperAI_Soldier_BTSoldierSiege_node21.SetClassNameString("Action");
            action_bt_WrapperAI_Soldier_BTSoldierSiege_node21.SetId(519);
            sequence11.AddChild(action_bt_WrapperAI_Soldier_BTSoldierSiege_node21);
            sequence11.SetHasEvents(sequence11.HasEvents() | action_bt_WrapperAI_Soldier_BTSoldierSiege_node21.HasEvents());
            IfElse ifElse4 = new IfElse();

            ifElse4.SetClassNameString("IfElse");
            ifElse4.SetId(520);
            sequence11.AddChild(ifElse4);
            Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node521 condition_bt_WrapperAI_Soldier_BTSoldierSiege_node13 = new Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node521();

            condition_bt_WrapperAI_Soldier_BTSoldierSiege_node13.SetClassNameString("Condition");
            condition_bt_WrapperAI_Soldier_BTSoldierSiege_node13.SetId(521);
            ifElse4.AddChild(condition_bt_WrapperAI_Soldier_BTSoldierSiege_node13);
            ifElse4.SetHasEvents(ifElse4.HasEvents() | condition_bt_WrapperAI_Soldier_BTSoldierSiege_node13.HasEvents());
            Sequence sequence12 = new Sequence();

            sequence12.SetClassNameString("Sequence");
            sequence12.SetId(522);
            ifElse4.AddChild(sequence12);
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node523 action_bt_WrapperAI_Soldier_BTSoldierSiege_node22 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node523();

            action_bt_WrapperAI_Soldier_BTSoldierSiege_node22.SetClassNameString("Action");
            action_bt_WrapperAI_Soldier_BTSoldierSiege_node22.SetId(523);
            sequence12.AddChild(action_bt_WrapperAI_Soldier_BTSoldierSiege_node22);
            sequence12.SetHasEvents(sequence12.HasEvents() | action_bt_WrapperAI_Soldier_BTSoldierSiege_node22.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node524 action_bt_WrapperAI_Soldier_BTSoldierSiege_node23 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node524();

            action_bt_WrapperAI_Soldier_BTSoldierSiege_node23.SetClassNameString("Action");
            action_bt_WrapperAI_Soldier_BTSoldierSiege_node23.SetId(524);
            sequence12.AddChild(action_bt_WrapperAI_Soldier_BTSoldierSiege_node23);
            sequence12.SetHasEvents(sequence12.HasEvents() | action_bt_WrapperAI_Soldier_BTSoldierSiege_node23.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node526 action_bt_WrapperAI_Soldier_BTSoldierSiege_node24 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node526();

            action_bt_WrapperAI_Soldier_BTSoldierSiege_node24.SetClassNameString("Action");
            action_bt_WrapperAI_Soldier_BTSoldierSiege_node24.SetId(526);
            sequence12.AddChild(action_bt_WrapperAI_Soldier_BTSoldierSiege_node24);
            sequence12.SetHasEvents(sequence12.HasEvents() | action_bt_WrapperAI_Soldier_BTSoldierSiege_node24.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node25 action_bt_WrapperAI_Soldier_BTSoldierSiege_node25 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node25();

            action_bt_WrapperAI_Soldier_BTSoldierSiege_node25.SetClassNameString("Action");
            action_bt_WrapperAI_Soldier_BTSoldierSiege_node25.SetId(25);
            sequence12.AddChild(action_bt_WrapperAI_Soldier_BTSoldierSiege_node25);
            sequence12.SetHasEvents(sequence12.HasEvents() | action_bt_WrapperAI_Soldier_BTSoldierSiege_node25.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node530 action_bt_WrapperAI_Soldier_BTSoldierSiege_node26 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node530();

            action_bt_WrapperAI_Soldier_BTSoldierSiege_node26.SetClassNameString("Action");
            action_bt_WrapperAI_Soldier_BTSoldierSiege_node26.SetId(530);
            sequence12.AddChild(action_bt_WrapperAI_Soldier_BTSoldierSiege_node26);
            sequence12.SetHasEvents(sequence12.HasEvents() | action_bt_WrapperAI_Soldier_BTSoldierSiege_node26.HasEvents());
            DecoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node531 decoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node3 = new DecoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node531();

            decoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node3.SetClassNameString("DecoratorLoopUntil");
            decoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node3.SetId(531);
            sequence12.AddChild(decoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node3);
            Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node532 condition_bt_WrapperAI_Soldier_BTSoldierSiege_node14 = new Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node532();

            condition_bt_WrapperAI_Soldier_BTSoldierSiege_node14.SetClassNameString("Condition");
            condition_bt_WrapperAI_Soldier_BTSoldierSiege_node14.SetId(532);
            decoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node3.AddChild(condition_bt_WrapperAI_Soldier_BTSoldierSiege_node14);
            decoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node3.SetHasEvents(decoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node3.HasEvents() | condition_bt_WrapperAI_Soldier_BTSoldierSiege_node14.HasEvents());
            sequence12.SetHasEvents(sequence12.HasEvents() | decoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node3.HasEvents());
            ifElse4.SetHasEvents(ifElse4.HasEvents() | sequence12.HasEvents());
            Sequence sequence13 = new Sequence();

            sequence13.SetClassNameString("Sequence");
            sequence13.SetId(533);
            ifElse4.AddChild(sequence13);
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node26 action_bt_WrapperAI_Soldier_BTSoldierSiege_node27 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node26();

            action_bt_WrapperAI_Soldier_BTSoldierSiege_node27.SetClassNameString("Action");
            action_bt_WrapperAI_Soldier_BTSoldierSiege_node27.SetId(26);
            sequence13.AddChild(action_bt_WrapperAI_Soldier_BTSoldierSiege_node27);
            sequence13.SetHasEvents(sequence13.HasEvents() | action_bt_WrapperAI_Soldier_BTSoldierSiege_node27.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node535 action_bt_WrapperAI_Soldier_BTSoldierSiege_node28 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node535();

            action_bt_WrapperAI_Soldier_BTSoldierSiege_node28.SetClassNameString("Action");
            action_bt_WrapperAI_Soldier_BTSoldierSiege_node28.SetId(535);
            sequence13.AddChild(action_bt_WrapperAI_Soldier_BTSoldierSiege_node28);
            sequence13.SetHasEvents(sequence13.HasEvents() | action_bt_WrapperAI_Soldier_BTSoldierSiege_node28.HasEvents());
            DecoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node536 decoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node4 = new DecoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node536();

            decoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node4.SetClassNameString("DecoratorLoopUntil");
            decoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node4.SetId(536);
            sequence13.AddChild(decoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node4);
            Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node537 condition_bt_WrapperAI_Soldier_BTSoldierSiege_node15 = new Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node537();

            condition_bt_WrapperAI_Soldier_BTSoldierSiege_node15.SetClassNameString("Condition");
            condition_bt_WrapperAI_Soldier_BTSoldierSiege_node15.SetId(537);
            decoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node4.AddChild(condition_bt_WrapperAI_Soldier_BTSoldierSiege_node15);
            decoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node4.SetHasEvents(decoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node4.HasEvents() | condition_bt_WrapperAI_Soldier_BTSoldierSiege_node15.HasEvents());
            sequence13.SetHasEvents(sequence13.HasEvents() | decoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node4.HasEvents());
            ifElse4.SetHasEvents(ifElse4.HasEvents() | sequence13.HasEvents());
            sequence11.SetHasEvents(sequence11.HasEvents() | ifElse4.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node538 action_bt_WrapperAI_Soldier_BTSoldierSiege_node29 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node538();

            action_bt_WrapperAI_Soldier_BTSoldierSiege_node29.SetClassNameString("Action");
            action_bt_WrapperAI_Soldier_BTSoldierSiege_node29.SetId(538);
            sequence11.AddChild(action_bt_WrapperAI_Soldier_BTSoldierSiege_node29);
            sequence11.SetHasEvents(sequence11.HasEvents() | action_bt_WrapperAI_Soldier_BTSoldierSiege_node29.HasEvents());
            selector2.SetHasEvents(selector2.HasEvents() | sequence11.HasEvents());
            withPrecondition4.SetHasEvents(withPrecondition4.HasEvents() | selector2.HasEvents());
            selectorLoop.SetHasEvents(selectorLoop.HasEvents() | withPrecondition4.HasEvents());
            WithPrecondition withPrecondition5 = new WithPrecondition();

            withPrecondition5.SetClassNameString("WithPrecondition");
            withPrecondition5.SetId(21);
            selectorLoop.AddChild(withPrecondition5);
            Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node22 condition_bt_WrapperAI_Soldier_BTSoldierSiege_node16 = new Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node22();

            condition_bt_WrapperAI_Soldier_BTSoldierSiege_node16.SetClassNameString("Condition");
            condition_bt_WrapperAI_Soldier_BTSoldierSiege_node16.SetId(22);
            withPrecondition5.AddChild(condition_bt_WrapperAI_Soldier_BTSoldierSiege_node16);
            withPrecondition5.SetHasEvents(withPrecondition5.HasEvents() | condition_bt_WrapperAI_Soldier_BTSoldierSiege_node16.HasEvents());
            Sequence sequence14 = new Sequence();

            sequence14.SetClassNameString("Sequence");
            sequence14.SetId(27);
            withPrecondition5.AddChild(sequence14);
            Selector selector3 = new Selector();

            selector3.SetClassNameString("Selector");
            selector3.SetId(487);
            sequence14.AddChild(selector3);
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node488 action_bt_WrapperAI_Soldier_BTSoldierSiege_node30 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node488();

            action_bt_WrapperAI_Soldier_BTSoldierSiege_node30.SetClassNameString("Action");
            action_bt_WrapperAI_Soldier_BTSoldierSiege_node30.SetId(488);
            selector3.AddChild(action_bt_WrapperAI_Soldier_BTSoldierSiege_node30);
            selector3.SetHasEvents(selector3.HasEvents() | action_bt_WrapperAI_Soldier_BTSoldierSiege_node30.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node35 action_bt_WrapperAI_Soldier_BTSoldierSiege_node31 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node35();

            action_bt_WrapperAI_Soldier_BTSoldierSiege_node31.SetClassNameString("Action");
            action_bt_WrapperAI_Soldier_BTSoldierSiege_node31.SetId(35);
            selector3.AddChild(action_bt_WrapperAI_Soldier_BTSoldierSiege_node31);
            selector3.SetHasEvents(selector3.HasEvents() | action_bt_WrapperAI_Soldier_BTSoldierSiege_node31.HasEvents());
            sequence14.SetHasEvents(sequence14.HasEvents() | selector3.HasEvents());
            DecoratorLoop_bt_WrapperAI_Soldier_BTSoldierSiege_node65 decoratorLoop_bt_WrapperAI_Soldier_BTSoldierSiege_node2 = new DecoratorLoop_bt_WrapperAI_Soldier_BTSoldierSiege_node65();

            decoratorLoop_bt_WrapperAI_Soldier_BTSoldierSiege_node2.SetClassNameString("DecoratorLoop");
            decoratorLoop_bt_WrapperAI_Soldier_BTSoldierSiege_node2.SetId(65);
            sequence14.AddChild(decoratorLoop_bt_WrapperAI_Soldier_BTSoldierSiege_node2);
            Noop noop = new Noop();

            noop.SetClassNameString("Noop");
            noop.SetId(66);
            decoratorLoop_bt_WrapperAI_Soldier_BTSoldierSiege_node2.AddChild(noop);
            decoratorLoop_bt_WrapperAI_Soldier_BTSoldierSiege_node2.SetHasEvents(decoratorLoop_bt_WrapperAI_Soldier_BTSoldierSiege_node2.HasEvents() | noop.HasEvents());
            sequence14.SetHasEvents(sequence14.HasEvents() | decoratorLoop_bt_WrapperAI_Soldier_BTSoldierSiege_node2.HasEvents());
            withPrecondition5.SetHasEvents(withPrecondition5.HasEvents() | sequence14.HasEvents());
            selectorLoop.SetHasEvents(selectorLoop.HasEvents() | withPrecondition5.HasEvents());
            WithPrecondition withPrecondition6 = new WithPrecondition();

            withPrecondition6.SetClassNameString("WithPrecondition");
            withPrecondition6.SetId(450);
            selectorLoop.AddChild(withPrecondition6);
            Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node454 condition_bt_WrapperAI_Soldier_BTSoldierSiege_node17 = new Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node454();

            condition_bt_WrapperAI_Soldier_BTSoldierSiege_node17.SetClassNameString("Condition");
            condition_bt_WrapperAI_Soldier_BTSoldierSiege_node17.SetId(454);
            withPrecondition6.AddChild(condition_bt_WrapperAI_Soldier_BTSoldierSiege_node17);
            withPrecondition6.SetHasEvents(withPrecondition6.HasEvents() | condition_bt_WrapperAI_Soldier_BTSoldierSiege_node17.HasEvents());
            Sequence sequence15 = new Sequence();

            sequence15.SetClassNameString("Sequence");
            sequence15.SetId(455);
            withPrecondition6.AddChild(sequence15);
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node456 action_bt_WrapperAI_Soldier_BTSoldierSiege_node32 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node456();

            action_bt_WrapperAI_Soldier_BTSoldierSiege_node32.SetClassNameString("Action");
            action_bt_WrapperAI_Soldier_BTSoldierSiege_node32.SetId(456);
            sequence15.AddChild(action_bt_WrapperAI_Soldier_BTSoldierSiege_node32);
            sequence15.SetHasEvents(sequence15.HasEvents() | action_bt_WrapperAI_Soldier_BTSoldierSiege_node32.HasEvents());
            DecoratorLoop_bt_WrapperAI_Soldier_BTSoldierSiege_node457 decoratorLoop_bt_WrapperAI_Soldier_BTSoldierSiege_node3 = new DecoratorLoop_bt_WrapperAI_Soldier_BTSoldierSiege_node457();

            decoratorLoop_bt_WrapperAI_Soldier_BTSoldierSiege_node3.SetClassNameString("DecoratorLoop");
            decoratorLoop_bt_WrapperAI_Soldier_BTSoldierSiege_node3.SetId(457);
            sequence15.AddChild(decoratorLoop_bt_WrapperAI_Soldier_BTSoldierSiege_node3);
            Noop noop2 = new Noop();

            noop2.SetClassNameString("Noop");
            noop2.SetId(458);
            decoratorLoop_bt_WrapperAI_Soldier_BTSoldierSiege_node3.AddChild(noop2);
            decoratorLoop_bt_WrapperAI_Soldier_BTSoldierSiege_node3.SetHasEvents(decoratorLoop_bt_WrapperAI_Soldier_BTSoldierSiege_node3.HasEvents() | noop2.HasEvents());
            sequence15.SetHasEvents(sequence15.HasEvents() | decoratorLoop_bt_WrapperAI_Soldier_BTSoldierSiege_node3.HasEvents());
            withPrecondition6.SetHasEvents(withPrecondition6.HasEvents() | sequence15.HasEvents());
            selectorLoop.SetHasEvents(selectorLoop.HasEvents() | withPrecondition6.HasEvents());
            decoratorLoop_bt_WrapperAI_Soldier_BTSoldierSiege_node.SetHasEvents(decoratorLoop_bt_WrapperAI_Soldier_BTSoldierSiege_node.HasEvents() | selectorLoop.HasEvents());
            sequence.SetHasEvents(sequence.HasEvents() | decoratorLoop_bt_WrapperAI_Soldier_BTSoldierSiege_node.HasEvents());
            bt.SetHasEvents(bt.HasEvents() | sequence.HasEvents());
            return(true);
        }
예제 #10
0
 public static bool build_behavior_tree(BehaviorTree bt)
 {
     bt.SetClassNameString("BehaviorTree");
     bt.SetId(-1);
     bt.SetName("node_test/predicate_selector_ut_5");
     #if !BEHAVIAC_RELEASE
     bt.SetAgentType("AgentNodeTest");
     #endif
     // children
     {
         Selector node0 = new Selector();
         node0.SetClassNameString("Selector");
         node0.SetId(0);
     #if !BEHAVIAC_RELEASE
         node0.SetAgentType("AgentNodeTest");
     #endif
         // attachments
         {
             Predicate_bt_node_test_predicate_selector_ut_5_attach1 attach1 = new Predicate_bt_node_test_predicate_selector_ut_5_attach1();
             attach1.SetClassNameString("Predicate");
             attach1.SetId(1);
     #if !BEHAVIAC_RELEASE
             attach1.SetAgentType("AgentNodeTest");
     #endif
             node0.Attach(attach1);
         }
         {
             Predicate_bt_node_test_predicate_selector_ut_5_attach3 attach3 = new Predicate_bt_node_test_predicate_selector_ut_5_attach3();
             attach3.SetClassNameString("Predicate");
             attach3.SetId(3);
     #if !BEHAVIAC_RELEASE
             attach3.SetAgentType("AgentNodeTest");
     #endif
             node0.Attach(attach3);
         }
         {
             Predicate_bt_node_test_predicate_selector_ut_5_attach6 attach6 = new Predicate_bt_node_test_predicate_selector_ut_5_attach6();
             attach6.SetClassNameString("Predicate");
             attach6.SetId(6);
     #if !BEHAVIAC_RELEASE
             attach6.SetAgentType("AgentNodeTest");
     #endif
             node0.Attach(attach6);
         }
         bt.AddChild(node0);
         {
             Action_bt_node_test_predicate_selector_ut_5_node5 node5 = new Action_bt_node_test_predicate_selector_ut_5_node5();
             node5.SetClassNameString("Action");
             node5.SetId(5);
     #if !BEHAVIAC_RELEASE
             node5.SetAgentType("AgentNodeTest");
     #endif
             node0.AddChild(node5);
             node0.SetHasEvents(node0.HasEvents() | node5.HasEvents());
         }
         {
             Action_bt_node_test_predicate_selector_ut_5_node4 node4 = new Action_bt_node_test_predicate_selector_ut_5_node4();
             node4.SetClassNameString("Action");
             node4.SetId(4);
     #if !BEHAVIAC_RELEASE
             node4.SetAgentType("AgentNodeTest");
     #endif
             node0.AddChild(node4);
             node0.SetHasEvents(node0.HasEvents() | node4.HasEvents());
         }
         {
             Action_bt_node_test_predicate_selector_ut_5_node2 node2 = new Action_bt_node_test_predicate_selector_ut_5_node2();
             node2.SetClassNameString("Action");
             node2.SetId(2);
     #if !BEHAVIAC_RELEASE
             node2.SetAgentType("AgentNodeTest");
     #endif
             node0.AddChild(node2);
             node0.SetHasEvents(node0.HasEvents() | node2.HasEvents());
         }
         {
             Action_bt_node_test_predicate_selector_ut_5_node7 node7 = new Action_bt_node_test_predicate_selector_ut_5_node7();
             node7.SetClassNameString("Action");
             node7.SetId(7);
     #if !BEHAVIAC_RELEASE
             node7.SetAgentType("AgentNodeTest");
     #endif
             node0.AddChild(node7);
             node0.SetHasEvents(node0.HasEvents() | node7.HasEvents());
         }
         bt.SetHasEvents(bt.HasEvents() | node0.HasEvents());
     }
     return true;
 }
예제 #11
0
 public static bool build_behavior_tree(BehaviorTree bt)
 {
     bt.SetClassNameString("BehaviorTree");
     bt.SetId(-1);
     bt.SetName("node_test/query_ut_0");
     #if !BEHAVIAC_RELEASE
     bt.SetAgentType("AgentNodeTest");
     #endif
     // children
     {
         Sequence_bt_node_test_query_ut_0_node0 node0 = new Sequence_bt_node_test_query_ut_0_node0();
         node0.SetClassNameString("Sequence");
         node0.SetId(0);
     #if !BEHAVIAC_RELEASE
         node0.SetAgentType("AgentNodeTest");
     #endif
         bt.AddChild(node0);
         {
             Query_bt_node_test_query_ut_0_node1 node1 = new Query_bt_node_test_query_ut_0_node1();
             node1.SetClassNameString("Query");
             node1.SetId(1);
     #if !BEHAVIAC_RELEASE
             node1.SetAgentType("AgentNodeTest");
     #endif
             node0.AddChild(node1);
             node0.SetHasEvents(node0.HasEvents() | node1.HasEvents());
         }
         {
             Selector node2 = new Selector();
             node2.SetClassNameString("Selector");
             node2.SetId(2);
     #if !BEHAVIAC_RELEASE
             node2.SetAgentType("AgentNodeTest");
     #endif
             node0.AddChild(node2);
             {
                 Query_bt_node_test_query_ut_0_node3 node3 = new Query_bt_node_test_query_ut_0_node3();
                 node3.SetClassNameString("Query");
                 node3.SetId(3);
     #if !BEHAVIAC_RELEASE
                 node3.SetAgentType("AgentNodeTest");
     #endif
                 node2.AddChild(node3);
                 node2.SetHasEvents(node2.HasEvents() | node3.HasEvents());
             }
             {
                 Query_bt_node_test_query_ut_0_node4 node4 = new Query_bt_node_test_query_ut_0_node4();
                 node4.SetClassNameString("Query");
                 node4.SetId(4);
     #if !BEHAVIAC_RELEASE
                 node4.SetAgentType("AgentNodeTest");
     #endif
                 node2.AddChild(node4);
                 node2.SetHasEvents(node2.HasEvents() | node4.HasEvents());
             }
             node0.SetHasEvents(node0.HasEvents() | node2.HasEvents());
         }
         bt.SetHasEvents(bt.HasEvents() | node0.HasEvents());
     }
     return true;
 }
예제 #12
0
 public static bool build_behavior_tree(BehaviorTree bt)
 {
     bt.SetClassNameString("BehaviorTree");
     bt.SetId(-1);
     bt.SetName("node_test/decoration_countlimit_ut_3");
     #if !BEHAVIAC_RELEASE
     bt.SetAgentType("AgentNodeTest");
     #endif
     // children
     {
         Selector node0 = new Selector();
         node0.SetClassNameString("Selector");
         node0.SetId(0);
     #if !BEHAVIAC_RELEASE
         node0.SetAgentType("AgentNodeTest");
     #endif
         bt.AddChild(node0);
         {
             DecoratorCountLimit_bt_node_test_decoration_countlimit_ut_3_node1 node1 = new DecoratorCountLimit_bt_node_test_decoration_countlimit_ut_3_node1();
             node1.SetClassNameString("DecoratorCountLimit");
             node1.SetId(1);
     #if !BEHAVIAC_RELEASE
             node1.SetAgentType("AgentNodeTest");
     #endif
             // attachments
             {
                 Predicate_bt_node_test_decoration_countlimit_ut_3_attach4 attach4 = new Predicate_bt_node_test_decoration_countlimit_ut_3_attach4();
                 attach4.SetClassNameString("Predicate");
                 attach4.SetId(4);
     #if !BEHAVIAC_RELEASE
                 attach4.SetAgentType("AgentNodeTest");
     #endif
                 node1.Attach(attach4);
             }
             {
                 Predicate_bt_node_test_decoration_countlimit_ut_3_attach5 attach5 = new Predicate_bt_node_test_decoration_countlimit_ut_3_attach5();
                 attach5.SetClassNameString("Predicate");
                 attach5.SetId(5);
     #if !BEHAVIAC_RELEASE
                 attach5.SetAgentType("AgentNodeTest");
     #endif
                 node1.Attach(attach5);
             }
             {
                 Predicate_bt_node_test_decoration_countlimit_ut_3_attach6 attach6 = new Predicate_bt_node_test_decoration_countlimit_ut_3_attach6();
                 attach6.SetClassNameString("Predicate");
                 attach6.SetId(6);
     #if !BEHAVIAC_RELEASE
                 attach6.SetAgentType("AgentNodeTest");
     #endif
                 node1.Attach(attach6);
             }
             node0.AddChild(node1);
             {
                 Action_bt_node_test_decoration_countlimit_ut_3_node2 node2 = new Action_bt_node_test_decoration_countlimit_ut_3_node2();
                 node2.SetClassNameString("Action");
                 node2.SetId(2);
     #if !BEHAVIAC_RELEASE
                 node2.SetAgentType("AgentNodeTest");
     #endif
                 node1.AddChild(node2);
                 node1.SetHasEvents(node1.HasEvents() | node2.HasEvents());
             }
             node0.SetHasEvents(node0.HasEvents() | node1.HasEvents());
         }
         {
             Action_bt_node_test_decoration_countlimit_ut_3_node3 node3 = new Action_bt_node_test_decoration_countlimit_ut_3_node3();
             node3.SetClassNameString("Action");
             node3.SetId(3);
     #if !BEHAVIAC_RELEASE
             node3.SetAgentType("AgentNodeTest");
     #endif
             node0.AddChild(node3);
             node0.SetHasEvents(node0.HasEvents() | node3.HasEvents());
         }
         bt.SetHasEvents(bt.HasEvents() | node0.HasEvents());
     }
     return true;
 }
        public static bool build_behavior_tree(BehaviorTree bt)
        {
            bt.SetClassNameString("BehaviorTree");
            bt.SetId(-1);
            bt.SetName("WrapperAI/Monster/BTMonsterBaozou");
            bt.AddPar("uint", "p_targetID", "0", string.Empty);
            bt.AddPar("int", "p_srchRange", "0", string.Empty);
            bt.AddPar("uint", "p_selfID", "0", string.Empty);
            bt.AddPar("UnityEngine.Vector3", "p_targetPos", "{kEpsilon=0;x=0;y=0;z=0;}", string.Empty);
            bt.AddPar("int", "p_randomIndex", "0", string.Empty);
            Sequence sequence = new Sequence();

            sequence.SetClassNameString("Sequence");
            sequence.SetId(0);
            bt.AddChild(sequence);
            Assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node4 assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node = new Assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node4();

            assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node.SetClassNameString("Assignment");
            assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node.SetId(4);
            sequence.AddChild(assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node);
            sequence.SetHasEvents(sequence.HasEvents() | assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node.HasEvents());
            Assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node98 assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node2 = new Assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node98();

            assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node2.SetClassNameString("Assignment");
            assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node2.SetId(98);
            sequence.AddChild(assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node2);
            sequence.SetHasEvents(sequence.HasEvents() | assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node2.HasEvents());
            Assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node48 assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node3 = new Assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node48();

            assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node3.SetClassNameString("Assignment");
            assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node3.SetId(48);
            sequence.AddChild(assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node3);
            sequence.SetHasEvents(sequence.HasEvents() | assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node3.HasEvents());
            Assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node11 assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node4 = new Assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node11();

            assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node4.SetClassNameString("Assignment");
            assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node4.SetId(11);
            sequence.AddChild(assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node4);
            sequence.SetHasEvents(sequence.HasEvents() | assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node4.HasEvents());
            DecoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node14 decoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node = new DecoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node14();

            decoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node.SetClassNameString("DecoratorLoop");
            decoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node.SetId(14);
            sequence.AddChild(decoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node);
            SelectorLoop selectorLoop = new SelectorLoop();

            selectorLoop.SetClassNameString("SelectorLoop");
            selectorLoop.SetId(1);
            decoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node.AddChild(selectorLoop);
            WithPrecondition withPrecondition = new WithPrecondition();

            withPrecondition.SetClassNameString("WithPrecondition");
            withPrecondition.SetId(60);
            selectorLoop.AddChild(withPrecondition);
            Condition_bt_WrapperAI_Monster_BTMonsterBaozou_node61 condition_bt_WrapperAI_Monster_BTMonsterBaozou_node = new Condition_bt_WrapperAI_Monster_BTMonsterBaozou_node61();

            condition_bt_WrapperAI_Monster_BTMonsterBaozou_node.SetClassNameString("Condition");
            condition_bt_WrapperAI_Monster_BTMonsterBaozou_node.SetId(61);
            withPrecondition.AddChild(condition_bt_WrapperAI_Monster_BTMonsterBaozou_node);
            withPrecondition.SetHasEvents(withPrecondition.HasEvents() | condition_bt_WrapperAI_Monster_BTMonsterBaozou_node.HasEvents());
            IfElse ifElse = new IfElse();

            ifElse.SetClassNameString("IfElse");
            ifElse.SetId(16);
            withPrecondition.AddChild(ifElse);
            Action_bt_WrapperAI_Monster_BTMonsterBaozou_node7 action_bt_WrapperAI_Monster_BTMonsterBaozou_node = new Action_bt_WrapperAI_Monster_BTMonsterBaozou_node7();

            action_bt_WrapperAI_Monster_BTMonsterBaozou_node.SetClassNameString("Action");
            action_bt_WrapperAI_Monster_BTMonsterBaozou_node.SetId(7);
            ifElse.AddChild(action_bt_WrapperAI_Monster_BTMonsterBaozou_node);
            ifElse.SetHasEvents(ifElse.HasEvents() | action_bt_WrapperAI_Monster_BTMonsterBaozou_node.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterBaozou_node3 action_bt_WrapperAI_Monster_BTMonsterBaozou_node2 = new Action_bt_WrapperAI_Monster_BTMonsterBaozou_node3();

            action_bt_WrapperAI_Monster_BTMonsterBaozou_node2.SetClassNameString("Action");
            action_bt_WrapperAI_Monster_BTMonsterBaozou_node2.SetId(3);
            ifElse.AddChild(action_bt_WrapperAI_Monster_BTMonsterBaozou_node2);
            ifElse.SetHasEvents(ifElse.HasEvents() | action_bt_WrapperAI_Monster_BTMonsterBaozou_node2.HasEvents());
            Sequence sequence2 = new Sequence();

            sequence2.SetClassNameString("Sequence");
            sequence2.SetId(10);
            ifElse.AddChild(sequence2);
            Action_bt_WrapperAI_Monster_BTMonsterBaozou_node17 action_bt_WrapperAI_Monster_BTMonsterBaozou_node3 = new Action_bt_WrapperAI_Monster_BTMonsterBaozou_node17();

            action_bt_WrapperAI_Monster_BTMonsterBaozou_node3.SetClassNameString("Action");
            action_bt_WrapperAI_Monster_BTMonsterBaozou_node3.SetId(17);
            sequence2.AddChild(action_bt_WrapperAI_Monster_BTMonsterBaozou_node3);
            sequence2.SetHasEvents(sequence2.HasEvents() | action_bt_WrapperAI_Monster_BTMonsterBaozou_node3.HasEvents());
            IfElse ifElse2 = new IfElse();

            ifElse2.SetClassNameString("IfElse");
            ifElse2.SetId(18);
            sequence2.AddChild(ifElse2);
            Condition_bt_WrapperAI_Monster_BTMonsterBaozou_node19 condition_bt_WrapperAI_Monster_BTMonsterBaozou_node2 = new Condition_bt_WrapperAI_Monster_BTMonsterBaozou_node19();

            condition_bt_WrapperAI_Monster_BTMonsterBaozou_node2.SetClassNameString("Condition");
            condition_bt_WrapperAI_Monster_BTMonsterBaozou_node2.SetId(19);
            ifElse2.AddChild(condition_bt_WrapperAI_Monster_BTMonsterBaozou_node2);
            ifElse2.SetHasEvents(ifElse2.HasEvents() | condition_bt_WrapperAI_Monster_BTMonsterBaozou_node2.HasEvents());
            Sequence sequence3 = new Sequence();

            sequence3.SetClassNameString("Sequence");
            sequence3.SetId(20);
            ifElse2.AddChild(sequence3);
            Assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node21 assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node5 = new Assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node21();

            assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node5.SetClassNameString("Assignment");
            assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node5.SetId(21);
            sequence3.AddChild(assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node5);
            sequence3.SetHasEvents(sequence3.HasEvents() | assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node5.HasEvents());
            Assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node22 assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node6 = new Assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node22();

            assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node6.SetClassNameString("Assignment");
            assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node6.SetId(22);
            sequence3.AddChild(assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node6);
            sequence3.SetHasEvents(sequence3.HasEvents() | assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node6.HasEvents());
            ifElse2.SetHasEvents(ifElse2.HasEvents() | sequence3.HasEvents());
            Noop noop = new Noop();

            noop.SetClassNameString("Noop");
            noop.SetId(23);
            ifElse2.AddChild(noop);
            ifElse2.SetHasEvents(ifElse2.HasEvents() | noop.HasEvents());
            sequence2.SetHasEvents(sequence2.HasEvents() | ifElse2.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterBaozou_node26 action_bt_WrapperAI_Monster_BTMonsterBaozou_node4 = new Action_bt_WrapperAI_Monster_BTMonsterBaozou_node26();

            action_bt_WrapperAI_Monster_BTMonsterBaozou_node4.SetClassNameString("Action");
            action_bt_WrapperAI_Monster_BTMonsterBaozou_node4.SetId(26);
            sequence2.AddChild(action_bt_WrapperAI_Monster_BTMonsterBaozou_node4);
            sequence2.SetHasEvents(sequence2.HasEvents() | action_bt_WrapperAI_Monster_BTMonsterBaozou_node4.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterBaozou_node27 action_bt_WrapperAI_Monster_BTMonsterBaozou_node5 = new Action_bt_WrapperAI_Monster_BTMonsterBaozou_node27();

            action_bt_WrapperAI_Monster_BTMonsterBaozou_node5.SetClassNameString("Action");
            action_bt_WrapperAI_Monster_BTMonsterBaozou_node5.SetId(27);
            sequence2.AddChild(action_bt_WrapperAI_Monster_BTMonsterBaozou_node5);
            sequence2.SetHasEvents(sequence2.HasEvents() | action_bt_WrapperAI_Monster_BTMonsterBaozou_node5.HasEvents());
            ifElse.SetHasEvents(ifElse.HasEvents() | sequence2.HasEvents());
            withPrecondition.SetHasEvents(withPrecondition.HasEvents() | ifElse.HasEvents());
            selectorLoop.SetHasEvents(selectorLoop.HasEvents() | withPrecondition.HasEvents());
            WithPrecondition withPrecondition2 = new WithPrecondition();

            withPrecondition2.SetClassNameString("WithPrecondition");
            withPrecondition2.SetId(70);
            selectorLoop.AddChild(withPrecondition2);
            Condition_bt_WrapperAI_Monster_BTMonsterBaozou_node71 condition_bt_WrapperAI_Monster_BTMonsterBaozou_node3 = new Condition_bt_WrapperAI_Monster_BTMonsterBaozou_node71();

            condition_bt_WrapperAI_Monster_BTMonsterBaozou_node3.SetClassNameString("Condition");
            condition_bt_WrapperAI_Monster_BTMonsterBaozou_node3.SetId(71);
            withPrecondition2.AddChild(condition_bt_WrapperAI_Monster_BTMonsterBaozou_node3);
            withPrecondition2.SetHasEvents(withPrecondition2.HasEvents() | condition_bt_WrapperAI_Monster_BTMonsterBaozou_node3.HasEvents());
            IfElse ifElse3 = new IfElse();

            ifElse3.SetClassNameString("IfElse");
            ifElse3.SetId(28);
            withPrecondition2.AddChild(ifElse3);
            Action_bt_WrapperAI_Monster_BTMonsterBaozou_node5 action_bt_WrapperAI_Monster_BTMonsterBaozou_node6 = new Action_bt_WrapperAI_Monster_BTMonsterBaozou_node5();

            action_bt_WrapperAI_Monster_BTMonsterBaozou_node6.SetClassNameString("Action");
            action_bt_WrapperAI_Monster_BTMonsterBaozou_node6.SetId(5);
            ifElse3.AddChild(action_bt_WrapperAI_Monster_BTMonsterBaozou_node6);
            ifElse3.SetHasEvents(ifElse3.HasEvents() | action_bt_WrapperAI_Monster_BTMonsterBaozou_node6.HasEvents());
            Sequence sequence4 = new Sequence();

            sequence4.SetClassNameString("Sequence");
            sequence4.SetId(29);
            ifElse3.AddChild(sequence4);
            Action_bt_WrapperAI_Monster_BTMonsterBaozou_node30 action_bt_WrapperAI_Monster_BTMonsterBaozou_node7 = new Action_bt_WrapperAI_Monster_BTMonsterBaozou_node30();

            action_bt_WrapperAI_Monster_BTMonsterBaozou_node7.SetClassNameString("Action");
            action_bt_WrapperAI_Monster_BTMonsterBaozou_node7.SetId(30);
            sequence4.AddChild(action_bt_WrapperAI_Monster_BTMonsterBaozou_node7);
            sequence4.SetHasEvents(sequence4.HasEvents() | action_bt_WrapperAI_Monster_BTMonsterBaozou_node7.HasEvents());
            IfElse ifElse4 = new IfElse();

            ifElse4.SetClassNameString("IfElse");
            ifElse4.SetId(31);
            sequence4.AddChild(ifElse4);
            Condition_bt_WrapperAI_Monster_BTMonsterBaozou_node32 condition_bt_WrapperAI_Monster_BTMonsterBaozou_node4 = new Condition_bt_WrapperAI_Monster_BTMonsterBaozou_node32();

            condition_bt_WrapperAI_Monster_BTMonsterBaozou_node4.SetClassNameString("Condition");
            condition_bt_WrapperAI_Monster_BTMonsterBaozou_node4.SetId(32);
            ifElse4.AddChild(condition_bt_WrapperAI_Monster_BTMonsterBaozou_node4);
            ifElse4.SetHasEvents(ifElse4.HasEvents() | condition_bt_WrapperAI_Monster_BTMonsterBaozou_node4.HasEvents());
            Sequence sequence5 = new Sequence();

            sequence5.SetClassNameString("Sequence");
            sequence5.SetId(33);
            ifElse4.AddChild(sequence5);
            Assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node35 assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node7 = new Assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node35();

            assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node7.SetClassNameString("Assignment");
            assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node7.SetId(35);
            sequence5.AddChild(assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node7);
            sequence5.SetHasEvents(sequence5.HasEvents() | assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node7.HasEvents());
            Assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node36 assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node8 = new Assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node36();

            assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node8.SetClassNameString("Assignment");
            assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node8.SetId(36);
            sequence5.AddChild(assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node8);
            sequence5.SetHasEvents(sequence5.HasEvents() | assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node8.HasEvents());
            ifElse4.SetHasEvents(ifElse4.HasEvents() | sequence5.HasEvents());
            Noop noop2 = new Noop();

            noop2.SetClassNameString("Noop");
            noop2.SetId(37);
            ifElse4.AddChild(noop2);
            ifElse4.SetHasEvents(ifElse4.HasEvents() | noop2.HasEvents());
            sequence4.SetHasEvents(sequence4.HasEvents() | ifElse4.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterBaozou_node38 action_bt_WrapperAI_Monster_BTMonsterBaozou_node8 = new Action_bt_WrapperAI_Monster_BTMonsterBaozou_node38();

            action_bt_WrapperAI_Monster_BTMonsterBaozou_node8.SetClassNameString("Action");
            action_bt_WrapperAI_Monster_BTMonsterBaozou_node8.SetId(38);
            sequence4.AddChild(action_bt_WrapperAI_Monster_BTMonsterBaozou_node8);
            sequence4.SetHasEvents(sequence4.HasEvents() | action_bt_WrapperAI_Monster_BTMonsterBaozou_node8.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterBaozou_node39 action_bt_WrapperAI_Monster_BTMonsterBaozou_node9 = new Action_bt_WrapperAI_Monster_BTMonsterBaozou_node39();

            action_bt_WrapperAI_Monster_BTMonsterBaozou_node9.SetClassNameString("Action");
            action_bt_WrapperAI_Monster_BTMonsterBaozou_node9.SetId(39);
            sequence4.AddChild(action_bt_WrapperAI_Monster_BTMonsterBaozou_node9);
            sequence4.SetHasEvents(sequence4.HasEvents() | action_bt_WrapperAI_Monster_BTMonsterBaozou_node9.HasEvents());
            ifElse3.SetHasEvents(ifElse3.HasEvents() | sequence4.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterBaozou_node6 action_bt_WrapperAI_Monster_BTMonsterBaozou_node10 = new Action_bt_WrapperAI_Monster_BTMonsterBaozou_node6();

            action_bt_WrapperAI_Monster_BTMonsterBaozou_node10.SetClassNameString("Action");
            action_bt_WrapperAI_Monster_BTMonsterBaozou_node10.SetId(6);
            ifElse3.AddChild(action_bt_WrapperAI_Monster_BTMonsterBaozou_node10);
            ifElse3.SetHasEvents(ifElse3.HasEvents() | action_bt_WrapperAI_Monster_BTMonsterBaozou_node10.HasEvents());
            withPrecondition2.SetHasEvents(withPrecondition2.HasEvents() | ifElse3.HasEvents());
            selectorLoop.SetHasEvents(selectorLoop.HasEvents() | withPrecondition2.HasEvents());
            WithPrecondition withPrecondition3 = new WithPrecondition();

            withPrecondition3.SetClassNameString("WithPrecondition");
            withPrecondition3.SetId(515);
            selectorLoop.AddChild(withPrecondition3);
            Condition_bt_WrapperAI_Monster_BTMonsterBaozou_node516 condition_bt_WrapperAI_Monster_BTMonsterBaozou_node5 = new Condition_bt_WrapperAI_Monster_BTMonsterBaozou_node516();

            condition_bt_WrapperAI_Monster_BTMonsterBaozou_node5.SetClassNameString("Condition");
            condition_bt_WrapperAI_Monster_BTMonsterBaozou_node5.SetId(516);
            withPrecondition3.AddChild(condition_bt_WrapperAI_Monster_BTMonsterBaozou_node5);
            withPrecondition3.SetHasEvents(withPrecondition3.HasEvents() | condition_bt_WrapperAI_Monster_BTMonsterBaozou_node5.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterBaozou_node9 action_bt_WrapperAI_Monster_BTMonsterBaozou_node11 = new Action_bt_WrapperAI_Monster_BTMonsterBaozou_node9();

            action_bt_WrapperAI_Monster_BTMonsterBaozou_node11.SetClassNameString("Action");
            action_bt_WrapperAI_Monster_BTMonsterBaozou_node11.SetId(9);
            withPrecondition3.AddChild(action_bt_WrapperAI_Monster_BTMonsterBaozou_node11);
            withPrecondition3.SetHasEvents(withPrecondition3.HasEvents() | action_bt_WrapperAI_Monster_BTMonsterBaozou_node11.HasEvents());
            selectorLoop.SetHasEvents(selectorLoop.HasEvents() | withPrecondition3.HasEvents());
            WithPrecondition withPrecondition4 = new WithPrecondition();

            withPrecondition4.SetClassNameString("WithPrecondition");
            withPrecondition4.SetId(24);
            selectorLoop.AddChild(withPrecondition4);
            Condition_bt_WrapperAI_Monster_BTMonsterBaozou_node25 condition_bt_WrapperAI_Monster_BTMonsterBaozou_node6 = new Condition_bt_WrapperAI_Monster_BTMonsterBaozou_node25();

            condition_bt_WrapperAI_Monster_BTMonsterBaozou_node6.SetClassNameString("Condition");
            condition_bt_WrapperAI_Monster_BTMonsterBaozou_node6.SetId(25);
            withPrecondition4.AddChild(condition_bt_WrapperAI_Monster_BTMonsterBaozou_node6);
            withPrecondition4.SetHasEvents(withPrecondition4.HasEvents() | condition_bt_WrapperAI_Monster_BTMonsterBaozou_node6.HasEvents());
            Sequence sequence6 = new Sequence();

            sequence6.SetClassNameString("Sequence");
            sequence6.SetId(165);
            withPrecondition4.AddChild(sequence6);
            Selector selector = new Selector();

            selector.SetClassNameString("Selector");
            selector.SetId(487);
            sequence6.AddChild(selector);
            Action_bt_WrapperAI_Monster_BTMonsterBaozou_node488 action_bt_WrapperAI_Monster_BTMonsterBaozou_node12 = new Action_bt_WrapperAI_Monster_BTMonsterBaozou_node488();

            action_bt_WrapperAI_Monster_BTMonsterBaozou_node12.SetClassNameString("Action");
            action_bt_WrapperAI_Monster_BTMonsterBaozou_node12.SetId(488);
            selector.AddChild(action_bt_WrapperAI_Monster_BTMonsterBaozou_node12);
            selector.SetHasEvents(selector.HasEvents() | action_bt_WrapperAI_Monster_BTMonsterBaozou_node12.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterBaozou_node166 action_bt_WrapperAI_Monster_BTMonsterBaozou_node13 = new Action_bt_WrapperAI_Monster_BTMonsterBaozou_node166();

            action_bt_WrapperAI_Monster_BTMonsterBaozou_node13.SetClassNameString("Action");
            action_bt_WrapperAI_Monster_BTMonsterBaozou_node13.SetId(166);
            selector.AddChild(action_bt_WrapperAI_Monster_BTMonsterBaozou_node13);
            selector.SetHasEvents(selector.HasEvents() | action_bt_WrapperAI_Monster_BTMonsterBaozou_node13.HasEvents());
            sequence6.SetHasEvents(sequence6.HasEvents() | selector.HasEvents());
            DecoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node167 decoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node2 = new DecoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node167();

            decoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node2.SetClassNameString("DecoratorLoop");
            decoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node2.SetId(167);
            sequence6.AddChild(decoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node2);
            Noop noop3 = new Noop();

            noop3.SetClassNameString("Noop");
            noop3.SetId(168);
            decoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node2.AddChild(noop3);
            decoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node2.SetHasEvents(decoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node2.HasEvents() | noop3.HasEvents());
            sequence6.SetHasEvents(sequence6.HasEvents() | decoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node2.HasEvents());
            withPrecondition4.SetHasEvents(withPrecondition4.HasEvents() | sequence6.HasEvents());
            selectorLoop.SetHasEvents(selectorLoop.HasEvents() | withPrecondition4.HasEvents());
            WithPrecondition withPrecondition5 = new WithPrecondition();

            withPrecondition5.SetClassNameString("WithPrecondition");
            withPrecondition5.SetId(34);
            selectorLoop.AddChild(withPrecondition5);
            Condition_bt_WrapperAI_Monster_BTMonsterBaozou_node40 condition_bt_WrapperAI_Monster_BTMonsterBaozou_node7 = new Condition_bt_WrapperAI_Monster_BTMonsterBaozou_node40();

            condition_bt_WrapperAI_Monster_BTMonsterBaozou_node7.SetClassNameString("Condition");
            condition_bt_WrapperAI_Monster_BTMonsterBaozou_node7.SetId(40);
            withPrecondition5.AddChild(condition_bt_WrapperAI_Monster_BTMonsterBaozou_node7);
            withPrecondition5.SetHasEvents(withPrecondition5.HasEvents() | condition_bt_WrapperAI_Monster_BTMonsterBaozou_node7.HasEvents());
            Sequence sequence7 = new Sequence();

            sequence7.SetClassNameString("Sequence");
            sequence7.SetId(41);
            withPrecondition5.AddChild(sequence7);
            Action_bt_WrapperAI_Monster_BTMonsterBaozou_node42 action_bt_WrapperAI_Monster_BTMonsterBaozou_node14 = new Action_bt_WrapperAI_Monster_BTMonsterBaozou_node42();

            action_bt_WrapperAI_Monster_BTMonsterBaozou_node14.SetClassNameString("Action");
            action_bt_WrapperAI_Monster_BTMonsterBaozou_node14.SetId(42);
            sequence7.AddChild(action_bt_WrapperAI_Monster_BTMonsterBaozou_node14);
            sequence7.SetHasEvents(sequence7.HasEvents() | action_bt_WrapperAI_Monster_BTMonsterBaozou_node14.HasEvents());
            DecoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node43 decoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node3 = new DecoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node43();

            decoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node3.SetClassNameString("DecoratorLoop");
            decoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node3.SetId(43);
            sequence7.AddChild(decoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node3);
            Noop noop4 = new Noop();

            noop4.SetClassNameString("Noop");
            noop4.SetId(458);
            decoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node3.AddChild(noop4);
            decoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node3.SetHasEvents(decoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node3.HasEvents() | noop4.HasEvents());
            sequence7.SetHasEvents(sequence7.HasEvents() | decoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node3.HasEvents());
            withPrecondition5.SetHasEvents(withPrecondition5.HasEvents() | sequence7.HasEvents());
            selectorLoop.SetHasEvents(selectorLoop.HasEvents() | withPrecondition5.HasEvents());
            WithPrecondition withPrecondition6 = new WithPrecondition();

            withPrecondition6.SetClassNameString("WithPrecondition");
            withPrecondition6.SetId(450);
            selectorLoop.AddChild(withPrecondition6);
            Condition_bt_WrapperAI_Monster_BTMonsterBaozou_node454 condition_bt_WrapperAI_Monster_BTMonsterBaozou_node8 = new Condition_bt_WrapperAI_Monster_BTMonsterBaozou_node454();

            condition_bt_WrapperAI_Monster_BTMonsterBaozou_node8.SetClassNameString("Condition");
            condition_bt_WrapperAI_Monster_BTMonsterBaozou_node8.SetId(454);
            withPrecondition6.AddChild(condition_bt_WrapperAI_Monster_BTMonsterBaozou_node8);
            withPrecondition6.SetHasEvents(withPrecondition6.HasEvents() | condition_bt_WrapperAI_Monster_BTMonsterBaozou_node8.HasEvents());
            Sequence sequence8 = new Sequence();

            sequence8.SetClassNameString("Sequence");
            sequence8.SetId(455);
            withPrecondition6.AddChild(sequence8);
            Action_bt_WrapperAI_Monster_BTMonsterBaozou_node456 action_bt_WrapperAI_Monster_BTMonsterBaozou_node15 = new Action_bt_WrapperAI_Monster_BTMonsterBaozou_node456();

            action_bt_WrapperAI_Monster_BTMonsterBaozou_node15.SetClassNameString("Action");
            action_bt_WrapperAI_Monster_BTMonsterBaozou_node15.SetId(456);
            sequence8.AddChild(action_bt_WrapperAI_Monster_BTMonsterBaozou_node15);
            sequence8.SetHasEvents(sequence8.HasEvents() | action_bt_WrapperAI_Monster_BTMonsterBaozou_node15.HasEvents());
            DecoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node457 decoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node4 = new DecoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node457();

            decoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node4.SetClassNameString("DecoratorLoop");
            decoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node4.SetId(457);
            sequence8.AddChild(decoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node4);
            Noop noop5 = new Noop();

            noop5.SetClassNameString("Noop");
            noop5.SetId(2);
            decoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node4.AddChild(noop5);
            decoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node4.SetHasEvents(decoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node4.HasEvents() | noop5.HasEvents());
            sequence8.SetHasEvents(sequence8.HasEvents() | decoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node4.HasEvents());
            withPrecondition6.SetHasEvents(withPrecondition6.HasEvents() | sequence8.HasEvents());
            selectorLoop.SetHasEvents(selectorLoop.HasEvents() | withPrecondition6.HasEvents());
            decoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node.SetHasEvents(decoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node.HasEvents() | selectorLoop.HasEvents());
            sequence.SetHasEvents(sequence.HasEvents() | decoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node.HasEvents());
            bt.SetHasEvents(bt.HasEvents() | sequence.HasEvents());
            return(true);
        }
        public static bool build_behavior_tree(BehaviorTree bt)
        {
            bt.SetClassNameString("BehaviorTree");
            bt.SetId(-1);
            bt.SetName("WrapperAI/Organ/OrganTurret");
            bt.AddPar("Assets.Scripts.GameLogic.SkillSlotType", "p_curSlotType", "SLOT_SKILL_0", string.Empty);
            bt.AddPar("uint", "p_targetID", "0", string.Empty);
            bt.AddPar("int", "p_srchRange", "0", string.Empty);
            bt.AddPar("UnityEngine.Vector3", "p_AttackMoveDest", "{kEpsilon=0;x=0;y=0;z=0;}", string.Empty);
            bt.AddPar("bool", "p_IsAttackMove_Attack", "false", string.Empty);
            bt.AddPar("bool", "p_AttackIsFinished", "true", string.Empty);
            bt.AddPar("uint", "p_CmdID", "0", string.Empty);
            bt.AddPar("UnityEngine.Vector3", "p_attackPathCurTargetPos", "{kEpsilon=0;x=0;y=0;z=0;}", string.Empty);
            DecoratorLoop_bt_WrapperAI_Organ_OrganTurret_node14 decoratorLoop_bt_WrapperAI_Organ_OrganTurret_node = new DecoratorLoop_bt_WrapperAI_Organ_OrganTurret_node14();

            decoratorLoop_bt_WrapperAI_Organ_OrganTurret_node.SetClassNameString("DecoratorLoop");
            decoratorLoop_bt_WrapperAI_Organ_OrganTurret_node.SetId(14);
            bt.AddChild(decoratorLoop_bt_WrapperAI_Organ_OrganTurret_node);
            SelectorLoop selectorLoop = new SelectorLoop();

            selectorLoop.SetClassNameString("SelectorLoop");
            selectorLoop.SetId(1);
            decoratorLoop_bt_WrapperAI_Organ_OrganTurret_node.AddChild(selectorLoop);
            WithPrecondition withPrecondition = new WithPrecondition();

            withPrecondition.SetClassNameString("WithPrecondition");
            withPrecondition.SetId(11);
            selectorLoop.AddChild(withPrecondition);
            Or or = new Or();

            or.SetClassNameString("Or");
            or.SetId(0);
            withPrecondition.AddChild(or);
            Condition_bt_WrapperAI_Organ_OrganTurret_node12 condition_bt_WrapperAI_Organ_OrganTurret_node = new Condition_bt_WrapperAI_Organ_OrganTurret_node12();

            condition_bt_WrapperAI_Organ_OrganTurret_node.SetClassNameString("Condition");
            condition_bt_WrapperAI_Organ_OrganTurret_node.SetId(12);
            or.AddChild(condition_bt_WrapperAI_Organ_OrganTurret_node);
            or.SetHasEvents(or.HasEvents() | condition_bt_WrapperAI_Organ_OrganTurret_node.HasEvents());
            Condition_bt_WrapperAI_Organ_OrganTurret_node26 condition_bt_WrapperAI_Organ_OrganTurret_node2 = new Condition_bt_WrapperAI_Organ_OrganTurret_node26();

            condition_bt_WrapperAI_Organ_OrganTurret_node2.SetClassNameString("Condition");
            condition_bt_WrapperAI_Organ_OrganTurret_node2.SetId(26);
            or.AddChild(condition_bt_WrapperAI_Organ_OrganTurret_node2);
            or.SetHasEvents(or.HasEvents() | condition_bt_WrapperAI_Organ_OrganTurret_node2.HasEvents());
            Condition_bt_WrapperAI_Organ_OrganTurret_node27 condition_bt_WrapperAI_Organ_OrganTurret_node3 = new Condition_bt_WrapperAI_Organ_OrganTurret_node27();

            condition_bt_WrapperAI_Organ_OrganTurret_node3.SetClassNameString("Condition");
            condition_bt_WrapperAI_Organ_OrganTurret_node3.SetId(27);
            or.AddChild(condition_bt_WrapperAI_Organ_OrganTurret_node3);
            or.SetHasEvents(or.HasEvents() | condition_bt_WrapperAI_Organ_OrganTurret_node3.HasEvents());
            withPrecondition.SetHasEvents(withPrecondition.HasEvents() | or.HasEvents());
            Sequence sequence = new Sequence();

            sequence.SetClassNameString("Sequence");
            sequence.SetId(86);
            withPrecondition.AddChild(sequence);
            Action_bt_WrapperAI_Organ_OrganTurret_node140 action_bt_WrapperAI_Organ_OrganTurret_node = new Action_bt_WrapperAI_Organ_OrganTurret_node140();

            action_bt_WrapperAI_Organ_OrganTurret_node.SetClassNameString("Action");
            action_bt_WrapperAI_Organ_OrganTurret_node.SetId(140);
            sequence.AddChild(action_bt_WrapperAI_Organ_OrganTurret_node);
            sequence.SetHasEvents(sequence.HasEvents() | action_bt_WrapperAI_Organ_OrganTurret_node.HasEvents());
            Action_bt_WrapperAI_Organ_OrganTurret_node88 action_bt_WrapperAI_Organ_OrganTurret_node2 = new Action_bt_WrapperAI_Organ_OrganTurret_node88();

            action_bt_WrapperAI_Organ_OrganTurret_node2.SetClassNameString("Action");
            action_bt_WrapperAI_Organ_OrganTurret_node2.SetId(88);
            sequence.AddChild(action_bt_WrapperAI_Organ_OrganTurret_node2);
            sequence.SetHasEvents(sequence.HasEvents() | action_bt_WrapperAI_Organ_OrganTurret_node2.HasEvents());
            Action_bt_WrapperAI_Organ_OrganTurret_node91 action_bt_WrapperAI_Organ_OrganTurret_node3 = new Action_bt_WrapperAI_Organ_OrganTurret_node91();

            action_bt_WrapperAI_Organ_OrganTurret_node3.SetClassNameString("Action");
            action_bt_WrapperAI_Organ_OrganTurret_node3.SetId(91);
            sequence.AddChild(action_bt_WrapperAI_Organ_OrganTurret_node3);
            sequence.SetHasEvents(sequence.HasEvents() | action_bt_WrapperAI_Organ_OrganTurret_node3.HasEvents());
            DecoratorLoopUntil_bt_WrapperAI_Organ_OrganTurret_node92 decoratorLoopUntil_bt_WrapperAI_Organ_OrganTurret_node = new DecoratorLoopUntil_bt_WrapperAI_Organ_OrganTurret_node92();

            decoratorLoopUntil_bt_WrapperAI_Organ_OrganTurret_node.SetClassNameString("DecoratorLoopUntil");
            decoratorLoopUntil_bt_WrapperAI_Organ_OrganTurret_node.SetId(92);
            sequence.AddChild(decoratorLoopUntil_bt_WrapperAI_Organ_OrganTurret_node);
            Condition_bt_WrapperAI_Organ_OrganTurret_node93 condition_bt_WrapperAI_Organ_OrganTurret_node4 = new Condition_bt_WrapperAI_Organ_OrganTurret_node93();

            condition_bt_WrapperAI_Organ_OrganTurret_node4.SetClassNameString("Condition");
            condition_bt_WrapperAI_Organ_OrganTurret_node4.SetId(93);
            decoratorLoopUntil_bt_WrapperAI_Organ_OrganTurret_node.AddChild(condition_bt_WrapperAI_Organ_OrganTurret_node4);
            decoratorLoopUntil_bt_WrapperAI_Organ_OrganTurret_node.SetHasEvents(decoratorLoopUntil_bt_WrapperAI_Organ_OrganTurret_node.HasEvents() | condition_bt_WrapperAI_Organ_OrganTurret_node4.HasEvents());
            sequence.SetHasEvents(sequence.HasEvents() | decoratorLoopUntil_bt_WrapperAI_Organ_OrganTurret_node.HasEvents());
            withPrecondition.SetHasEvents(withPrecondition.HasEvents() | sequence.HasEvents());
            selectorLoop.SetHasEvents(selectorLoop.HasEvents() | withPrecondition.HasEvents());
            WithPrecondition withPrecondition2 = new WithPrecondition();

            withPrecondition2.SetClassNameString("WithPrecondition");
            withPrecondition2.SetId(5);
            selectorLoop.AddChild(withPrecondition2);
            Condition_bt_WrapperAI_Organ_OrganTurret_node9 condition_bt_WrapperAI_Organ_OrganTurret_node5 = new Condition_bt_WrapperAI_Organ_OrganTurret_node9();

            condition_bt_WrapperAI_Organ_OrganTurret_node5.SetClassNameString("Condition");
            condition_bt_WrapperAI_Organ_OrganTurret_node5.SetId(9);
            withPrecondition2.AddChild(condition_bt_WrapperAI_Organ_OrganTurret_node5);
            withPrecondition2.SetHasEvents(withPrecondition2.HasEvents() | condition_bt_WrapperAI_Organ_OrganTurret_node5.HasEvents());
            Sequence sequence2 = new Sequence();

            sequence2.SetClassNameString("Sequence");
            sequence2.SetId(59);
            withPrecondition2.AddChild(sequence2);
            Selector selector = new Selector();

            selector.SetClassNameString("Selector");
            selector.SetId(487);
            sequence2.AddChild(selector);
            Action_bt_WrapperAI_Organ_OrganTurret_node488 action_bt_WrapperAI_Organ_OrganTurret_node4 = new Action_bt_WrapperAI_Organ_OrganTurret_node488();

            action_bt_WrapperAI_Organ_OrganTurret_node4.SetClassNameString("Action");
            action_bt_WrapperAI_Organ_OrganTurret_node4.SetId(488);
            selector.AddChild(action_bt_WrapperAI_Organ_OrganTurret_node4);
            selector.SetHasEvents(selector.HasEvents() | action_bt_WrapperAI_Organ_OrganTurret_node4.HasEvents());
            Action_bt_WrapperAI_Organ_OrganTurret_node10 action_bt_WrapperAI_Organ_OrganTurret_node5 = new Action_bt_WrapperAI_Organ_OrganTurret_node10();

            action_bt_WrapperAI_Organ_OrganTurret_node5.SetClassNameString("Action");
            action_bt_WrapperAI_Organ_OrganTurret_node5.SetId(10);
            selector.AddChild(action_bt_WrapperAI_Organ_OrganTurret_node5);
            selector.SetHasEvents(selector.HasEvents() | action_bt_WrapperAI_Organ_OrganTurret_node5.HasEvents());
            sequence2.SetHasEvents(sequence2.HasEvents() | selector.HasEvents());
            DecoratorLoop_bt_WrapperAI_Organ_OrganTurret_node65 decoratorLoop_bt_WrapperAI_Organ_OrganTurret_node2 = new DecoratorLoop_bt_WrapperAI_Organ_OrganTurret_node65();

            decoratorLoop_bt_WrapperAI_Organ_OrganTurret_node2.SetClassNameString("DecoratorLoop");
            decoratorLoop_bt_WrapperAI_Organ_OrganTurret_node2.SetId(65);
            sequence2.AddChild(decoratorLoop_bt_WrapperAI_Organ_OrganTurret_node2);
            Noop noop = new Noop();

            noop.SetClassNameString("Noop");
            noop.SetId(66);
            decoratorLoop_bt_WrapperAI_Organ_OrganTurret_node2.AddChild(noop);
            decoratorLoop_bt_WrapperAI_Organ_OrganTurret_node2.SetHasEvents(decoratorLoop_bt_WrapperAI_Organ_OrganTurret_node2.HasEvents() | noop.HasEvents());
            sequence2.SetHasEvents(sequence2.HasEvents() | decoratorLoop_bt_WrapperAI_Organ_OrganTurret_node2.HasEvents());
            withPrecondition2.SetHasEvents(withPrecondition2.HasEvents() | sequence2.HasEvents());
            selectorLoop.SetHasEvents(selectorLoop.HasEvents() | withPrecondition2.HasEvents());
            decoratorLoop_bt_WrapperAI_Organ_OrganTurret_node.SetHasEvents(decoratorLoop_bt_WrapperAI_Organ_OrganTurret_node.HasEvents() | selectorLoop.HasEvents());
            bt.SetHasEvents(bt.HasEvents() | decoratorLoop_bt_WrapperAI_Organ_OrganTurret_node.HasEvents());
            return(true);
        }
예제 #15
0
 public static bool build_behavior_tree(BehaviorTree bt)
 {
     bt.SetClassNameString("BehaviorTree");
     bt.SetId(-1);
     bt.SetName("Tank_WalkUtilCollision");
     #if !BEHAVIAC_RELEASE
     bt.SetAgentType("Player");
     #endif
     // pars
     bt.AddPar("UnityEngine.Vector3", "parT_moveTarget", "{kEpsilon=0;x=0;y=0;z=0;}", "");
     bt.AddPar("Player", "parIn_Self", "null", "");
     bt.AddPar("float", "parT_RotateAngle", "0", "");
     // children
     {
         DecoratorLoop_bt_Tank_WalkUtilCollision_node0 node0 = new DecoratorLoop_bt_Tank_WalkUtilCollision_node0();
         node0.SetClassNameString("DecoratorLoop");
         node0.SetId(0);
     #if !BEHAVIAC_RELEASE
         node0.SetAgentType("Player");
     #endif
         bt.AddChild(node0);
         {
             Selector node4 = new Selector();
             node4.SetClassNameString("Selector");
             node4.SetId(4);
     #if !BEHAVIAC_RELEASE
             node4.SetAgentType("Player");
     #endif
             node0.AddChild(node4);
             {
                 Action_bt_Tank_WalkUtilCollision_node1 node1 = new Action_bt_Tank_WalkUtilCollision_node1();
                 node1.SetClassNameString("Action");
                 node1.SetId(1);
     #if !BEHAVIAC_RELEASE
                 node1.SetAgentType("Player");
     #endif
                 node4.AddChild(node1);
                 node4.SetHasEvents(node4.HasEvents() | node1.HasEvents());
             }
             {
                 Sequence node9 = new Sequence();
                 node9.SetClassNameString("Sequence");
                 node9.SetId(9);
     #if !BEHAVIAC_RELEASE
                 node9.SetAgentType("Player");
     #endif
                 node4.AddChild(node9);
                 {
                     Assignment_bt_Tank_WalkUtilCollision_node6 node6 = new Assignment_bt_Tank_WalkUtilCollision_node6();
                     node6.SetClassNameString("Assignment");
                     node6.SetId(6);
     #if !BEHAVIAC_RELEASE
                     node6.SetAgentType("Player");
     #endif
                     node9.AddChild(node6);
                     node9.SetHasEvents(node9.HasEvents() | node6.HasEvents());
                 }
                 {
                     Sequence node2 = new Sequence();
                     node2.SetClassNameString("Sequence");
                     node2.SetId(2);
     #if !BEHAVIAC_RELEASE
                     node2.SetAgentType("Player");
     #endif
                     node9.AddChild(node2);
                     {
                         Condition_bt_Tank_WalkUtilCollision_node7 node7 = new Condition_bt_Tank_WalkUtilCollision_node7();
                         node7.SetClassNameString("Condition");
                         node7.SetId(7);
     #if !BEHAVIAC_RELEASE
                         node7.SetAgentType("Player");
     #endif
                         node2.AddChild(node7);
                         node2.SetHasEvents(node2.HasEvents() | node7.HasEvents());
                     }
                     {
                         Action_bt_Tank_WalkUtilCollision_node22 node22 = new Action_bt_Tank_WalkUtilCollision_node22();
                         node22.SetClassNameString("Action");
                         node22.SetId(22);
     #if !BEHAVIAC_RELEASE
                         node22.SetAgentType("Player");
     #endif
                         node2.AddChild(node22);
                         node2.SetHasEvents(node2.HasEvents() | node22.HasEvents());
                     }
                     node9.SetHasEvents(node9.HasEvents() | node2.HasEvents());
                 }
                 node4.SetHasEvents(node4.HasEvents() | node9.HasEvents());
             }
             node0.SetHasEvents(node0.HasEvents() | node4.HasEvents());
         }
         bt.SetHasEvents(bt.HasEvents() | node0.HasEvents());
     }
     return true;
 }
        public static bool build_behavior_tree(BehaviorTree bt)
        {
            bt.SetClassNameString("BehaviorTree");
            bt.SetId(-1);
            bt.SetName("WrapperAI/TowerExampleInput");
            bt.AddPar("Assets.Scripts.GameLogic.SkillSlotType", "p_curSlotType", "SLOT_SKILL_0", string.Empty);
            bt.AddPar("uint", "p_targetID", "0", string.Empty);
            bt.AddPar("int", "p_srchRange", "0", string.Empty);
            bt.AddPar("UnityEngine.Vector3", "p_AttackMoveDest", "{kEpsilon=0;x=0;y=0;z=0;}", string.Empty);
            bt.AddPar("bool", "p_IsAttackMove_Attack", "false", string.Empty);
            bt.AddPar("bool", "p_AttackIsFinished", "true", string.Empty);
            bt.AddPar("uint", "p_CmdID", "0", string.Empty);
            bt.AddPar("UnityEngine.Vector3", "p_attackPathCurTargetPos", "{kEpsilon=0;x=0;y=0;z=0;}", string.Empty);
            bt.AddPar("int", "p_organType", "0", string.Empty);
            bt.AddPar("int", "p_bornWaitFrame", "0", string.Empty);
            Sequence sequence = new Sequence();

            sequence.SetClassNameString("Sequence");
            sequence.SetId(0);
            bt.AddChild(sequence);
            Assignment_bt_WrapperAI_TowerExampleInput_node82 assignment_bt_WrapperAI_TowerExampleInput_node = new Assignment_bt_WrapperAI_TowerExampleInput_node82();

            assignment_bt_WrapperAI_TowerExampleInput_node.SetClassNameString("Assignment");
            assignment_bt_WrapperAI_TowerExampleInput_node.SetId(82);
            sequence.AddChild(assignment_bt_WrapperAI_TowerExampleInput_node);
            sequence.SetHasEvents(sequence.HasEvents() | assignment_bt_WrapperAI_TowerExampleInput_node.HasEvents());
            Assignment_bt_WrapperAI_TowerExampleInput_node33 assignment_bt_WrapperAI_TowerExampleInput_node2 = new Assignment_bt_WrapperAI_TowerExampleInput_node33();

            assignment_bt_WrapperAI_TowerExampleInput_node2.SetClassNameString("Assignment");
            assignment_bt_WrapperAI_TowerExampleInput_node2.SetId(33);
            sequence.AddChild(assignment_bt_WrapperAI_TowerExampleInput_node2);
            sequence.SetHasEvents(sequence.HasEvents() | assignment_bt_WrapperAI_TowerExampleInput_node2.HasEvents());
            Selector selector = new Selector();

            selector.SetClassNameString("Selector");
            selector.SetId(48);
            sequence.AddChild(selector);
            Sequence sequence2 = new Sequence();

            sequence2.SetClassNameString("Sequence");
            sequence2.SetId(49);
            selector.AddChild(sequence2);
            Condition_bt_WrapperAI_TowerExampleInput_node36 condition_bt_WrapperAI_TowerExampleInput_node = new Condition_bt_WrapperAI_TowerExampleInput_node36();

            condition_bt_WrapperAI_TowerExampleInput_node.SetClassNameString("Condition");
            condition_bt_WrapperAI_TowerExampleInput_node.SetId(36);
            sequence2.AddChild(condition_bt_WrapperAI_TowerExampleInput_node);
            sequence2.SetHasEvents(sequence2.HasEvents() | condition_bt_WrapperAI_TowerExampleInput_node.HasEvents());
            Assignment_bt_WrapperAI_TowerExampleInput_node34 assignment_bt_WrapperAI_TowerExampleInput_node3 = new Assignment_bt_WrapperAI_TowerExampleInput_node34();

            assignment_bt_WrapperAI_TowerExampleInput_node3.SetClassNameString("Assignment");
            assignment_bt_WrapperAI_TowerExampleInput_node3.SetId(34);
            sequence2.AddChild(assignment_bt_WrapperAI_TowerExampleInput_node3);
            sequence2.SetHasEvents(sequence2.HasEvents() | assignment_bt_WrapperAI_TowerExampleInput_node3.HasEvents());
            selector.SetHasEvents(selector.HasEvents() | sequence2.HasEvents());
            Sequence sequence3 = new Sequence();

            sequence3.SetClassNameString("Sequence");
            sequence3.SetId(50);
            selector.AddChild(sequence3);
            Condition_bt_WrapperAI_TowerExampleInput_node39 condition_bt_WrapperAI_TowerExampleInput_node2 = new Condition_bt_WrapperAI_TowerExampleInput_node39();

            condition_bt_WrapperAI_TowerExampleInput_node2.SetClassNameString("Condition");
            condition_bt_WrapperAI_TowerExampleInput_node2.SetId(39);
            sequence3.AddChild(condition_bt_WrapperAI_TowerExampleInput_node2);
            sequence3.SetHasEvents(sequence3.HasEvents() | condition_bt_WrapperAI_TowerExampleInput_node2.HasEvents());
            Assignment_bt_WrapperAI_TowerExampleInput_node37 assignment_bt_WrapperAI_TowerExampleInput_node4 = new Assignment_bt_WrapperAI_TowerExampleInput_node37();

            assignment_bt_WrapperAI_TowerExampleInput_node4.SetClassNameString("Assignment");
            assignment_bt_WrapperAI_TowerExampleInput_node4.SetId(37);
            sequence3.AddChild(assignment_bt_WrapperAI_TowerExampleInput_node4);
            sequence3.SetHasEvents(sequence3.HasEvents() | assignment_bt_WrapperAI_TowerExampleInput_node4.HasEvents());
            selector.SetHasEvents(selector.HasEvents() | sequence3.HasEvents());
            Sequence sequence4 = new Sequence();

            sequence4.SetClassNameString("Sequence");
            sequence4.SetId(51);
            selector.AddChild(sequence4);
            Condition_bt_WrapperAI_TowerExampleInput_node42 condition_bt_WrapperAI_TowerExampleInput_node3 = new Condition_bt_WrapperAI_TowerExampleInput_node42();

            condition_bt_WrapperAI_TowerExampleInput_node3.SetClassNameString("Condition");
            condition_bt_WrapperAI_TowerExampleInput_node3.SetId(42);
            sequence4.AddChild(condition_bt_WrapperAI_TowerExampleInput_node3);
            sequence4.SetHasEvents(sequence4.HasEvents() | condition_bt_WrapperAI_TowerExampleInput_node3.HasEvents());
            Assignment_bt_WrapperAI_TowerExampleInput_node40 assignment_bt_WrapperAI_TowerExampleInput_node5 = new Assignment_bt_WrapperAI_TowerExampleInput_node40();

            assignment_bt_WrapperAI_TowerExampleInput_node5.SetClassNameString("Assignment");
            assignment_bt_WrapperAI_TowerExampleInput_node5.SetId(40);
            sequence4.AddChild(assignment_bt_WrapperAI_TowerExampleInput_node5);
            sequence4.SetHasEvents(sequence4.HasEvents() | assignment_bt_WrapperAI_TowerExampleInput_node5.HasEvents());
            selector.SetHasEvents(selector.HasEvents() | sequence4.HasEvents());
            Sequence sequence5 = new Sequence();

            sequence5.SetClassNameString("Sequence");
            sequence5.SetId(52);
            selector.AddChild(sequence5);
            Condition_bt_WrapperAI_TowerExampleInput_node45 condition_bt_WrapperAI_TowerExampleInput_node4 = new Condition_bt_WrapperAI_TowerExampleInput_node45();

            condition_bt_WrapperAI_TowerExampleInput_node4.SetClassNameString("Condition");
            condition_bt_WrapperAI_TowerExampleInput_node4.SetId(45);
            sequence5.AddChild(condition_bt_WrapperAI_TowerExampleInput_node4);
            sequence5.SetHasEvents(sequence5.HasEvents() | condition_bt_WrapperAI_TowerExampleInput_node4.HasEvents());
            Assignment_bt_WrapperAI_TowerExampleInput_node43 assignment_bt_WrapperAI_TowerExampleInput_node6 = new Assignment_bt_WrapperAI_TowerExampleInput_node43();

            assignment_bt_WrapperAI_TowerExampleInput_node6.SetClassNameString("Assignment");
            assignment_bt_WrapperAI_TowerExampleInput_node6.SetId(43);
            sequence5.AddChild(assignment_bt_WrapperAI_TowerExampleInput_node6);
            sequence5.SetHasEvents(sequence5.HasEvents() | assignment_bt_WrapperAI_TowerExampleInput_node6.HasEvents());
            selector.SetHasEvents(selector.HasEvents() | sequence5.HasEvents());
            sequence.SetHasEvents(sequence.HasEvents() | selector.HasEvents());
            Assignment_bt_WrapperAI_TowerExampleInput_node47 assignment_bt_WrapperAI_TowerExampleInput_node7 = new Assignment_bt_WrapperAI_TowerExampleInput_node47();

            assignment_bt_WrapperAI_TowerExampleInput_node7.SetClassNameString("Assignment");
            assignment_bt_WrapperAI_TowerExampleInput_node7.SetId(47);
            sequence.AddChild(assignment_bt_WrapperAI_TowerExampleInput_node7);
            sequence.SetHasEvents(sequence.HasEvents() | assignment_bt_WrapperAI_TowerExampleInput_node7.HasEvents());
            WaitFrames_bt_WrapperAI_TowerExampleInput_node46 waitFrames_bt_WrapperAI_TowerExampleInput_node = new WaitFrames_bt_WrapperAI_TowerExampleInput_node46();

            waitFrames_bt_WrapperAI_TowerExampleInput_node.SetClassNameString("WaitFrames");
            waitFrames_bt_WrapperAI_TowerExampleInput_node.SetId(46);
            sequence.AddChild(waitFrames_bt_WrapperAI_TowerExampleInput_node);
            sequence.SetHasEvents(sequence.HasEvents() | waitFrames_bt_WrapperAI_TowerExampleInput_node.HasEvents());
            Selector selector2 = new Selector();

            selector2.SetClassNameString("Selector");
            selector2.SetId(14);
            sequence.AddChild(selector2);
            Action_bt_WrapperAI_TowerExampleInput_node29 action_bt_WrapperAI_TowerExampleInput_node = new Action_bt_WrapperAI_TowerExampleInput_node29();

            action_bt_WrapperAI_TowerExampleInput_node.SetClassNameString("Action");
            action_bt_WrapperAI_TowerExampleInput_node.SetId(29);
            selector2.AddChild(action_bt_WrapperAI_TowerExampleInput_node);
            selector2.SetHasEvents(selector2.HasEvents() | action_bt_WrapperAI_TowerExampleInput_node.HasEvents());
            True @true = new True();

            @true.SetClassNameString("True");
            @true.SetId(30);
            selector2.AddChild(@true);
            selector2.SetHasEvents(selector2.HasEvents() | @true.HasEvents());
            sequence.SetHasEvents(sequence.HasEvents() | selector2.HasEvents());
            DecoratorLoop_bt_WrapperAI_TowerExampleInput_node28 decoratorLoop_bt_WrapperAI_TowerExampleInput_node = new DecoratorLoop_bt_WrapperAI_TowerExampleInput_node28();

            decoratorLoop_bt_WrapperAI_TowerExampleInput_node.SetClassNameString("DecoratorLoop");
            decoratorLoop_bt_WrapperAI_TowerExampleInput_node.SetId(28);
            sequence.AddChild(decoratorLoop_bt_WrapperAI_TowerExampleInput_node);
            SelectorLoop selectorLoop = new SelectorLoop();

            selectorLoop.SetClassNameString("SelectorLoop");
            selectorLoop.SetId(1);
            decoratorLoop_bt_WrapperAI_TowerExampleInput_node.AddChild(selectorLoop);
            WithPrecondition withPrecondition = new WithPrecondition();

            withPrecondition.SetClassNameString("WithPrecondition");
            withPrecondition.SetId(11);
            selectorLoop.AddChild(withPrecondition);
            Condition_bt_WrapperAI_TowerExampleInput_node12 condition_bt_WrapperAI_TowerExampleInput_node5 = new Condition_bt_WrapperAI_TowerExampleInput_node12();

            condition_bt_WrapperAI_TowerExampleInput_node5.SetClassNameString("Condition");
            condition_bt_WrapperAI_TowerExampleInput_node5.SetId(12);
            withPrecondition.AddChild(condition_bt_WrapperAI_TowerExampleInput_node5);
            withPrecondition.SetHasEvents(withPrecondition.HasEvents() | condition_bt_WrapperAI_TowerExampleInput_node5.HasEvents());
            Sequence sequence6 = new Sequence();

            sequence6.SetClassNameString("Sequence");
            sequence6.SetId(13);
            withPrecondition.AddChild(sequence6);
            IfElse ifElse = new IfElse();

            ifElse.SetClassNameString("IfElse");
            ifElse.SetId(9);
            sequence6.AddChild(ifElse);
            Sequence sequence7 = new Sequence();

            sequence7.SetClassNameString("Sequence");
            sequence7.SetId(26);
            ifElse.AddChild(sequence7);
            Condition_bt_WrapperAI_TowerExampleInput_node15 condition_bt_WrapperAI_TowerExampleInput_node6 = new Condition_bt_WrapperAI_TowerExampleInput_node15();

            condition_bt_WrapperAI_TowerExampleInput_node6.SetClassNameString("Condition");
            condition_bt_WrapperAI_TowerExampleInput_node6.SetId(15);
            sequence7.AddChild(condition_bt_WrapperAI_TowerExampleInput_node6);
            sequence7.SetHasEvents(sequence7.HasEvents() | condition_bt_WrapperAI_TowerExampleInput_node6.HasEvents());
            Condition_bt_WrapperAI_TowerExampleInput_node27 condition_bt_WrapperAI_TowerExampleInput_node7 = new Condition_bt_WrapperAI_TowerExampleInput_node27();

            condition_bt_WrapperAI_TowerExampleInput_node7.SetClassNameString("Condition");
            condition_bt_WrapperAI_TowerExampleInput_node7.SetId(27);
            sequence7.AddChild(condition_bt_WrapperAI_TowerExampleInput_node7);
            sequence7.SetHasEvents(sequence7.HasEvents() | condition_bt_WrapperAI_TowerExampleInput_node7.HasEvents());
            ifElse.SetHasEvents(ifElse.HasEvents() | sequence7.HasEvents());
            Sequence sequence8 = new Sequence();

            sequence8.SetClassNameString("Sequence");
            sequence8.SetId(17);
            ifElse.AddChild(sequence8);
            Action_bt_WrapperAI_TowerExampleInput_node16 action_bt_WrapperAI_TowerExampleInput_node2 = new Action_bt_WrapperAI_TowerExampleInput_node16();

            action_bt_WrapperAI_TowerExampleInput_node2.SetClassNameString("Action");
            action_bt_WrapperAI_TowerExampleInput_node2.SetId(16);
            sequence8.AddChild(action_bt_WrapperAI_TowerExampleInput_node2);
            sequence8.SetHasEvents(sequence8.HasEvents() | action_bt_WrapperAI_TowerExampleInput_node2.HasEvents());
            Assignment_bt_WrapperAI_TowerExampleInput_node18 assignment_bt_WrapperAI_TowerExampleInput_node8 = new Assignment_bt_WrapperAI_TowerExampleInput_node18();

            assignment_bt_WrapperAI_TowerExampleInput_node8.SetClassNameString("Assignment");
            assignment_bt_WrapperAI_TowerExampleInput_node8.SetId(18);
            sequence8.AddChild(assignment_bt_WrapperAI_TowerExampleInput_node8);
            sequence8.SetHasEvents(sequence8.HasEvents() | assignment_bt_WrapperAI_TowerExampleInput_node8.HasEvents());
            ifElse.SetHasEvents(ifElse.HasEvents() | sequence8.HasEvents());
            Noop noop = new Noop();

            noop.SetClassNameString("Noop");
            noop.SetId(19);
            ifElse.AddChild(noop);
            ifElse.SetHasEvents(ifElse.HasEvents() | noop.HasEvents());
            sequence6.SetHasEvents(sequence6.HasEvents() | ifElse.HasEvents());
            Sequence sequence9 = new Sequence();

            sequence9.SetClassNameString("Sequence");
            sequence9.SetId(81);
            sequence6.AddChild(sequence9);
            IfElse ifElse2 = new IfElse();

            ifElse2.SetClassNameString("IfElse");
            ifElse2.SetId(10);
            sequence9.AddChild(ifElse2);
            And and = new And();

            and.SetClassNameString("And");
            and.SetId(21);
            ifElse2.AddChild(and);
            Condition_bt_WrapperAI_TowerExampleInput_node20 condition_bt_WrapperAI_TowerExampleInput_node8 = new Condition_bt_WrapperAI_TowerExampleInput_node20();

            condition_bt_WrapperAI_TowerExampleInput_node8.SetClassNameString("Condition");
            condition_bt_WrapperAI_TowerExampleInput_node8.SetId(20);
            and.AddChild(condition_bt_WrapperAI_TowerExampleInput_node8);
            and.SetHasEvents(and.HasEvents() | condition_bt_WrapperAI_TowerExampleInput_node8.HasEvents());
            Condition_bt_WrapperAI_TowerExampleInput_node22 condition_bt_WrapperAI_TowerExampleInput_node9 = new Condition_bt_WrapperAI_TowerExampleInput_node22();

            condition_bt_WrapperAI_TowerExampleInput_node9.SetClassNameString("Condition");
            condition_bt_WrapperAI_TowerExampleInput_node9.SetId(22);
            and.AddChild(condition_bt_WrapperAI_TowerExampleInput_node9);
            and.SetHasEvents(and.HasEvents() | condition_bt_WrapperAI_TowerExampleInput_node9.HasEvents());
            ifElse2.SetHasEvents(ifElse2.HasEvents() | and.HasEvents());
            Noop noop2 = new Noop();

            noop2.SetClassNameString("Noop");
            noop2.SetId(23);
            ifElse2.AddChild(noop2);
            ifElse2.SetHasEvents(ifElse2.HasEvents() | noop2.HasEvents());
            Sequence sequence10 = new Sequence();

            sequence10.SetClassNameString("Sequence");
            sequence10.SetId(24);
            ifElse2.AddChild(sequence10);
            Action_bt_WrapperAI_TowerExampleInput_node25 action_bt_WrapperAI_TowerExampleInput_node3 = new Action_bt_WrapperAI_TowerExampleInput_node25();

            action_bt_WrapperAI_TowerExampleInput_node3.SetClassNameString("Action");
            action_bt_WrapperAI_TowerExampleInput_node3.SetId(25);
            sequence10.AddChild(action_bt_WrapperAI_TowerExampleInput_node3);
            sequence10.SetHasEvents(sequence10.HasEvents() | action_bt_WrapperAI_TowerExampleInput_node3.HasEvents());
            Assignment_bt_WrapperAI_TowerExampleInput_node83 assignment_bt_WrapperAI_TowerExampleInput_node9 = new Assignment_bt_WrapperAI_TowerExampleInput_node83();

            assignment_bt_WrapperAI_TowerExampleInput_node9.SetClassNameString("Assignment");
            assignment_bt_WrapperAI_TowerExampleInput_node9.SetId(83);
            sequence10.AddChild(assignment_bt_WrapperAI_TowerExampleInput_node9);
            sequence10.SetHasEvents(sequence10.HasEvents() | assignment_bt_WrapperAI_TowerExampleInput_node9.HasEvents());
            ifElse2.SetHasEvents(ifElse2.HasEvents() | sequence10.HasEvents());
            sequence9.SetHasEvents(sequence9.HasEvents() | ifElse2.HasEvents());
            IfElse ifElse3 = new IfElse();

            ifElse3.SetClassNameString("IfElse");
            ifElse3.SetId(84);
            sequence9.AddChild(ifElse3);
            Condition_bt_WrapperAI_TowerExampleInput_node85 condition_bt_WrapperAI_TowerExampleInput_node10 = new Condition_bt_WrapperAI_TowerExampleInput_node85();

            condition_bt_WrapperAI_TowerExampleInput_node10.SetClassNameString("Condition");
            condition_bt_WrapperAI_TowerExampleInput_node10.SetId(85);
            ifElse3.AddChild(condition_bt_WrapperAI_TowerExampleInput_node10);
            ifElse3.SetHasEvents(ifElse3.HasEvents() | condition_bt_WrapperAI_TowerExampleInput_node10.HasEvents());
            Sequence sequence11 = new Sequence();

            sequence11.SetClassNameString("Sequence");
            sequence11.SetId(86);
            ifElse3.AddChild(sequence11);
            Action_bt_WrapperAI_TowerExampleInput_node140 action_bt_WrapperAI_TowerExampleInput_node4 = new Action_bt_WrapperAI_TowerExampleInput_node140();

            action_bt_WrapperAI_TowerExampleInput_node4.SetClassNameString("Action");
            action_bt_WrapperAI_TowerExampleInput_node4.SetId(140);
            sequence11.AddChild(action_bt_WrapperAI_TowerExampleInput_node4);
            sequence11.SetHasEvents(sequence11.HasEvents() | action_bt_WrapperAI_TowerExampleInput_node4.HasEvents());
            Action_bt_WrapperAI_TowerExampleInput_node87 action_bt_WrapperAI_TowerExampleInput_node5 = new Action_bt_WrapperAI_TowerExampleInput_node87();

            action_bt_WrapperAI_TowerExampleInput_node5.SetClassNameString("Action");
            action_bt_WrapperAI_TowerExampleInput_node5.SetId(87);
            sequence11.AddChild(action_bt_WrapperAI_TowerExampleInput_node5);
            sequence11.SetHasEvents(sequence11.HasEvents() | action_bt_WrapperAI_TowerExampleInput_node5.HasEvents());
            Action_bt_WrapperAI_TowerExampleInput_node88 action_bt_WrapperAI_TowerExampleInput_node6 = new Action_bt_WrapperAI_TowerExampleInput_node88();

            action_bt_WrapperAI_TowerExampleInput_node6.SetClassNameString("Action");
            action_bt_WrapperAI_TowerExampleInput_node6.SetId(88);
            sequence11.AddChild(action_bt_WrapperAI_TowerExampleInput_node6);
            sequence11.SetHasEvents(sequence11.HasEvents() | action_bt_WrapperAI_TowerExampleInput_node6.HasEvents());
            Action_bt_WrapperAI_TowerExampleInput_node91 action_bt_WrapperAI_TowerExampleInput_node7 = new Action_bt_WrapperAI_TowerExampleInput_node91();

            action_bt_WrapperAI_TowerExampleInput_node7.SetClassNameString("Action");
            action_bt_WrapperAI_TowerExampleInput_node7.SetId(91);
            sequence11.AddChild(action_bt_WrapperAI_TowerExampleInput_node7);
            sequence11.SetHasEvents(sequence11.HasEvents() | action_bt_WrapperAI_TowerExampleInput_node7.HasEvents());
            DecoratorLoopUntil_bt_WrapperAI_TowerExampleInput_node92 decoratorLoopUntil_bt_WrapperAI_TowerExampleInput_node = new DecoratorLoopUntil_bt_WrapperAI_TowerExampleInput_node92();

            decoratorLoopUntil_bt_WrapperAI_TowerExampleInput_node.SetClassNameString("DecoratorLoopUntil");
            decoratorLoopUntil_bt_WrapperAI_TowerExampleInput_node.SetId(92);
            sequence11.AddChild(decoratorLoopUntil_bt_WrapperAI_TowerExampleInput_node);
            Condition_bt_WrapperAI_TowerExampleInput_node93 condition_bt_WrapperAI_TowerExampleInput_node11 = new Condition_bt_WrapperAI_TowerExampleInput_node93();

            condition_bt_WrapperAI_TowerExampleInput_node11.SetClassNameString("Condition");
            condition_bt_WrapperAI_TowerExampleInput_node11.SetId(93);
            decoratorLoopUntil_bt_WrapperAI_TowerExampleInput_node.AddChild(condition_bt_WrapperAI_TowerExampleInput_node11);
            decoratorLoopUntil_bt_WrapperAI_TowerExampleInput_node.SetHasEvents(decoratorLoopUntil_bt_WrapperAI_TowerExampleInput_node.HasEvents() | condition_bt_WrapperAI_TowerExampleInput_node11.HasEvents());
            sequence11.SetHasEvents(sequence11.HasEvents() | decoratorLoopUntil_bt_WrapperAI_TowerExampleInput_node.HasEvents());
            ifElse3.SetHasEvents(ifElse3.HasEvents() | sequence11.HasEvents());
            WaitFrames_bt_WrapperAI_TowerExampleInput_node5 waitFrames_bt_WrapperAI_TowerExampleInput_node2 = new WaitFrames_bt_WrapperAI_TowerExampleInput_node5();

            waitFrames_bt_WrapperAI_TowerExampleInput_node2.SetClassNameString("WaitFrames");
            waitFrames_bt_WrapperAI_TowerExampleInput_node2.SetId(5);
            ifElse3.AddChild(waitFrames_bt_WrapperAI_TowerExampleInput_node2);
            ifElse3.SetHasEvents(ifElse3.HasEvents() | waitFrames_bt_WrapperAI_TowerExampleInput_node2.HasEvents());
            sequence9.SetHasEvents(sequence9.HasEvents() | ifElse3.HasEvents());
            sequence6.SetHasEvents(sequence6.HasEvents() | sequence9.HasEvents());
            withPrecondition.SetHasEvents(withPrecondition.HasEvents() | sequence6.HasEvents());
            selectorLoop.SetHasEvents(selectorLoop.HasEvents() | withPrecondition.HasEvents());
            WithPrecondition withPrecondition2 = new WithPrecondition();

            withPrecondition2.SetClassNameString("WithPrecondition");
            withPrecondition2.SetId(2);
            selectorLoop.AddChild(withPrecondition2);
            Condition_bt_WrapperAI_TowerExampleInput_node3 condition_bt_WrapperAI_TowerExampleInput_node12 = new Condition_bt_WrapperAI_TowerExampleInput_node3();

            condition_bt_WrapperAI_TowerExampleInput_node12.SetClassNameString("Condition");
            condition_bt_WrapperAI_TowerExampleInput_node12.SetId(3);
            withPrecondition2.AddChild(condition_bt_WrapperAI_TowerExampleInput_node12);
            withPrecondition2.SetHasEvents(withPrecondition2.HasEvents() | condition_bt_WrapperAI_TowerExampleInput_node12.HasEvents());
            Sequence sequence12 = new Sequence();

            sequence12.SetClassNameString("Sequence");
            sequence12.SetId(6);
            withPrecondition2.AddChild(sequence12);
            Action_bt_WrapperAI_TowerExampleInput_node4 action_bt_WrapperAI_TowerExampleInput_node8 = new Action_bt_WrapperAI_TowerExampleInput_node4();

            action_bt_WrapperAI_TowerExampleInput_node8.SetClassNameString("Action");
            action_bt_WrapperAI_TowerExampleInput_node8.SetId(4);
            sequence12.AddChild(action_bt_WrapperAI_TowerExampleInput_node8);
            sequence12.SetHasEvents(sequence12.HasEvents() | action_bt_WrapperAI_TowerExampleInput_node8.HasEvents());
            DecoratorLoop_bt_WrapperAI_TowerExampleInput_node7 decoratorLoop_bt_WrapperAI_TowerExampleInput_node2 = new DecoratorLoop_bt_WrapperAI_TowerExampleInput_node7();

            decoratorLoop_bt_WrapperAI_TowerExampleInput_node2.SetClassNameString("DecoratorLoop");
            decoratorLoop_bt_WrapperAI_TowerExampleInput_node2.SetId(7);
            sequence12.AddChild(decoratorLoop_bt_WrapperAI_TowerExampleInput_node2);
            Noop noop3 = new Noop();

            noop3.SetClassNameString("Noop");
            noop3.SetId(8);
            decoratorLoop_bt_WrapperAI_TowerExampleInput_node2.AddChild(noop3);
            decoratorLoop_bt_WrapperAI_TowerExampleInput_node2.SetHasEvents(decoratorLoop_bt_WrapperAI_TowerExampleInput_node2.HasEvents() | noop3.HasEvents());
            sequence12.SetHasEvents(sequence12.HasEvents() | decoratorLoop_bt_WrapperAI_TowerExampleInput_node2.HasEvents());
            withPrecondition2.SetHasEvents(withPrecondition2.HasEvents() | sequence12.HasEvents());
            selectorLoop.SetHasEvents(selectorLoop.HasEvents() | withPrecondition2.HasEvents());
            decoratorLoop_bt_WrapperAI_TowerExampleInput_node.SetHasEvents(decoratorLoop_bt_WrapperAI_TowerExampleInput_node.HasEvents() | selectorLoop.HasEvents());
            sequence.SetHasEvents(sequence.HasEvents() | decoratorLoop_bt_WrapperAI_TowerExampleInput_node.HasEvents());
            bt.SetHasEvents(bt.HasEvents() | sequence.HasEvents());
            return(true);
        }
예제 #17
0
 public static bool build_behavior_tree(BehaviorTree bt)
 {
     bt.SetClassNameString("BehaviorTree");
     bt.SetId(-1);
     bt.SetName("Level_DeathMatch_1");
     #if !BEHAVIAC_RELEASE
     bt.SetAgentType("GameLevelCommon");
     #endif
     // pars
     bt.AddPar("vector<int>", "parT_PlayerIDs", "4:10|11|12|13", "");
     bt.AddPar("int", "parT_ID", "0", "");
     bt.AddPar("int", "parT_Life", "0", "");
     bt.AddPar("int", "parT_PlayerIndex", "0", "");
     bt.AddPar("vector<int>", "parT_LifeCounts", "4:1|1|1|1", "");
     bt.AddPar("int", "parT_EnemyCount", "0", "");
     bt.AddPar("int", "parT_AwardX", "0", "");
     bt.AddPar("int", "parT_AwardY", "0", "");
     bt.AddPar("int", "parT_AwardType", "0", "");
     bt.AddPar("vector<UnityEngine.Color>", "parT_ForceColors", "4:{a=1;b=0;g=0;r=1;}|{a=1;b=1;g=0;r=0;}|{a=1;b=0;g=1;r=1;}|{a=1;b=0;g=1;r=0;}", "");
     bt.AddPar("vector<eGameForce>", "parT_Forces", "4:BLUE_FORCE|BLUE_FORCE|BLUE_FORCE|RED_FORCE", "");
     bt.AddPar("eGameForce", "parT_ActorForce", "BLUE_FORCE", "");
     bt.AddPar("UnityEngine.Color", "parT_ActorColor", "{a=0;b=0;g=0;r=0;}", "");
     bt.AddPar("int", "parT_RedForceID", "0", "");
     bt.AddPar("int", "parT_ActorCount", "4", "");
     bt.AddPar("vector<string>", "parT_BehaviorTree", "4:\"Tank_SafeWander_RandomFire\"|\"Tank_SafeWander_RandomFire\"|\"Tank_SafeWander_RandomFire\"|\"Tank_Agressive\"", "");
     bt.AddPar("string", "parT_Tree", "", "");
     // children
     {
         Selector node3 = new Selector();
         node3.SetClassNameString("Selector");
         node3.SetId(3);
     #if !BEHAVIAC_RELEASE
         node3.SetAgentType("GameLevelCommon");
     #endif
         bt.AddChild(node3);
         {
             DecoratorLoopUntil_bt_Level_DeathMatch_1_node10 node10 = new DecoratorLoopUntil_bt_Level_DeathMatch_1_node10();
             node10.SetClassNameString("DecoratorLoopUntil");
             node10.SetId(10);
     #if !BEHAVIAC_RELEASE
             node10.SetAgentType("GameLevelCommon");
     #endif
             node3.AddChild(node10);
             {
                 Sequence node17 = new Sequence();
                 node17.SetClassNameString("Sequence");
                 node17.SetId(17);
     #if !BEHAVIAC_RELEASE
                 node17.SetAgentType("GameLevelCommon");
     #endif
                 node10.AddChild(node17);
                 {
                     Condition_bt_Level_DeathMatch_1_node4 node4 = new Condition_bt_Level_DeathMatch_1_node4();
                     node4.SetClassNameString("Condition");
                     node4.SetId(4);
     #if !BEHAVIAC_RELEASE
                     node4.SetAgentType("GameLevelCommon");
     #endif
                     node17.AddChild(node4);
                     node17.SetHasEvents(node17.HasEvents() | node4.HasEvents());
                 }
                 {
                     Assignment_bt_Level_DeathMatch_1_node12 node12 = new Assignment_bt_Level_DeathMatch_1_node12();
                     node12.SetClassNameString("Assignment");
                     node12.SetId(12);
     #if !BEHAVIAC_RELEASE
                     node12.SetAgentType("GameLevelCommon");
     #endif
                     node17.AddChild(node12);
                     node17.SetHasEvents(node17.HasEvents() | node12.HasEvents());
                 }
                 {
                     Assignment_bt_Level_DeathMatch_1_node13 node13 = new Assignment_bt_Level_DeathMatch_1_node13();
                     node13.SetClassNameString("Assignment");
                     node13.SetId(13);
     #if !BEHAVIAC_RELEASE
                     node13.SetAgentType("GameLevelCommon");
     #endif
                     node17.AddChild(node13);
                     node17.SetHasEvents(node17.HasEvents() | node13.HasEvents());
                 }
                 {
                     Action_bt_Level_DeathMatch_1_node15 node15 = new Action_bt_Level_DeathMatch_1_node15();
                     node15.SetClassNameString("Action");
                     node15.SetId(15);
     #if !BEHAVIAC_RELEASE
                     node15.SetAgentType("GameLevelCommon");
     #endif
                     node17.AddChild(node15);
                     node17.SetHasEvents(node17.HasEvents() | node15.HasEvents());
                 }
                 {
                     Assignment_bt_Level_DeathMatch_1_node51 node51 = new Assignment_bt_Level_DeathMatch_1_node51();
                     node51.SetClassNameString("Assignment");
                     node51.SetId(51);
     #if !BEHAVIAC_RELEASE
                     node51.SetAgentType("GameLevelCommon");
     #endif
                     node17.AddChild(node51);
                     node17.SetHasEvents(node17.HasEvents() | node51.HasEvents());
                 }
                 {
                     DecoratorAlwaysSuccess_bt_Level_DeathMatch_1_node53 node53 = new DecoratorAlwaysSuccess_bt_Level_DeathMatch_1_node53();
                     node53.SetClassNameString("DecoratorAlwaysSuccess");
                     node53.SetId(53);
     #if !BEHAVIAC_RELEASE
                     node53.SetAgentType("GameLevelCommon");
     #endif
                     node17.AddChild(node53);
                     {
                         Sequence node54 = new Sequence();
                         node54.SetClassNameString("Sequence");
                         node54.SetId(54);
     #if !BEHAVIAC_RELEASE
                         node54.SetAgentType("GameLevelCommon");
     #endif
                         node53.AddChild(node54);
                         {
                             Condition_bt_Level_DeathMatch_1_node52 node52 = new Condition_bt_Level_DeathMatch_1_node52();
                             node52.SetClassNameString("Condition");
                             node52.SetId(52);
     #if !BEHAVIAC_RELEASE
                             node52.SetAgentType("GameLevelCommon");
     #endif
                             node54.AddChild(node52);
                             node54.SetHasEvents(node54.HasEvents() | node52.HasEvents());
                         }
                         {
                             Assignment_bt_Level_DeathMatch_1_node55 node55 = new Assignment_bt_Level_DeathMatch_1_node55();
                             node55.SetClassNameString("Assignment");
                             node55.SetId(55);
     #if !BEHAVIAC_RELEASE
                             node55.SetAgentType("GameLevelCommon");
     #endif
                             node54.AddChild(node55);
                             node54.SetHasEvents(node54.HasEvents() | node55.HasEvents());
                         }
                         {
                             Action_bt_Level_DeathMatch_1_node26 node26 = new Action_bt_Level_DeathMatch_1_node26();
                             node26.SetClassNameString("Action");
                             node26.SetId(26);
     #if !BEHAVIAC_RELEASE
                             node26.SetAgentType("GameLevelCommon");
     #endif
                             node54.AddChild(node26);
                             node54.SetHasEvents(node54.HasEvents() | node26.HasEvents());
                         }
                         node53.SetHasEvents(node53.HasEvents() | node54.HasEvents());
                     }
                     node17.SetHasEvents(node17.HasEvents() | node53.HasEvents());
                 }
                 {
                     Compute_bt_Level_DeathMatch_1_node16 node16 = new Compute_bt_Level_DeathMatch_1_node16();
                     node16.SetClassNameString("Compute");
                     node16.SetId(16);
     #if !BEHAVIAC_RELEASE
                     node16.SetAgentType("GameLevelCommon");
     #endif
                     node17.AddChild(node16);
                     node17.SetHasEvents(node17.HasEvents() | node16.HasEvents());
                 }
                 node10.SetHasEvents(node10.HasEvents() | node17.HasEvents());
             }
             node3.SetHasEvents(node3.HasEvents() | node10.HasEvents());
         }
         {
             Sequence node6 = new Sequence();
             node6.SetClassNameString("Sequence");
             node6.SetId(6);
     #if !BEHAVIAC_RELEASE
             node6.SetAgentType("GameLevelCommon");
     #endif
             node3.AddChild(node6);
             {
                 Wait_bt_Level_DeathMatch_1_node47 node47 = new Wait_bt_Level_DeathMatch_1_node47();
                 node47.SetClassNameString("Wait");
                 node47.SetId(47);
     #if !BEHAVIAC_RELEASE
                 node47.SetAgentType("GameLevelCommon");
     #endif
                 node6.AddChild(node47);
                 node6.SetHasEvents(node6.HasEvents() | node47.HasEvents());
             }
             {
                 DecoratorLoop_bt_Level_DeathMatch_1_node50 node50 = new DecoratorLoop_bt_Level_DeathMatch_1_node50();
                 node50.SetClassNameString("DecoratorLoop");
                 node50.SetId(50);
     #if !BEHAVIAC_RELEASE
                 node50.SetAgentType("GameLevelCommon");
     #endif
                 node6.AddChild(node50);
                 {
                     Parallel_bt_Level_DeathMatch_1_node14 node14 = new Parallel_bt_Level_DeathMatch_1_node14();
                     node14.SetClassNameString("Parallel");
                     node14.SetId(14);
     #if !BEHAVIAC_RELEASE
                     node14.SetAgentType("GameLevelCommon");
     #endif
                     node50.AddChild(node14);
                     {
                         Sequence node11 = new Sequence();
                         node11.SetClassNameString("Sequence");
                         node11.SetId(11);
     #if !BEHAVIAC_RELEASE
                         node11.SetAgentType("GameLevelCommon");
     #endif
                         node14.AddChild(node11);
                         {
                             DecoratorAlwaysSuccess_bt_Level_DeathMatch_1_node18 node18 = new DecoratorAlwaysSuccess_bt_Level_DeathMatch_1_node18();
                             node18.SetClassNameString("DecoratorAlwaysSuccess");
                             node18.SetId(18);
     #if !BEHAVIAC_RELEASE
                             node18.SetAgentType("GameLevelCommon");
     #endif
                             node11.AddChild(node18);
                             {
                                 Sequence node8 = new Sequence();
                                 node8.SetClassNameString("Sequence");
                                 node8.SetId(8);
     #if !BEHAVIAC_RELEASE
                                 node8.SetAgentType("GameLevelCommon");
     #endif
                                 node18.AddChild(node8);
                                 {
                                     Condition_bt_Level_DeathMatch_1_node9 node9 = new Condition_bt_Level_DeathMatch_1_node9();
                                     node9.SetClassNameString("Condition");
                                     node9.SetId(9);
     #if !BEHAVIAC_RELEASE
                                     node9.SetAgentType("GameLevelCommon");
     #endif
                                     node8.AddChild(node9);
                                     node8.SetHasEvents(node8.HasEvents() | node9.HasEvents());
                                 }
                                 {
                                     Assignment_bt_Level_DeathMatch_1_node19 node19 = new Assignment_bt_Level_DeathMatch_1_node19();
                                     node19.SetClassNameString("Assignment");
                                     node19.SetId(19);
     #if !BEHAVIAC_RELEASE
                                     node19.SetAgentType("GameLevelCommon");
     #endif
                                     node8.AddChild(node19);
                                     node8.SetHasEvents(node8.HasEvents() | node19.HasEvents());
                                 }
                                 node18.SetHasEvents(node18.HasEvents() | node8.HasEvents());
                             }
                             node11.SetHasEvents(node11.HasEvents() | node18.HasEvents());
                         }
                         {
                             Assignment_bt_Level_DeathMatch_1_node20 node20 = new Assignment_bt_Level_DeathMatch_1_node20();
                             node20.SetClassNameString("Assignment");
                             node20.SetId(20);
     #if !BEHAVIAC_RELEASE
                             node20.SetAgentType("GameLevelCommon");
     #endif
                             node11.AddChild(node20);
                             node11.SetHasEvents(node11.HasEvents() | node20.HasEvents());
                         }
                         {
                             DecoratorAlwaysSuccess_bt_Level_DeathMatch_1_node21 node21 = new DecoratorAlwaysSuccess_bt_Level_DeathMatch_1_node21();
                             node21.SetClassNameString("DecoratorAlwaysSuccess");
                             node21.SetId(21);
     #if !BEHAVIAC_RELEASE
                             node21.SetAgentType("GameLevelCommon");
     #endif
                             node11.AddChild(node21);
                             {
                                 Sequence node29 = new Sequence();
                                 node29.SetClassNameString("Sequence");
                                 node29.SetId(29);
     #if !BEHAVIAC_RELEASE
                                 node29.SetAgentType("GameLevelCommon");
     #endif
                                 node21.AddChild(node29);
                                 {
                                     DecoratorNot_bt_Level_DeathMatch_1_node36 node36 = new DecoratorNot_bt_Level_DeathMatch_1_node36();
                                     node36.SetClassNameString("DecoratorNot");
                                     node36.SetId(36);
     #if !BEHAVIAC_RELEASE
                                     node36.SetAgentType("GameLevelCommon");
     #endif
                                     node29.AddChild(node36);
                                     {
                                         Action_bt_Level_DeathMatch_1_node7 node7 = new Action_bt_Level_DeathMatch_1_node7();
                                         node7.SetClassNameString("Action");
                                         node7.SetId(7);
     #if !BEHAVIAC_RELEASE
                                         node7.SetAgentType("GameLevelCommon");
     #endif
                                         node36.AddChild(node7);
                                         node36.SetHasEvents(node36.HasEvents() | node7.HasEvents());
                                     }
                                     node29.SetHasEvents(node29.HasEvents() | node36.HasEvents());
                                 }
                                 {
                                     Assignment_bt_Level_DeathMatch_1_node39 node39 = new Assignment_bt_Level_DeathMatch_1_node39();
                                     node39.SetClassNameString("Assignment");
                                     node39.SetId(39);
     #if !BEHAVIAC_RELEASE
                                     node39.SetAgentType("GameLevelCommon");
     #endif
                                     node29.AddChild(node39);
                                     node29.SetHasEvents(node29.HasEvents() | node39.HasEvents());
                                 }
                                 {
                                     Condition_bt_Level_DeathMatch_1_node37 node37 = new Condition_bt_Level_DeathMatch_1_node37();
                                     node37.SetClassNameString("Condition");
                                     node37.SetId(37);
     #if !BEHAVIAC_RELEASE
                                     node37.SetAgentType("GameLevelCommon");
     #endif
                                     node29.AddChild(node37);
                                     node29.SetHasEvents(node29.HasEvents() | node37.HasEvents());
                                 }
                                 {
                                     Assignment_bt_Level_DeathMatch_1_node40 node40 = new Assignment_bt_Level_DeathMatch_1_node40();
                                     node40.SetClassNameString("Assignment");
                                     node40.SetId(40);
     #if !BEHAVIAC_RELEASE
                                     node40.SetAgentType("GameLevelCommon");
     #endif
                                     node29.AddChild(node40);
                                     node29.SetHasEvents(node29.HasEvents() | node40.HasEvents());
                                 }
                                 {
                                     Assignment_bt_Level_DeathMatch_1_node48 node48 = new Assignment_bt_Level_DeathMatch_1_node48();
                                     node48.SetClassNameString("Assignment");
                                     node48.SetId(48);
     #if !BEHAVIAC_RELEASE
                                     node48.SetAgentType("GameLevelCommon");
     #endif
                                     node29.AddChild(node48);
                                     node29.SetHasEvents(node29.HasEvents() | node48.HasEvents());
                                 }
                                 {
                                     Assignment_bt_Level_DeathMatch_1_node25 node25 = new Assignment_bt_Level_DeathMatch_1_node25();
                                     node25.SetClassNameString("Assignment");
                                     node25.SetId(25);
     #if !BEHAVIAC_RELEASE
                                     node25.SetAgentType("GameLevelCommon");
     #endif
                                     node29.AddChild(node25);
                                     node29.SetHasEvents(node29.HasEvents() | node25.HasEvents());
                                 }
                                 {
                                     Action_bt_Level_DeathMatch_1_node49 node49 = new Action_bt_Level_DeathMatch_1_node49();
                                     node49.SetClassNameString("Action");
                                     node49.SetId(49);
     #if !BEHAVIAC_RELEASE
                                     node49.SetAgentType("GameLevelCommon");
     #endif
                                     node29.AddChild(node49);
                                     node29.SetHasEvents(node29.HasEvents() | node49.HasEvents());
                                 }
                                 {
                                     Compute_bt_Level_DeathMatch_1_node41 node41 = new Compute_bt_Level_DeathMatch_1_node41();
                                     node41.SetClassNameString("Compute");
                                     node41.SetId(41);
     #if !BEHAVIAC_RELEASE
                                     node41.SetAgentType("GameLevelCommon");
     #endif
                                     node29.AddChild(node41);
                                     node29.SetHasEvents(node29.HasEvents() | node41.HasEvents());
                                 }
                                 {
                                     Action_bt_Level_DeathMatch_1_node35 node35 = new Action_bt_Level_DeathMatch_1_node35();
                                     node35.SetClassNameString("Action");
                                     node35.SetId(35);
     #if !BEHAVIAC_RELEASE
                                     node35.SetAgentType("GameLevelCommon");
     #endif
                                     node29.AddChild(node35);
                                     node29.SetHasEvents(node29.HasEvents() | node35.HasEvents());
                                 }
                                 node21.SetHasEvents(node21.HasEvents() | node29.HasEvents());
                             }
                             node11.SetHasEvents(node11.HasEvents() | node21.HasEvents());
                         }
                         {
                             Compute_bt_Level_DeathMatch_1_node0 node0 = new Compute_bt_Level_DeathMatch_1_node0();
                             node0.SetClassNameString("Compute");
                             node0.SetId(0);
     #if !BEHAVIAC_RELEASE
                             node0.SetAgentType("GameLevelCommon");
     #endif
                             node11.AddChild(node0);
                             node11.SetHasEvents(node11.HasEvents() | node0.HasEvents());
                         }
                         node14.SetHasEvents(node14.HasEvents() | node11.HasEvents());
                     }
                     {
                         Selector node2 = new Selector();
                         node2.SetClassNameString("Selector");
                         node2.SetId(2);
     #if !BEHAVIAC_RELEASE
                         node2.SetAgentType("GameLevelCommon");
     #endif
                         node14.AddChild(node2);
                         {
                             Sequence node38 = new Sequence();
                             node38.SetClassNameString("Sequence");
                             node38.SetId(38);
     #if !BEHAVIAC_RELEASE
                             node38.SetAgentType("GameLevelCommon");
     #endif
                             node2.AddChild(node38);
                             {
                                 Action_bt_Level_DeathMatch_1_node5 node5 = new Action_bt_Level_DeathMatch_1_node5();
                                 node5.SetClassNameString("Action");
                                 node5.SetId(5);
     #if !BEHAVIAC_RELEASE
                                 node5.SetAgentType("GameLevelCommon");
     #endif
                                 node38.AddChild(node5);
                                 node38.SetHasEvents(node38.HasEvents() | node5.HasEvents());
                             }
                             {
                                 Wait_bt_Level_DeathMatch_1_node1 node1 = new Wait_bt_Level_DeathMatch_1_node1();
                                 node1.SetClassNameString("Wait");
                                 node1.SetId(1);
     #if !BEHAVIAC_RELEASE
                                 node1.SetAgentType("GameLevelCommon");
     #endif
                                 node38.AddChild(node1);
                                 node38.SetHasEvents(node38.HasEvents() | node1.HasEvents());
                             }
                             {
                                 Action_bt_Level_DeathMatch_1_node30 node30 = new Action_bt_Level_DeathMatch_1_node30();
                                 node30.SetClassNameString("Action");
                                 node30.SetId(30);
     #if !BEHAVIAC_RELEASE
                                 node30.SetAgentType("GameLevelCommon");
     #endif
                                 node38.AddChild(node30);
                                 node38.SetHasEvents(node38.HasEvents() | node30.HasEvents());
                             }
                             {
                                 Wait_bt_Level_DeathMatch_1_node32 node32 = new Wait_bt_Level_DeathMatch_1_node32();
                                 node32.SetClassNameString("Wait");
                                 node32.SetId(32);
     #if !BEHAVIAC_RELEASE
                                 node32.SetAgentType("GameLevelCommon");
     #endif
                                 node38.AddChild(node32);
                                 node38.SetHasEvents(node38.HasEvents() | node32.HasEvents());
                             }
                             {
                                 Action_bt_Level_DeathMatch_1_node23 node23 = new Action_bt_Level_DeathMatch_1_node23();
                                 node23.SetClassNameString("Action");
                                 node23.SetId(23);
     #if !BEHAVIAC_RELEASE
                                 node23.SetAgentType("GameLevelCommon");
     #endif
                                 node38.AddChild(node23);
                                 node38.SetHasEvents(node38.HasEvents() | node23.HasEvents());
                             }
                             node2.SetHasEvents(node2.HasEvents() | node38.HasEvents());
                         }
                         {
                             Sequence node24 = new Sequence();
                             node24.SetClassNameString("Sequence");
                             node24.SetId(24);
     #if !BEHAVIAC_RELEASE
                             node24.SetAgentType("GameLevelCommon");
     #endif
                             node2.AddChild(node24);
                             {
                                 Action_bt_Level_DeathMatch_1_node22 node22 = new Action_bt_Level_DeathMatch_1_node22();
                                 node22.SetClassNameString("Action");
                                 node22.SetId(22);
     #if !BEHAVIAC_RELEASE
                                 node22.SetAgentType("GameLevelCommon");
     #endif
                                 node24.AddChild(node22);
                                 node24.SetHasEvents(node24.HasEvents() | node22.HasEvents());
                             }
                             {
                                 Wait_bt_Level_DeathMatch_1_node28 node28 = new Wait_bt_Level_DeathMatch_1_node28();
                                 node28.SetClassNameString("Wait");
                                 node28.SetId(28);
     #if !BEHAVIAC_RELEASE
                                 node28.SetAgentType("GameLevelCommon");
     #endif
                                 node24.AddChild(node28);
                                 node24.SetHasEvents(node24.HasEvents() | node28.HasEvents());
                             }
                             {
                                 Action_bt_Level_DeathMatch_1_node33 node33 = new Action_bt_Level_DeathMatch_1_node33();
                                 node33.SetClassNameString("Action");
                                 node33.SetId(33);
     #if !BEHAVIAC_RELEASE
                                 node33.SetAgentType("GameLevelCommon");
     #endif
                                 node24.AddChild(node33);
                                 node24.SetHasEvents(node24.HasEvents() | node33.HasEvents());
                             }
                             {
                                 Wait_bt_Level_DeathMatch_1_node56 node56 = new Wait_bt_Level_DeathMatch_1_node56();
                                 node56.SetClassNameString("Wait");
                                 node56.SetId(56);
     #if !BEHAVIAC_RELEASE
                                 node56.SetAgentType("GameLevelCommon");
     #endif
                                 node24.AddChild(node56);
                                 node24.SetHasEvents(node24.HasEvents() | node56.HasEvents());
                             }
                             {
                                 Action_bt_Level_DeathMatch_1_node27 node27 = new Action_bt_Level_DeathMatch_1_node27();
                                 node27.SetClassNameString("Action");
                                 node27.SetId(27);
     #if !BEHAVIAC_RELEASE
                                 node27.SetAgentType("GameLevelCommon");
     #endif
                                 node24.AddChild(node27);
                                 node24.SetHasEvents(node24.HasEvents() | node27.HasEvents());
                             }
                             node2.SetHasEvents(node2.HasEvents() | node24.HasEvents());
                         }
                         node14.SetHasEvents(node14.HasEvents() | node2.HasEvents());
                     }
                     {
                         Sequence node34 = new Sequence();
                         node34.SetClassNameString("Sequence");
                         node34.SetId(34);
     #if !BEHAVIAC_RELEASE
                         node34.SetAgentType("GameLevelCommon");
     #endif
                         node14.AddChild(node34);
                         {
                             Wait_bt_Level_DeathMatch_1_node31 node31 = new Wait_bt_Level_DeathMatch_1_node31();
                             node31.SetClassNameString("Wait");
                             node31.SetId(31);
     #if !BEHAVIAC_RELEASE
                             node31.SetAgentType("GameLevelCommon");
     #endif
                             node34.AddChild(node31);
                             node34.SetHasEvents(node34.HasEvents() | node31.HasEvents());
                         }
                         {
                             Assignment_bt_Level_DeathMatch_1_node42 node42 = new Assignment_bt_Level_DeathMatch_1_node42();
                             node42.SetClassNameString("Assignment");
                             node42.SetId(42);
     #if !BEHAVIAC_RELEASE
                             node42.SetAgentType("GameLevelCommon");
     #endif
                             node34.AddChild(node42);
                             node34.SetHasEvents(node34.HasEvents() | node42.HasEvents());
                         }
                         {
                             Assignment_bt_Level_DeathMatch_1_node43 node43 = new Assignment_bt_Level_DeathMatch_1_node43();
                             node43.SetClassNameString("Assignment");
                             node43.SetId(43);
     #if !BEHAVIAC_RELEASE
                             node43.SetAgentType("GameLevelCommon");
     #endif
                             node34.AddChild(node43);
                             node34.SetHasEvents(node34.HasEvents() | node43.HasEvents());
                         }
                         {
                             Assignment_bt_Level_DeathMatch_1_node44 node44 = new Assignment_bt_Level_DeathMatch_1_node44();
                             node44.SetClassNameString("Assignment");
                             node44.SetId(44);
     #if !BEHAVIAC_RELEASE
                             node44.SetAgentType("GameLevelCommon");
     #endif
                             node34.AddChild(node44);
                             node34.SetHasEvents(node34.HasEvents() | node44.HasEvents());
                         }
                         {
                             Action_bt_Level_DeathMatch_1_node45 node45 = new Action_bt_Level_DeathMatch_1_node45();
                             node45.SetClassNameString("Action");
                             node45.SetId(45);
     #if !BEHAVIAC_RELEASE
                             node45.SetAgentType("GameLevelCommon");
     #endif
                             node34.AddChild(node45);
                             node34.SetHasEvents(node34.HasEvents() | node45.HasEvents());
                         }
                         {
                             Wait_bt_Level_DeathMatch_1_node46 node46 = new Wait_bt_Level_DeathMatch_1_node46();
                             node46.SetClassNameString("Wait");
                             node46.SetId(46);
     #if !BEHAVIAC_RELEASE
                             node46.SetAgentType("GameLevelCommon");
     #endif
                             node34.AddChild(node46);
                             node34.SetHasEvents(node34.HasEvents() | node46.HasEvents());
                         }
                         node14.SetHasEvents(node14.HasEvents() | node34.HasEvents());
                     }
                     node50.SetHasEvents(node50.HasEvents() | node14.HasEvents());
                 }
                 node6.SetHasEvents(node6.HasEvents() | node50.HasEvents());
             }
             node3.SetHasEvents(node3.HasEvents() | node6.HasEvents());
         }
         bt.SetHasEvents(bt.HasEvents() | node3.HasEvents());
     }
     return true;
 }
예제 #18
0
        public static bool build_behavior_tree(BehaviorTree bt)
        {
            bt.SetClassNameString("BehaviorTree");
            bt.SetId(-1);
            bt.SetName("HoverBotBT");
            bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
            bt.SetAgentType("HoverBotAgent");
#endif
            // children
            {
                Selector node0 = new Selector();
                node0.SetClassNameString("Selector");
                node0.SetId(0);
#if !BEHAVIAC_RELEASE
                node0.SetAgentType("HoverBotAgent");
#endif
                bt.AddChild(node0);
                {
                    Sequence node2 = new Sequence();
                    node2.SetClassNameString("Sequence");
                    node2.SetId(2);
#if !BEHAVIAC_RELEASE
                    node2.SetAgentType("HoverBotAgent");
#endif
                    node0.AddChild(node2);
                    {
                        Condition_bt_HoverBotBT_node3 node3 = new Condition_bt_HoverBotBT_node3();
                        node3.SetClassNameString("Condition");
                        node3.SetId(3);
#if !BEHAVIAC_RELEASE
                        node3.SetAgentType("HoverBotAgent");
#endif
                        node2.AddChild(node3);
                        node2.SetHasEvents(node2.HasEvents() | node3.HasEvents());
                    }
                    {
                        Action_bt_HoverBotBT_node1 node1 = new Action_bt_HoverBotBT_node1();
                        node1.SetClassNameString("Action");
                        node1.SetId(1);
#if !BEHAVIAC_RELEASE
                        node1.SetAgentType("HoverBotAgent");
#endif
                        node2.AddChild(node1);
                        node2.SetHasEvents(node2.HasEvents() | node1.HasEvents());
                    }
                    node0.SetHasEvents(node0.HasEvents() | node2.HasEvents());
                }
                {
                    Selector node5 = new Selector();
                    node5.SetClassNameString("Selector");
                    node5.SetId(5);
#if !BEHAVIAC_RELEASE
                    node5.SetAgentType("HoverBotAgent");
#endif
                    node0.AddChild(node5);
                    {
                        Sequence node7 = new Sequence();
                        node7.SetClassNameString("Sequence");
                        node7.SetId(7);
#if !BEHAVIAC_RELEASE
                        node7.SetAgentType("HoverBotAgent");
#endif
                        node5.AddChild(node7);
                        {
                            Action_bt_HoverBotBT_node6 node6 = new Action_bt_HoverBotBT_node6();
                            node6.SetClassNameString("Action");
                            node6.SetId(6);
#if !BEHAVIAC_RELEASE
                            node6.SetAgentType("HoverBotAgent");
#endif
                            node7.AddChild(node6);
                            node7.SetHasEvents(node7.HasEvents() | node6.HasEvents());
                        }
                        {
                            Condition_bt_HoverBotBT_node8 node8 = new Condition_bt_HoverBotBT_node8();
                            node8.SetClassNameString("Condition");
                            node8.SetId(8);
#if !BEHAVIAC_RELEASE
                            node8.SetAgentType("HoverBotAgent");
#endif
                            node7.AddChild(node8);
                            node7.SetHasEvents(node7.HasEvents() | node8.HasEvents());
                        }
                        node5.SetHasEvents(node5.HasEvents() | node7.HasEvents());
                    }
                    {
                        Sequence node9 = new Sequence();
                        node9.SetClassNameString("Sequence");
                        node9.SetId(9);
#if !BEHAVIAC_RELEASE
                        node9.SetAgentType("HoverBotAgent");
#endif
                        node5.AddChild(node9);
                        {
                            Condition_bt_HoverBotBT_node10 node10 = new Condition_bt_HoverBotBT_node10();
                            node10.SetClassNameString("Condition");
                            node10.SetId(10);
#if !BEHAVIAC_RELEASE
                            node10.SetAgentType("HoverBotAgent");
#endif
                            node9.AddChild(node10);
                            node9.SetHasEvents(node9.HasEvents() | node10.HasEvents());
                        }
                        {
                            Action_bt_HoverBotBT_node4 node4 = new Action_bt_HoverBotBT_node4();
                            node4.SetClassNameString("Action");
                            node4.SetId(4);
#if !BEHAVIAC_RELEASE
                            node4.SetAgentType("HoverBotAgent");
#endif
                            node9.AddChild(node4);
                            node9.SetHasEvents(node9.HasEvents() | node4.HasEvents());
                        }
                        node5.SetHasEvents(node5.HasEvents() | node9.HasEvents());
                    }
                    node0.SetHasEvents(node0.HasEvents() | node5.HasEvents());
                }
                bt.SetHasEvents(bt.HasEvents() | node0.HasEvents());
            }
            return(true);
        }
예제 #19
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("node_test/predicate_sequence_ut_5");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("AgentNodeTest");
#endif
			// children
			{
				Sequence node0 = new Sequence();
				node0.SetClassNameString("Sequence");
				node0.SetId(0);
#if !BEHAVIAC_RELEASE
				node0.SetAgentType("AgentNodeTest");
#endif
				bt.AddChild(node0);
				{
					DecoratorNot_bt_node_test_predicate_sequence_ut_5_node1 node1 = new DecoratorNot_bt_node_test_predicate_sequence_ut_5_node1();
					node1.SetClassNameString("DecoratorNot");
					node1.SetId(1);
#if !BEHAVIAC_RELEASE
					node1.SetAgentType("AgentNodeTest");
#endif
					node0.SetCustomCondition(node1);
					{
						Sequence node3 = new Sequence();
						node3.SetClassNameString("Sequence");
						node3.SetId(3);
#if !BEHAVIAC_RELEASE
						node3.SetAgentType("AgentNodeTest");
#endif
						node1.AddChild(node3);
						{
							Selector node6 = new Selector();
							node6.SetClassNameString("Selector");
							node6.SetId(6);
#if !BEHAVIAC_RELEASE
							node6.SetAgentType("AgentNodeTest");
#endif
							node3.AddChild(node6);
							{
								Condition_bt_node_test_predicate_sequence_ut_5_node8 node8 = new Condition_bt_node_test_predicate_sequence_ut_5_node8();
								node8.SetClassNameString("Condition");
								node8.SetId(8);
#if !BEHAVIAC_RELEASE
								node8.SetAgentType("AgentNodeTest");
#endif
								node6.AddChild(node8);
								node6.SetHasEvents(node6.HasEvents() | node8.HasEvents());
							}
							{
								Condition_bt_node_test_predicate_sequence_ut_5_node9 node9 = new Condition_bt_node_test_predicate_sequence_ut_5_node9();
								node9.SetClassNameString("Condition");
								node9.SetId(9);
#if !BEHAVIAC_RELEASE
								node9.SetAgentType("AgentNodeTest");
#endif
								node6.AddChild(node9);
								node6.SetHasEvents(node6.HasEvents() | node9.HasEvents());
							}
							node3.SetHasEvents(node3.HasEvents() | node6.HasEvents());
						}
						{
							Condition_bt_node_test_predicate_sequence_ut_5_node10 node10 = new Condition_bt_node_test_predicate_sequence_ut_5_node10();
							node10.SetClassNameString("Condition");
							node10.SetId(10);
#if !BEHAVIAC_RELEASE
							node10.SetAgentType("AgentNodeTest");
#endif
							node3.AddChild(node10);
							node3.SetHasEvents(node3.HasEvents() | node10.HasEvents());
						}
						node1.SetHasEvents(node1.HasEvents() | node3.HasEvents());
					}
					node0.SetHasEvents(node0.HasEvents() | node1.HasEvents());
				}
				{
					Action_bt_node_test_predicate_sequence_ut_5_node5 node5 = new Action_bt_node_test_predicate_sequence_ut_5_node5();
					node5.SetClassNameString("Action");
					node5.SetId(5);
#if !BEHAVIAC_RELEASE
					node5.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node5);
					node0.SetHasEvents(node0.HasEvents() | node5.HasEvents());
				}
				{
					Action_bt_node_test_predicate_sequence_ut_5_node4 node4 = new Action_bt_node_test_predicate_sequence_ut_5_node4();
					node4.SetClassNameString("Action");
					node4.SetId(4);
#if !BEHAVIAC_RELEASE
					node4.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node4);
					node0.SetHasEvents(node0.HasEvents() | node4.HasEvents());
				}
				{
					Action_bt_node_test_predicate_sequence_ut_5_node2 node2 = new Action_bt_node_test_predicate_sequence_ut_5_node2();
					node2.SetClassNameString("Action");
					node2.SetId(2);
#if !BEHAVIAC_RELEASE
					node2.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node2);
					node0.SetHasEvents(node0.HasEvents() | node2.HasEvents());
				}
				{
					Action_bt_node_test_predicate_sequence_ut_5_node7 node7 = new Action_bt_node_test_predicate_sequence_ut_5_node7();
					node7.SetClassNameString("Action");
					node7.SetId(7);
#if !BEHAVIAC_RELEASE
					node7.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node7);
					node0.SetHasEvents(node0.HasEvents() | node7.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node0.HasEvents());
			}
			return true;
		}
예제 #20
0
        public static bool build_behavior_tree(BehaviorTree bt)
        {
            bt.SetClassNameString("BehaviorTree");
            bt.SetId(-1);
            bt.SetName("WrapperAI/Soldier/BTSoldierSiege");
            bt.AddPar("Assets.Scripts.GameLogic.SkillSlotType", "p_curSlotType", "SLOT_SKILL_0", string.Empty);
            bt.AddPar("uint", "p_targetID", "0", string.Empty);
            bt.AddPar("int", "p_srchRange", "0", string.Empty);
            bt.AddPar("UnityEngine.Vector3", "p_AttackMoveDest", "{kEpsilon=0;x=0;y=0;z=0;}", string.Empty);
            bt.AddPar("bool", "p_IsAttackMove_Attack", "false", string.Empty);
            bt.AddPar("bool", "p_AttackIsFinished", "true", string.Empty);
            bt.AddPar("uint", "p_CmdID", "0", string.Empty);
            bt.AddPar("UnityEngine.Vector3", "p_attackPathCurTargetPos", "{kEpsilon=0;x=0;y=0;z=0;}", string.Empty);
            Sequence pChild = new Sequence();

            pChild.SetClassNameString("Sequence");
            pChild.SetId(0);
            bt.AddChild(pChild);
            Assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node106 _node = new Assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node106();

            _node.SetClassNameString("Assignment");
            _node.SetId(0x6a);
            pChild.AddChild(_node);
            pChild.SetHasEvents(pChild.HasEvents() | _node.HasEvents());
            DecoratorLoop_bt_WrapperAI_Soldier_BTSoldierSiege_node14 _node2 = new DecoratorLoop_bt_WrapperAI_Soldier_BTSoldierSiege_node14();

            _node2.SetClassNameString("DecoratorLoop");
            _node2.SetId(14);
            pChild.AddChild(_node2);
            SelectorLoop loop = new SelectorLoop();

            loop.SetClassNameString("SelectorLoop");
            loop.SetId(1);
            _node2.AddChild(loop);
            WithPrecondition precondition = new WithPrecondition();

            precondition.SetClassNameString("WithPrecondition");
            precondition.SetId(0x3b);
            loop.AddChild(precondition);
            Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node78 _node3 = new Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node78();

            _node3.SetClassNameString("Condition");
            _node3.SetId(0x4e);
            precondition.AddChild(_node3);
            precondition.SetHasEvents(precondition.HasEvents() | _node3.HasEvents());
            Sequence sequence2 = new Sequence();

            sequence2.SetClassNameString("Sequence");
            sequence2.SetId(0x69);
            precondition.AddChild(sequence2);
            Assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node107 _node4 = new Assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node107();

            _node4.SetClassNameString("Assignment");
            _node4.SetId(0x6b);
            sequence2.AddChild(_node4);
            sequence2.SetHasEvents(sequence2.HasEvents() | _node4.HasEvents());
            IfElse @else = new IfElse();

            @else.SetClassNameString("IfElse");
            @else.SetId(0x6c);
            sequence2.AddChild(@else);
            Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node109 _node5 = new Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node109();

            _node5.SetClassNameString("Condition");
            _node5.SetId(0x6d);
            @else.AddChild(_node5);
            @else.SetHasEvents(@else.HasEvents() | _node5.HasEvents());
            Sequence sequence3 = new Sequence();

            sequence3.SetClassNameString("Sequence");
            sequence3.SetId(110);
            @else.AddChild(sequence3);
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node111 _node6 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node111();

            _node6.SetClassNameString("Action");
            _node6.SetId(0x6f);
            sequence3.AddChild(_node6);
            sequence3.SetHasEvents(sequence3.HasEvents() | _node6.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node112 _node7 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node112();

            _node7.SetClassNameString("Action");
            _node7.SetId(0x70);
            sequence3.AddChild(_node7);
            sequence3.SetHasEvents(sequence3.HasEvents() | _node7.HasEvents());
            IfElse else2 = new IfElse();

            else2.SetClassNameString("IfElse");
            else2.SetId(5);
            sequence3.AddChild(else2);
            Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node6 _node8 = new Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node6();

            _node8.SetClassNameString("Condition");
            _node8.SetId(6);
            else2.AddChild(_node8);
            else2.SetHasEvents(else2.HasEvents() | _node8.HasEvents());
            Sequence sequence4 = new Sequence();

            sequence4.SetClassNameString("Sequence");
            sequence4.SetId(7);
            else2.AddChild(sequence4);
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node23 _node9 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node23();

            _node9.SetClassNameString("Action");
            _node9.SetId(0x17);
            sequence4.AddChild(_node9);
            sequence4.SetHasEvents(sequence4.HasEvents() | _node9.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node113 _node10 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node113();

            _node10.SetClassNameString("Action");
            _node10.SetId(0x71);
            sequence4.AddChild(_node10);
            sequence4.SetHasEvents(sequence4.HasEvents() | _node10.HasEvents());
            Selector selector = new Selector();

            selector.SetClassNameString("Selector");
            selector.SetId(0x11);
            sequence4.AddChild(selector);
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node114 _node11 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node114();

            _node11.SetClassNameString("Action");
            _node11.SetId(0x72);
            selector.AddChild(_node11);
            selector.SetHasEvents(selector.HasEvents() | _node11.HasEvents());
            DecoratorAlwaysFailure_bt_WrapperAI_Soldier_BTSoldierSiege_node19 _node12 = new DecoratorAlwaysFailure_bt_WrapperAI_Soldier_BTSoldierSiege_node19();

            _node12.SetClassNameString("DecoratorAlwaysFailure");
            _node12.SetId(0x13);
            selector.AddChild(_node12);
            Assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node18 _node13 = new Assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node18();

            _node13.SetClassNameString("Assignment");
            _node13.SetId(0x12);
            _node12.AddChild(_node13);
            _node12.SetHasEvents(_node12.HasEvents() | _node13.HasEvents());
            selector.SetHasEvents(selector.HasEvents() | _node12.HasEvents());
            sequence4.SetHasEvents(sequence4.HasEvents() | selector.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node140 _node14 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node140();

            _node14.SetClassNameString("Action");
            _node14.SetId(140);
            sequence4.AddChild(_node14);
            sequence4.SetHasEvents(sequence4.HasEvents() | _node14.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node116 _node15 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node116();

            _node15.SetClassNameString("Action");
            _node15.SetId(0x74);
            sequence4.AddChild(_node15);
            sequence4.SetHasEvents(sequence4.HasEvents() | _node15.HasEvents());
            DecoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node117 _node16 = new DecoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node117();

            _node16.SetClassNameString("DecoratorLoopUntil");
            _node16.SetId(0x75);
            sequence4.AddChild(_node16);
            Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node118 _node17 = new Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node118();

            _node17.SetClassNameString("Condition");
            _node17.SetId(0x76);
            _node16.AddChild(_node17);
            _node16.SetHasEvents(_node16.HasEvents() | _node17.HasEvents());
            sequence4.SetHasEvents(sequence4.HasEvents() | _node16.HasEvents());
            else2.SetHasEvents(else2.HasEvents() | sequence4.HasEvents());
            Sequence sequence5 = new Sequence();

            sequence5.SetClassNameString("Sequence");
            sequence5.SetId(9);
            else2.AddChild(sequence5);
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node4 _node18 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node4();

            _node18.SetClassNameString("Action");
            _node18.SetId(4);
            sequence5.AddChild(_node18);
            sequence5.SetHasEvents(sequence5.HasEvents() | _node18.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node13 _node19 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node13();

            _node19.SetClassNameString("Action");
            _node19.SetId(13);
            sequence5.AddChild(_node19);
            sequence5.SetHasEvents(sequence5.HasEvents() | _node19.HasEvents());
            DecoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node15 _node20 = new DecoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node15();

            _node20.SetClassNameString("DecoratorLoopUntil");
            _node20.SetId(15);
            sequence5.AddChild(_node20);
            Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node16 _node21 = new Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node16();

            _node21.SetClassNameString("Condition");
            _node21.SetId(0x10);
            _node20.AddChild(_node21);
            _node20.SetHasEvents(_node20.HasEvents() | _node21.HasEvents());
            sequence5.SetHasEvents(sequence5.HasEvents() | _node20.HasEvents());
            else2.SetHasEvents(else2.HasEvents() | sequence5.HasEvents());
            sequence3.SetHasEvents(sequence3.HasEvents() | else2.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node28 _node22 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node28();

            _node22.SetClassNameString("Action");
            _node22.SetId(0x1c);
            sequence3.AddChild(_node22);
            sequence3.SetHasEvents(sequence3.HasEvents() | _node22.HasEvents());
            @else.SetHasEvents(@else.HasEvents() | sequence3.HasEvents());
            Sequence sequence6 = new Sequence();

            sequence6.SetClassNameString("Sequence");
            sequence6.SetId(0x80);
            @else.AddChild(sequence6);
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node129 _node23 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node129();

            _node23.SetClassNameString("Action");
            _node23.SetId(0x81);
            sequence6.AddChild(_node23);
            sequence6.SetHasEvents(sequence6.HasEvents() | _node23.HasEvents());
            IfElse else3 = new IfElse();

            else3.SetClassNameString("IfElse");
            else3.SetId(0x77);
            sequence6.AddChild(else3);
            Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node120 _node24 = new Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node120();

            _node24.SetClassNameString("Condition");
            _node24.SetId(120);
            else3.AddChild(_node24);
            else3.SetHasEvents(else3.HasEvents() | _node24.HasEvents());
            Sequence sequence7 = new Sequence();

            sequence7.SetClassNameString("Sequence");
            sequence7.SetId(0x79);
            else3.AddChild(sequence7);
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node24 _node25 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node24();

            _node25.SetClassNameString("Action");
            _node25.SetId(0x18);
            sequence7.AddChild(_node25);
            sequence7.SetHasEvents(sequence7.HasEvents() | _node25.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node444 _node26 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node444();

            _node26.SetClassNameString("Action");
            _node26.SetId(0x1bc);
            sequence7.AddChild(_node26);
            sequence7.SetHasEvents(sequence7.HasEvents() | _node26.HasEvents());
            Assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node122 _node27 = new Assignment_bt_WrapperAI_Soldier_BTSoldierSiege_node122();

            _node27.SetClassNameString("Assignment");
            _node27.SetId(0x7a);
            sequence7.AddChild(_node27);
            sequence7.SetHasEvents(sequence7.HasEvents() | _node27.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node123 _node28 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node123();

            _node28.SetClassNameString("Action");
            _node28.SetId(0x7b);
            sequence7.AddChild(_node28);
            sequence7.SetHasEvents(sequence7.HasEvents() | _node28.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node124 _node29 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node124();

            _node29.SetClassNameString("Action");
            _node29.SetId(0x7c);
            sequence7.AddChild(_node29);
            sequence7.SetHasEvents(sequence7.HasEvents() | _node29.HasEvents());
            else3.SetHasEvents(else3.HasEvents() | sequence7.HasEvents());
            Sequence sequence8 = new Sequence();

            sequence8.SetClassNameString("Sequence");
            sequence8.SetId(0x7d);
            else3.AddChild(sequence8);
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node126 _node30 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node126();

            _node30.SetClassNameString("Action");
            _node30.SetId(0x7e);
            sequence8.AddChild(_node30);
            sequence8.SetHasEvents(sequence8.HasEvents() | _node30.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node127 _node31 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node127();

            _node31.SetClassNameString("Action");
            _node31.SetId(0x7f);
            sequence8.AddChild(_node31);
            sequence8.SetHasEvents(sequence8.HasEvents() | _node31.HasEvents());
            else3.SetHasEvents(else3.HasEvents() | sequence8.HasEvents());
            sequence6.SetHasEvents(sequence6.HasEvents() | else3.HasEvents());
            @else.SetHasEvents(@else.HasEvents() | sequence6.HasEvents());
            sequence2.SetHasEvents(sequence2.HasEvents() | @else.HasEvents());
            precondition.SetHasEvents(precondition.HasEvents() | sequence2.HasEvents());
            loop.SetHasEvents(loop.HasEvents() | precondition.HasEvents());
            WithPrecondition precondition2 = new WithPrecondition();

            precondition2.SetClassNameString("WithPrecondition");
            precondition2.SetId(0x203);
            loop.AddChild(precondition2);
            Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node516 _node32 = new Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node516();

            _node32.SetClassNameString("Condition");
            _node32.SetId(0x204);
            precondition2.AddChild(_node32);
            precondition2.SetHasEvents(precondition2.HasEvents() | _node32.HasEvents());
            Sequence sequence9 = new Sequence();

            sequence9.SetClassNameString("Sequence");
            sequence9.SetId(0x205);
            precondition2.AddChild(sequence9);
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node518 _node33 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node518();

            _node33.SetClassNameString("Action");
            _node33.SetId(0x206);
            sequence9.AddChild(_node33);
            sequence9.SetHasEvents(sequence9.HasEvents() | _node33.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node519 _node34 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node519();

            _node34.SetClassNameString("Action");
            _node34.SetId(0x207);
            sequence9.AddChild(_node34);
            sequence9.SetHasEvents(sequence9.HasEvents() | _node34.HasEvents());
            IfElse else4 = new IfElse();

            else4.SetClassNameString("IfElse");
            else4.SetId(520);
            sequence9.AddChild(else4);
            Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node521 _node35 = new Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node521();

            _node35.SetClassNameString("Condition");
            _node35.SetId(0x209);
            else4.AddChild(_node35);
            else4.SetHasEvents(else4.HasEvents() | _node35.HasEvents());
            Sequence sequence10 = new Sequence();

            sequence10.SetClassNameString("Sequence");
            sequence10.SetId(0x20a);
            else4.AddChild(sequence10);
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node523 _node36 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node523();

            _node36.SetClassNameString("Action");
            _node36.SetId(0x20b);
            sequence10.AddChild(_node36);
            sequence10.SetHasEvents(sequence10.HasEvents() | _node36.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node524 _node37 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node524();

            _node37.SetClassNameString("Action");
            _node37.SetId(0x20c);
            sequence10.AddChild(_node37);
            sequence10.SetHasEvents(sequence10.HasEvents() | _node37.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node526 _node38 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node526();

            _node38.SetClassNameString("Action");
            _node38.SetId(0x20e);
            sequence10.AddChild(_node38);
            sequence10.SetHasEvents(sequence10.HasEvents() | _node38.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node2 _node39 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node2();

            _node39.SetClassNameString("Action");
            _node39.SetId(2);
            sequence10.AddChild(_node39);
            sequence10.SetHasEvents(sequence10.HasEvents() | _node39.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node530 _node40 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node530();

            _node40.SetClassNameString("Action");
            _node40.SetId(530);
            sequence10.AddChild(_node40);
            sequence10.SetHasEvents(sequence10.HasEvents() | _node40.HasEvents());
            DecoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node531 _node41 = new DecoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node531();

            _node41.SetClassNameString("DecoratorLoopUntil");
            _node41.SetId(0x213);
            sequence10.AddChild(_node41);
            Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node532 _node42 = new Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node532();

            _node42.SetClassNameString("Condition");
            _node42.SetId(0x214);
            _node41.AddChild(_node42);
            _node41.SetHasEvents(_node41.HasEvents() | _node42.HasEvents());
            sequence10.SetHasEvents(sequence10.HasEvents() | _node41.HasEvents());
            else4.SetHasEvents(else4.HasEvents() | sequence10.HasEvents());
            Sequence sequence11 = new Sequence();

            sequence11.SetClassNameString("Sequence");
            sequence11.SetId(0x215);
            else4.AddChild(sequence11);
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node3 _node43 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node3();

            _node43.SetClassNameString("Action");
            _node43.SetId(3);
            sequence11.AddChild(_node43);
            sequence11.SetHasEvents(sequence11.HasEvents() | _node43.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node535 _node44 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node535();

            _node44.SetClassNameString("Action");
            _node44.SetId(0x217);
            sequence11.AddChild(_node44);
            sequence11.SetHasEvents(sequence11.HasEvents() | _node44.HasEvents());
            DecoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node536 _node45 = new DecoratorLoopUntil_bt_WrapperAI_Soldier_BTSoldierSiege_node536();

            _node45.SetClassNameString("DecoratorLoopUntil");
            _node45.SetId(0x218);
            sequence11.AddChild(_node45);
            Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node537 _node46 = new Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node537();

            _node46.SetClassNameString("Condition");
            _node46.SetId(0x219);
            _node45.AddChild(_node46);
            _node45.SetHasEvents(_node45.HasEvents() | _node46.HasEvents());
            sequence11.SetHasEvents(sequence11.HasEvents() | _node45.HasEvents());
            else4.SetHasEvents(else4.HasEvents() | sequence11.HasEvents());
            sequence9.SetHasEvents(sequence9.HasEvents() | else4.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node538 _node47 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node538();

            _node47.SetClassNameString("Action");
            _node47.SetId(0x21a);
            sequence9.AddChild(_node47);
            sequence9.SetHasEvents(sequence9.HasEvents() | _node47.HasEvents());
            precondition2.SetHasEvents(precondition2.HasEvents() | sequence9.HasEvents());
            loop.SetHasEvents(loop.HasEvents() | precondition2.HasEvents());
            WithPrecondition precondition3 = new WithPrecondition();

            precondition3.SetClassNameString("WithPrecondition");
            precondition3.SetId(0x15);
            loop.AddChild(precondition3);
            Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node22 _node48 = new Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node22();

            _node48.SetClassNameString("Condition");
            _node48.SetId(0x16);
            precondition3.AddChild(_node48);
            precondition3.SetHasEvents(precondition3.HasEvents() | _node48.HasEvents());
            Sequence sequence12 = new Sequence();

            sequence12.SetClassNameString("Sequence");
            sequence12.SetId(0x1b);
            precondition3.AddChild(sequence12);
            Selector selector2 = new Selector();

            selector2.SetClassNameString("Selector");
            selector2.SetId(0x1e7);
            sequence12.AddChild(selector2);
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node488 _node49 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node488();

            _node49.SetClassNameString("Action");
            _node49.SetId(0x1e8);
            selector2.AddChild(_node49);
            selector2.SetHasEvents(selector2.HasEvents() | _node49.HasEvents());
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node35 _node50 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node35();

            _node50.SetClassNameString("Action");
            _node50.SetId(0x23);
            selector2.AddChild(_node50);
            selector2.SetHasEvents(selector2.HasEvents() | _node50.HasEvents());
            sequence12.SetHasEvents(sequence12.HasEvents() | selector2.HasEvents());
            DecoratorLoop_bt_WrapperAI_Soldier_BTSoldierSiege_node65 _node51 = new DecoratorLoop_bt_WrapperAI_Soldier_BTSoldierSiege_node65();

            _node51.SetClassNameString("DecoratorLoop");
            _node51.SetId(0x41);
            sequence12.AddChild(_node51);
            Noop noop = new Noop();

            noop.SetClassNameString("Noop");
            noop.SetId(0x42);
            _node51.AddChild(noop);
            _node51.SetHasEvents(_node51.HasEvents() | noop.HasEvents());
            sequence12.SetHasEvents(sequence12.HasEvents() | _node51.HasEvents());
            precondition3.SetHasEvents(precondition3.HasEvents() | sequence12.HasEvents());
            loop.SetHasEvents(loop.HasEvents() | precondition3.HasEvents());
            WithPrecondition precondition4 = new WithPrecondition();

            precondition4.SetClassNameString("WithPrecondition");
            precondition4.SetId(450);
            loop.AddChild(precondition4);
            Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node454 _node52 = new Condition_bt_WrapperAI_Soldier_BTSoldierSiege_node454();

            _node52.SetClassNameString("Condition");
            _node52.SetId(0x1c6);
            precondition4.AddChild(_node52);
            precondition4.SetHasEvents(precondition4.HasEvents() | _node52.HasEvents());
            Sequence sequence13 = new Sequence();

            sequence13.SetClassNameString("Sequence");
            sequence13.SetId(0x1c7);
            precondition4.AddChild(sequence13);
            Action_bt_WrapperAI_Soldier_BTSoldierSiege_node456 _node53 = new Action_bt_WrapperAI_Soldier_BTSoldierSiege_node456();

            _node53.SetClassNameString("Action");
            _node53.SetId(0x1c8);
            sequence13.AddChild(_node53);
            sequence13.SetHasEvents(sequence13.HasEvents() | _node53.HasEvents());
            DecoratorLoop_bt_WrapperAI_Soldier_BTSoldierSiege_node457 _node54 = new DecoratorLoop_bt_WrapperAI_Soldier_BTSoldierSiege_node457();

            _node54.SetClassNameString("DecoratorLoop");
            _node54.SetId(0x1c9);
            sequence13.AddChild(_node54);
            Noop noop2 = new Noop();

            noop2.SetClassNameString("Noop");
            noop2.SetId(0x1ca);
            _node54.AddChild(noop2);
            _node54.SetHasEvents(_node54.HasEvents() | noop2.HasEvents());
            sequence13.SetHasEvents(sequence13.HasEvents() | _node54.HasEvents());
            precondition4.SetHasEvents(precondition4.HasEvents() | sequence13.HasEvents());
            loop.SetHasEvents(loop.HasEvents() | precondition4.HasEvents());
            _node2.SetHasEvents(_node2.HasEvents() | loop.HasEvents());
            pChild.SetHasEvents(pChild.HasEvents() | _node2.HasEvents());
            bt.SetHasEvents(bt.HasEvents() | pChild.HasEvents());
            return(true);
        }
예제 #21
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("node_test/selector_ut_4");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("AgentNodeTest");
#endif
			// children
			{
				Selector node0 = new Selector();
				node0.SetClassNameString("Selector");
				node0.SetId(0);
#if !BEHAVIAC_RELEASE
				node0.SetAgentType("AgentNodeTest");
#endif
				bt.AddChild(node0);
				{
					Action_bt_node_test_selector_ut_4_node1 node1 = new Action_bt_node_test_selector_ut_4_node1();
					node1.SetClassNameString("Action");
					node1.SetId(1);
#if !BEHAVIAC_RELEASE
					node1.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node1);
					node0.SetHasEvents(node0.HasEvents() | node1.HasEvents());
				}
				{
					Action_bt_node_test_selector_ut_4_node2 node2 = new Action_bt_node_test_selector_ut_4_node2();
					node2.SetClassNameString("Action");
					node2.SetId(2);
#if !BEHAVIAC_RELEASE
					node2.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node2);
					node0.SetHasEvents(node0.HasEvents() | node2.HasEvents());
				}
				{
					Action_bt_node_test_selector_ut_4_node3 node3 = new Action_bt_node_test_selector_ut_4_node3();
					node3.SetClassNameString("Action");
					node3.SetId(3);
#if !BEHAVIAC_RELEASE
					node3.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node3);
					node0.SetHasEvents(node0.HasEvents() | node3.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node0.HasEvents());
			}
			return true;
		}
예제 #22
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("node_test/query_ut_0");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("AgentNodeTest");
#endif
			// children
			{
				Sequence node0 = new Sequence();
				node0.SetClassNameString("Sequence");
				node0.SetId(0);
#if !BEHAVIAC_RELEASE
				node0.SetAgentType("AgentNodeTest");
#endif
				// attachments
				{
					Precondition_bt_node_test_query_ut_0_attach1 attach1 = new Precondition_bt_node_test_query_ut_0_attach1();
					attach1.SetClassNameString("Precondition");
					attach1.SetId(1);
#if !BEHAVIAC_RELEASE
					attach1.SetAgentType("AgentNodeTest");
#endif
					node0.Attach(attach1, true, false, false);
				}
				{
					Effector_bt_node_test_query_ut_0_attach2 attach2 = new Effector_bt_node_test_query_ut_0_attach2();
					attach2.SetClassNameString("Effector");
					attach2.SetId(2);
#if !BEHAVIAC_RELEASE
					attach2.SetAgentType("AgentNodeTest");
#endif
					node0.Attach(attach2, false, true, false);
				}
				bt.AddChild(node0);
				{
					Query_bt_node_test_query_ut_0_node5 node5 = new Query_bt_node_test_query_ut_0_node5();
					node5.SetClassNameString("Query");
					node5.SetId(5);
#if !BEHAVIAC_RELEASE
					node5.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node5);
					node0.SetHasEvents(node0.HasEvents() | node5.HasEvents());
				}
				{
					Selector node6 = new Selector();
					node6.SetClassNameString("Selector");
					node6.SetId(6);
#if !BEHAVIAC_RELEASE
					node6.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node6);
					{
						Query_bt_node_test_query_ut_0_node3 node3 = new Query_bt_node_test_query_ut_0_node3();
						node3.SetClassNameString("Query");
						node3.SetId(3);
#if !BEHAVIAC_RELEASE
						node3.SetAgentType("AgentNodeTest");
#endif
						node6.AddChild(node3);
						node6.SetHasEvents(node6.HasEvents() | node3.HasEvents());
					}
					{
						Query_bt_node_test_query_ut_0_node4 node4 = new Query_bt_node_test_query_ut_0_node4();
						node4.SetClassNameString("Query");
						node4.SetId(4);
#if !BEHAVIAC_RELEASE
						node4.SetAgentType("AgentNodeTest");
#endif
						node6.AddChild(node4);
						node6.SetHasEvents(node6.HasEvents() | node4.HasEvents());
					}
					node0.SetHasEvents(node0.HasEvents() | node6.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node0.HasEvents());
			}
			return true;
		}
예제 #23
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("node_test/circular_ut_0");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("AgentNodeTest");
#endif
			// children
			{
				Selector node0 = new Selector();
				node0.SetClassNameString("Selector");
				node0.SetId(0);
#if !BEHAVIAC_RELEASE
				node0.SetAgentType("AgentNodeTest");
#endif
				bt.AddChild(node0);
				{
					Sequence node2 = new Sequence();
					node2.SetClassNameString("Sequence");
					node2.SetId(2);
#if !BEHAVIAC_RELEASE
					node2.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node2);
					{
						Condition_bt_node_test_circular_ut_0_node5 node5 = new Condition_bt_node_test_circular_ut_0_node5();
						node5.SetClassNameString("Condition");
						node5.SetId(5);
#if !BEHAVIAC_RELEASE
						node5.SetAgentType("AgentNodeTest");
#endif
						node2.AddChild(node5);
						node2.SetHasEvents(node2.HasEvents() | node5.HasEvents());
					}
					{
						Sequence node4 = new Sequence();
						node4.SetClassNameString("Sequence");
						node4.SetId(4);
#if !BEHAVIAC_RELEASE
						node4.SetAgentType("AgentNodeTest");
#endif
						node2.AddChild(node4);
						{
							Assignment_bt_node_test_circular_ut_0_node3 node3 = new Assignment_bt_node_test_circular_ut_0_node3();
							node3.SetClassNameString("Assignment");
							node3.SetId(3);
#if !BEHAVIAC_RELEASE
							node3.SetAgentType("AgentNodeTest");
#endif
							node4.AddChild(node3);
							node4.SetHasEvents(node4.HasEvents() | node3.HasEvents());
						}
						{
							ReferencedBehavior_bt_node_test_circular_ut_0_node6 node6 = new ReferencedBehavior_bt_node_test_circular_ut_0_node6();
							node6.SetClassNameString("ReferencedBehavior");
							node6.SetId(6);
#if !BEHAVIAC_RELEASE
							node6.SetAgentType("AgentNodeTest");
#endif
							node4.AddChild(node6);
							node4.SetHasEvents(node4.HasEvents() | node6.HasEvents());
						}
						node2.SetHasEvents(node2.HasEvents() | node4.HasEvents());
					}
					node0.SetHasEvents(node0.HasEvents() | node2.HasEvents());
				}
				{
					Compute_bt_node_test_circular_ut_0_node1 node1 = new Compute_bt_node_test_circular_ut_0_node1();
					node1.SetClassNameString("Compute");
					node1.SetId(1);
#if !BEHAVIAC_RELEASE
					node1.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node1);
					node0.SetHasEvents(node0.HasEvents() | node1.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node0.HasEvents());
			}
			return true;
		}
예제 #24
0
 public static bool build_behavior_tree(BehaviorTree bt)
 {
     bt.SetClassNameString("BehaviorTree");
     bt.SetId(-1);
     bt.SetName("Tank_Agressive");
     #if !BEHAVIAC_RELEASE
     bt.SetAgentType("Player");
     #endif
     // pars
     bt.AddPar("UnityEngine.Vector3", "parT_NavTargetPosition", "{kEpsilon=0;x=0;y=0;z=0;}", "");
     bt.AddPar("Player", "parIn_Self", "null", "");
     bt.AddPar("float", "parT_RotateAngle", "0", "");
     bt.AddPar("behaviac.Agent", "parT_nearestEnemy", "null", "");
     bt.AddPar("UnityEngine.Vector3", "parT_enemyPosition", "{kEpsilon=0;x=0;y=0;z=0;}", "");
     bt.AddPar("eMapDirection", "parT_TendencyDirection", "UNKNOWN", "");
     bt.AddPar("bool", "parT_CanReachToAward", "false", "");
     bt.AddPar("int", "parT_AwardID", "0", "");
     bt.AddPar("float", "parT_EnemyAzimuth_0", "0", "");
     bt.AddPar("eMapDirection", "parT_SafeMoveDirection", "UNKNOWN", "");
     bt.AddPar("eMapDirection", "parT_RandomMoveDirection", "UNKNOWN", "");
     bt.AddPar("bool", "parT_NavFailed", "false", "");
     bt.AddPar("float", "parT_EnemyAzimuth", "0", "");
     // children
     {
         DecoratorLoop_bt_Tank_Agressive_node2 node2 = new DecoratorLoop_bt_Tank_Agressive_node2();
         node2.SetClassNameString("DecoratorLoop");
         node2.SetId(2);
     #if !BEHAVIAC_RELEASE
         node2.SetAgentType("Player");
     #endif
         bt.AddChild(node2);
         {
             Parallel_bt_Tank_Agressive_node0 node0 = new Parallel_bt_Tank_Agressive_node0();
             node0.SetClassNameString("Parallel");
             node0.SetId(0);
     #if !BEHAVIAC_RELEASE
             node0.SetAgentType("Player");
     #endif
             node2.AddChild(node0);
             {
                 DecoratorAlwaysRunning_bt_Tank_Agressive_node38 node38 = new DecoratorAlwaysRunning_bt_Tank_Agressive_node38();
                 node38.SetClassNameString("DecoratorAlwaysRunning");
                 node38.SetId(38);
     #if !BEHAVIAC_RELEASE
                 node38.SetAgentType("Player");
     #endif
                 node0.AddChild(node38);
                 {
                     Selector node39 = new Selector();
                     node39.SetClassNameString("Selector");
                     node39.SetId(39);
     #if !BEHAVIAC_RELEASE
                     node39.SetAgentType("Player");
     #endif
                     node38.AddChild(node39);
                     {
                         DecoratorAlwaysFailure_bt_Tank_Agressive_node25 node25 = new DecoratorAlwaysFailure_bt_Tank_Agressive_node25();
                         node25.SetClassNameString("DecoratorAlwaysFailure");
                         node25.SetId(25);
     #if !BEHAVIAC_RELEASE
                         node25.SetAgentType("Player");
     #endif
                         node39.AddChild(node25);
                         {
                             Assignment_bt_Tank_Agressive_node26 node26 = new Assignment_bt_Tank_Agressive_node26();
                             node26.SetClassNameString("Assignment");
                             node26.SetId(26);
     #if !BEHAVIAC_RELEASE
                             node26.SetAgentType("Player");
     #endif
                             node25.AddChild(node26);
                             node25.SetHasEvents(node25.HasEvents() | node26.HasEvents());
                         }
                         node39.SetHasEvents(node39.HasEvents() | node25.HasEvents());
                     }
                     {
                         Sequence node22 = new Sequence();
                         node22.SetClassNameString("Sequence");
                         node22.SetId(22);
     #if !BEHAVIAC_RELEASE
                         node22.SetAgentType("Player");
     #endif
                         node39.AddChild(node22);
                         {
                             Assignment_bt_Tank_Agressive_node35 node35 = new Assignment_bt_Tank_Agressive_node35();
                             node35.SetClassNameString("Assignment");
                             node35.SetId(35);
     #if !BEHAVIAC_RELEASE
                             node35.SetAgentType("Player");
     #endif
                             node22.AddChild(node35);
                             node22.SetHasEvents(node22.HasEvents() | node35.HasEvents());
                         }
                         {
                             Condition_bt_Tank_Agressive_node34 node34 = new Condition_bt_Tank_Agressive_node34();
                             node34.SetClassNameString("Condition");
                             node34.SetId(34);
     #if !BEHAVIAC_RELEASE
                             node34.SetAgentType("Player");
     #endif
                             node22.AddChild(node34);
                             node22.SetHasEvents(node22.HasEvents() | node34.HasEvents());
                         }
                         {
                             Assignment_bt_Tank_Agressive_node37 node37 = new Assignment_bt_Tank_Agressive_node37();
                             node37.SetClassNameString("Assignment");
                             node37.SetId(37);
     #if !BEHAVIAC_RELEASE
                             node37.SetAgentType("Player");
     #endif
                             node22.AddChild(node37);
                             node22.SetHasEvents(node22.HasEvents() | node37.HasEvents());
                         }
                         {
                             Action_bt_Tank_Agressive_node24 node24 = new Action_bt_Tank_Agressive_node24();
                             node24.SetClassNameString("Action");
                             node24.SetId(24);
     #if !BEHAVIAC_RELEASE
                             node24.SetAgentType("Player");
     #endif
                             node22.AddChild(node24);
                             node22.SetHasEvents(node22.HasEvents() | node24.HasEvents());
                         }
                         {
                             Action_bt_Tank_Agressive_node5 node5 = new Action_bt_Tank_Agressive_node5();
                             node5.SetClassNameString("Action");
                             node5.SetId(5);
     #if !BEHAVIAC_RELEASE
                             node5.SetAgentType("Player");
     #endif
                             node22.AddChild(node5);
                             node22.SetHasEvents(node22.HasEvents() | node5.HasEvents());
                         }
                         node39.SetHasEvents(node39.HasEvents() | node22.HasEvents());
                     }
                     {
                         Parallel_bt_Tank_Agressive_node15 node15 = new Parallel_bt_Tank_Agressive_node15();
                         node15.SetClassNameString("Parallel");
                         node15.SetId(15);
     #if !BEHAVIAC_RELEASE
                         node15.SetAgentType("Player");
     #endif
                         node39.AddChild(node15);
                         {
                             DecoratorNot_bt_Tank_Agressive_node21 node21 = new DecoratorNot_bt_Tank_Agressive_node21();
                             node21.SetClassNameString("DecoratorNot");
                             node21.SetId(21);
     #if !BEHAVIAC_RELEASE
                             node21.SetAgentType("Player");
     #endif
                             node15.AddChild(node21);
                             {
                                 Sequence node8 = new Sequence();
                                 node8.SetClassNameString("Sequence");
                                 node8.SetId(8);
     #if !BEHAVIAC_RELEASE
                                 node8.SetAgentType("Player");
     #endif
                                 node21.AddChild(node8);
                                 {
                                     Wait_bt_Tank_Agressive_node19 node19 = new Wait_bt_Tank_Agressive_node19();
                                     node19.SetClassNameString("Wait");
                                     node19.SetId(19);
     #if !BEHAVIAC_RELEASE
                                     node19.SetAgentType("Player");
     #endif
                                     node8.AddChild(node19);
                                     node8.SetHasEvents(node8.HasEvents() | node19.HasEvents());
                                 }
                                 {
                                     Assignment_bt_Tank_Agressive_node20 node20 = new Assignment_bt_Tank_Agressive_node20();
                                     node20.SetClassNameString("Assignment");
                                     node20.SetId(20);
     #if !BEHAVIAC_RELEASE
                                     node20.SetAgentType("Player");
     #endif
                                     node8.AddChild(node20);
                                     node8.SetHasEvents(node8.HasEvents() | node20.HasEvents());
                                 }
                                 node21.SetHasEvents(node21.HasEvents() | node8.HasEvents());
                             }
                             node15.SetHasEvents(node15.HasEvents() | node21.HasEvents());
                         }
                         {
                             Sequence node3 = new Sequence();
                             node3.SetClassNameString("Sequence");
                             node3.SetId(3);
     #if !BEHAVIAC_RELEASE
                             node3.SetAgentType("Player");
     #endif
                             node15.AddChild(node3);
                             {
                                 Assignment_bt_Tank_Agressive_node4 node4 = new Assignment_bt_Tank_Agressive_node4();
                                 node4.SetClassNameString("Assignment");
                                 node4.SetId(4);
     #if !BEHAVIAC_RELEASE
                                 node4.SetAgentType("Player");
     #endif
                                 node3.AddChild(node4);
                                 node3.SetHasEvents(node3.HasEvents() | node4.HasEvents());
                             }
                             {
                                 Assignment_bt_Tank_Agressive_node7 node7 = new Assignment_bt_Tank_Agressive_node7();
                                 node7.SetClassNameString("Assignment");
                                 node7.SetId(7);
     #if !BEHAVIAC_RELEASE
                                 node7.SetAgentType("Player");
     #endif
                                 node3.AddChild(node7);
                                 node3.SetHasEvents(node3.HasEvents() | node7.HasEvents());
                             }
                             {
                                 Action_bt_Tank_Agressive_node33 node33 = new Action_bt_Tank_Agressive_node33();
                                 node33.SetClassNameString("Action");
                                 node33.SetId(33);
     #if !BEHAVIAC_RELEASE
                                 node33.SetAgentType("Player");
     #endif
                                 node3.AddChild(node33);
                                 node3.SetHasEvents(node3.HasEvents() | node33.HasEvents());
                             }
                             {
                                 Action_bt_Tank_Agressive_node13 node13 = new Action_bt_Tank_Agressive_node13();
                                 node13.SetClassNameString("Action");
                                 node13.SetId(13);
     #if !BEHAVIAC_RELEASE
                                 node13.SetAgentType("Player");
     #endif
                                 node3.AddChild(node13);
                                 node3.SetHasEvents(node3.HasEvents() | node13.HasEvents());
                             }
                             node15.SetHasEvents(node15.HasEvents() | node3.HasEvents());
                         }
                         node39.SetHasEvents(node39.HasEvents() | node15.HasEvents());
                     }
                     {
                         Sequence node23 = new Sequence();
                         node23.SetClassNameString("Sequence");
                         node23.SetId(23);
     #if !BEHAVIAC_RELEASE
                         node23.SetAgentType("Player");
     #endif
                         node39.AddChild(node23);
                         {
                             Condition_bt_Tank_Agressive_node6 node6 = new Condition_bt_Tank_Agressive_node6();
                             node6.SetClassNameString("Condition");
                             node6.SetId(6);
     #if !BEHAVIAC_RELEASE
                             node6.SetAgentType("Player");
     #endif
                             node23.AddChild(node6);
                             node23.SetHasEvents(node23.HasEvents() | node6.HasEvents());
                         }
                         {
                             Parallel_bt_Tank_Agressive_node1 node1 = new Parallel_bt_Tank_Agressive_node1();
                             node1.SetClassNameString("Parallel");
                             node1.SetId(1);
     #if !BEHAVIAC_RELEASE
                             node1.SetAgentType("Player");
     #endif
                             node23.AddChild(node1);
                             {
                                 Sequence node12 = new Sequence();
                                 node12.SetClassNameString("Sequence");
                                 node12.SetId(12);
     #if !BEHAVIAC_RELEASE
                                 node12.SetAgentType("Player");
     #endif
                                 node1.AddChild(node12);
                                 {
                                     SelectorStochastic_bt_Tank_Agressive_node9 node9 = new SelectorStochastic_bt_Tank_Agressive_node9();
                                     node9.SetClassNameString("SelectorStochastic");
                                     node9.SetId(9);
     #if !BEHAVIAC_RELEASE
                                     node9.SetAgentType("Player");
     #endif
                                     node12.AddChild(node9);
                                     {
                                         Assignment_bt_Tank_Agressive_node36 node36 = new Assignment_bt_Tank_Agressive_node36();
                                         node36.SetClassNameString("Assignment");
                                         node36.SetId(36);
     #if !BEHAVIAC_RELEASE
                                         node36.SetAgentType("Player");
     #endif
                                         node9.AddChild(node36);
                                         node9.SetHasEvents(node9.HasEvents() | node36.HasEvents());
                                     }
                                     {
                                         Assignment_bt_Tank_Agressive_node11 node11 = new Assignment_bt_Tank_Agressive_node11();
                                         node11.SetClassNameString("Assignment");
                                         node11.SetId(11);
     #if !BEHAVIAC_RELEASE
                                         node11.SetAgentType("Player");
     #endif
                                         node9.AddChild(node11);
                                         node9.SetHasEvents(node9.HasEvents() | node11.HasEvents());
                                     }
                                     {
                                         Assignment_bt_Tank_Agressive_node14 node14 = new Assignment_bt_Tank_Agressive_node14();
                                         node14.SetClassNameString("Assignment");
                                         node14.SetId(14);
     #if !BEHAVIAC_RELEASE
                                         node14.SetAgentType("Player");
     #endif
                                         node9.AddChild(node14);
                                         node9.SetHasEvents(node9.HasEvents() | node14.HasEvents());
                                     }
                                     {
                                         Assignment_bt_Tank_Agressive_node16 node16 = new Assignment_bt_Tank_Agressive_node16();
                                         node16.SetClassNameString("Assignment");
                                         node16.SetId(16);
     #if !BEHAVIAC_RELEASE
                                         node16.SetAgentType("Player");
     #endif
                                         node9.AddChild(node16);
                                         node9.SetHasEvents(node9.HasEvents() | node16.HasEvents());
                                     }
                                     node12.SetHasEvents(node12.HasEvents() | node9.HasEvents());
                                 }
                                 {
                                     Wait_bt_Tank_Agressive_node17 node17 = new Wait_bt_Tank_Agressive_node17();
                                     node17.SetClassNameString("Wait");
                                     node17.SetId(17);
     #if !BEHAVIAC_RELEASE
                                     node17.SetAgentType("Player");
     #endif
                                     node12.AddChild(node17);
                                     node12.SetHasEvents(node12.HasEvents() | node17.HasEvents());
                                 }
                                 node1.SetHasEvents(node1.HasEvents() | node12.HasEvents());
                             }
                             {
                                 Sequence node49 = new Sequence();
                                 node49.SetClassNameString("Sequence");
                                 node49.SetId(49);
     #if !BEHAVIAC_RELEASE
                                 node49.SetAgentType("Player");
     #endif
                                 node1.AddChild(node49);
                                 {
                                     Assignment_bt_Tank_Agressive_node18 node18 = new Assignment_bt_Tank_Agressive_node18();
                                     node18.SetClassNameString("Assignment");
                                     node18.SetId(18);
     #if !BEHAVIAC_RELEASE
                                     node18.SetAgentType("Player");
     #endif
                                     node49.AddChild(node18);
                                     node49.SetHasEvents(node49.HasEvents() | node18.HasEvents());
                                 }
                                 {
                                     Action_bt_Tank_Agressive_node27 node27 = new Action_bt_Tank_Agressive_node27();
                                     node27.SetClassNameString("Action");
                                     node27.SetId(27);
     #if !BEHAVIAC_RELEASE
                                     node27.SetAgentType("Player");
     #endif
                                     node49.AddChild(node27);
                                     node49.SetHasEvents(node49.HasEvents() | node27.HasEvents());
                                 }
                                 node1.SetHasEvents(node1.HasEvents() | node49.HasEvents());
                             }
                             node23.SetHasEvents(node23.HasEvents() | node1.HasEvents());
                         }
                         node39.SetHasEvents(node39.HasEvents() | node23.HasEvents());
                     }
                     node38.SetHasEvents(node38.HasEvents() | node39.HasEvents());
                 }
                 node0.SetHasEvents(node0.HasEvents() | node38.HasEvents());
             }
             {
                 DecoratorAlwaysRunning_bt_Tank_Agressive_node10 node10 = new DecoratorAlwaysRunning_bt_Tank_Agressive_node10();
                 node10.SetClassNameString("DecoratorAlwaysRunning");
                 node10.SetId(10);
     #if !BEHAVIAC_RELEASE
                 node10.SetAgentType("Player");
     #endif
                 node0.AddChild(node10);
                 {
                     Sequence node28 = new Sequence();
                     node28.SetClassNameString("Sequence");
                     node28.SetId(28);
     #if !BEHAVIAC_RELEASE
                     node28.SetAgentType("Player");
     #endif
                     node10.AddChild(node28);
                     {
                         Assignment_bt_Tank_Agressive_node29 node29 = new Assignment_bt_Tank_Agressive_node29();
                         node29.SetClassNameString("Assignment");
                         node29.SetId(29);
     #if !BEHAVIAC_RELEASE
                         node29.SetAgentType("Player");
     #endif
                         node28.AddChild(node29);
                         node28.SetHasEvents(node28.HasEvents() | node29.HasEvents());
                     }
                     {
                         Condition_bt_Tank_Agressive_node30 node30 = new Condition_bt_Tank_Agressive_node30();
                         node30.SetClassNameString("Condition");
                         node30.SetId(30);
     #if !BEHAVIAC_RELEASE
                         node30.SetAgentType("Player");
     #endif
                         node28.AddChild(node30);
                         node28.SetHasEvents(node28.HasEvents() | node30.HasEvents());
                     }
                     {
                         Action_bt_Tank_Agressive_node31 node31 = new Action_bt_Tank_Agressive_node31();
                         node31.SetClassNameString("Action");
                         node31.SetId(31);
     #if !BEHAVIAC_RELEASE
                         node31.SetAgentType("Player");
     #endif
                         node28.AddChild(node31);
                         node28.SetHasEvents(node28.HasEvents() | node31.HasEvents());
                     }
                     {
                         Action_bt_Tank_Agressive_node32 node32 = new Action_bt_Tank_Agressive_node32();
                         node32.SetClassNameString("Action");
                         node32.SetId(32);
     #if !BEHAVIAC_RELEASE
                         node32.SetAgentType("Player");
     #endif
                         node28.AddChild(node32);
                         node28.SetHasEvents(node28.HasEvents() | node32.HasEvents());
                     }
                     node10.SetHasEvents(node10.HasEvents() | node28.HasEvents());
                 }
                 node0.SetHasEvents(node0.HasEvents() | node10.HasEvents());
             }
             node2.SetHasEvents(node2.HasEvents() | node0.HasEvents());
         }
         bt.SetHasEvents(bt.HasEvents() | node2.HasEvents());
     }
     return true;
 }
예제 #25
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("node_test/decoration_countlimit_ut_2");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("AgentNodeTest");
#endif
			// children
			{
				Selector node0 = new Selector();
				node0.SetClassNameString("Selector");
				node0.SetId(0);
#if !BEHAVIAC_RELEASE
				node0.SetAgentType("AgentNodeTest");
#endif
				bt.AddChild(node0);
				{
					DecoratorCountLimit_bt_node_test_decoration_countlimit_ut_2_node1 node1 = new DecoratorCountLimit_bt_node_test_decoration_countlimit_ut_2_node1();
					node1.SetClassNameString("DecoratorCountLimit");
					node1.SetId(1);
#if !BEHAVIAC_RELEASE
					node1.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node1);
					{
						And node4 = new And();
						node4.SetClassNameString("And");
						node4.SetId(4);
#if !BEHAVIAC_RELEASE
						node4.SetAgentType("AgentNodeTest");
#endif
						node1.SetCustomCondition(node4);
						{
							Condition_bt_node_test_decoration_countlimit_ut_2_node5 node5 = new Condition_bt_node_test_decoration_countlimit_ut_2_node5();
							node5.SetClassNameString("Condition");
							node5.SetId(5);
#if !BEHAVIAC_RELEASE
							node5.SetAgentType("AgentNodeTest");
#endif
							node4.AddChild(node5);
							node4.SetHasEvents(node4.HasEvents() | node5.HasEvents());
						}
						{
							Condition_bt_node_test_decoration_countlimit_ut_2_node6 node6 = new Condition_bt_node_test_decoration_countlimit_ut_2_node6();
							node6.SetClassNameString("Condition");
							node6.SetId(6);
#if !BEHAVIAC_RELEASE
							node6.SetAgentType("AgentNodeTest");
#endif
							node4.AddChild(node6);
							node4.SetHasEvents(node4.HasEvents() | node6.HasEvents());
						}
						node1.SetHasEvents(node1.HasEvents() | node4.HasEvents());
					}
					{
						Action_bt_node_test_decoration_countlimit_ut_2_node2 node2 = new Action_bt_node_test_decoration_countlimit_ut_2_node2();
						node2.SetClassNameString("Action");
						node2.SetId(2);
#if !BEHAVIAC_RELEASE
						node2.SetAgentType("AgentNodeTest");
#endif
						node1.AddChild(node2);
						node1.SetHasEvents(node1.HasEvents() | node2.HasEvents());
					}
					node0.SetHasEvents(node0.HasEvents() | node1.HasEvents());
				}
				{
					Action_bt_node_test_decoration_countlimit_ut_2_node3 node3 = new Action_bt_node_test_decoration_countlimit_ut_2_node3();
					node3.SetClassNameString("Action");
					node3.SetId(3);
#if !BEHAVIAC_RELEASE
					node3.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node3);
					node0.SetHasEvents(node0.HasEvents() | node3.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node0.HasEvents());
			}
			return true;
		}
예제 #26
0
 public static bool build_behavior_tree(BehaviorTree bt)
 {
     bt.SetClassNameString("BehaviorTree");
     bt.SetId(-1);
     bt.SetName("Tank_Destroy_Enemy");
     #if !BEHAVIAC_RELEASE
     bt.SetAgentType("Player");
     #endif
     // pars
     bt.AddPar("UnityEngine.Vector3", "parT_enemyPosition", "{kEpsilon=0;x=0;y=0;z=0;}", "");
     bt.AddPar("behaviac.Agent", "parT_nearestEnemy", "null", "");
     // children
     {
         DecoratorAlwaysRunning_bt_Tank_Destroy_Enemy_node10 node10 = new DecoratorAlwaysRunning_bt_Tank_Destroy_Enemy_node10();
         node10.SetClassNameString("DecoratorAlwaysRunning");
         node10.SetId(10);
     #if !BEHAVIAC_RELEASE
         node10.SetAgentType("Player");
     #endif
         bt.AddChild(node10);
         {
             Selector node11 = new Selector();
             node11.SetClassNameString("Selector");
             node11.SetId(11);
     #if !BEHAVIAC_RELEASE
             node11.SetAgentType("Player");
     #endif
             node10.AddChild(node11);
             {
                 Sequence node2 = new Sequence();
                 node2.SetClassNameString("Sequence");
                 node2.SetId(2);
     #if !BEHAVIAC_RELEASE
                 node2.SetAgentType("Player");
     #endif
                 node11.AddChild(node2);
                 {
                     Assignment_bt_Tank_Destroy_Enemy_node5 node5 = new Assignment_bt_Tank_Destroy_Enemy_node5();
                     node5.SetClassNameString("Assignment");
                     node5.SetId(5);
     #if !BEHAVIAC_RELEASE
                     node5.SetAgentType("Player");
     #endif
                     node2.AddChild(node5);
                     node2.SetHasEvents(node2.HasEvents() | node5.HasEvents());
                 }
                 {
                     Condition_bt_Tank_Destroy_Enemy_node9 node9 = new Condition_bt_Tank_Destroy_Enemy_node9();
                     node9.SetClassNameString("Condition");
                     node9.SetId(9);
     #if !BEHAVIAC_RELEASE
                     node9.SetAgentType("Player");
     #endif
                     node2.AddChild(node9);
                     node2.SetHasEvents(node2.HasEvents() | node9.HasEvents());
                 }
                 {
                     Assignment_bt_Tank_Destroy_Enemy_node7 node7 = new Assignment_bt_Tank_Destroy_Enemy_node7();
                     node7.SetClassNameString("Assignment");
                     node7.SetId(7);
     #if !BEHAVIAC_RELEASE
                     node7.SetAgentType("Player");
     #endif
                     node2.AddChild(node7);
                     node2.SetHasEvents(node2.HasEvents() | node7.HasEvents());
                 }
                 {
                     Action_bt_Tank_Destroy_Enemy_node8 node8 = new Action_bt_Tank_Destroy_Enemy_node8();
                     node8.SetClassNameString("Action");
                     node8.SetId(8);
     #if !BEHAVIAC_RELEASE
                     node8.SetAgentType("Player");
     #endif
                     node2.AddChild(node8);
                     node2.SetHasEvents(node2.HasEvents() | node8.HasEvents());
                 }
                 {
                     Action_bt_Tank_Destroy_Enemy_node6 node6 = new Action_bt_Tank_Destroy_Enemy_node6();
                     node6.SetClassNameString("Action");
                     node6.SetId(6);
     #if !BEHAVIAC_RELEASE
                     node6.SetAgentType("Player");
     #endif
                     node2.AddChild(node6);
                     node2.SetHasEvents(node2.HasEvents() | node6.HasEvents());
                 }
                 node11.SetHasEvents(node11.HasEvents() | node2.HasEvents());
             }
             {
                 Sequence node0 = new Sequence();
                 node0.SetClassNameString("Sequence");
                 node0.SetId(0);
     #if !BEHAVIAC_RELEASE
                 node0.SetAgentType("Player");
     #endif
                 node11.AddChild(node0);
                 {
                     Condition_bt_Tank_Destroy_Enemy_node12 node12 = new Condition_bt_Tank_Destroy_Enemy_node12();
                     node12.SetClassNameString("Condition");
                     node12.SetId(12);
     #if !BEHAVIAC_RELEASE
                     node12.SetAgentType("Player");
     #endif
                     node0.AddChild(node12);
                     node0.SetHasEvents(node0.HasEvents() | node12.HasEvents());
                 }
                 {
                     Action_bt_Tank_Destroy_Enemy_node1 node1 = new Action_bt_Tank_Destroy_Enemy_node1();
                     node1.SetClassNameString("Action");
                     node1.SetId(1);
     #if !BEHAVIAC_RELEASE
                     node1.SetAgentType("Player");
     #endif
                     node0.AddChild(node1);
                     node0.SetHasEvents(node0.HasEvents() | node1.HasEvents());
                 }
                 {
                     Action_bt_Tank_Destroy_Enemy_node3 node3 = new Action_bt_Tank_Destroy_Enemy_node3();
                     node3.SetClassNameString("Action");
                     node3.SetId(3);
     #if !BEHAVIAC_RELEASE
                     node3.SetAgentType("Player");
     #endif
                     node0.AddChild(node3);
                     node0.SetHasEvents(node0.HasEvents() | node3.HasEvents());
                 }
                 {
                     Action_bt_Tank_Destroy_Enemy_node4 node4 = new Action_bt_Tank_Destroy_Enemy_node4();
                     node4.SetClassNameString("Action");
                     node4.SetId(4);
     #if !BEHAVIAC_RELEASE
                     node4.SetAgentType("Player");
     #endif
                     node0.AddChild(node4);
                     node0.SetHasEvents(node0.HasEvents() | node4.HasEvents());
                 }
                 node11.SetHasEvents(node11.HasEvents() | node0.HasEvents());
             }
             node10.SetHasEvents(node10.HasEvents() | node11.HasEvents());
         }
         bt.SetHasEvents(bt.HasEvents() | node10.HasEvents());
     }
     return true;
 }
예제 #27
0
        public static bool build_behavior_tree(BehaviorTree bt)
        {
            bt.SetClassNameString("BehaviorTree");
            bt.SetId(-1);
            bt.SetName("WrapperAI/Monster/BTMonsterPassiveThief");
            bt.AddPar("uint", "p_targetID", "0", string.Empty);
            bt.AddPar("int", "p_srchRange", "0", string.Empty);
            bt.AddPar("uint", "p_selfID", "0", string.Empty);
            bt.AddPar("UnityEngine.Vector3", "p_randomPos", "{kEpsilon=0;x=0;y=0;z=0;}", string.Empty);
            Sequence pChild = new Sequence();

            pChild.SetClassNameString("Sequence");
            pChild.SetId(0);
            bt.AddChild(pChild);
            Assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node98 _node = new Assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node98();

            _node.SetClassNameString("Assignment");
            _node.SetId(0x62);
            pChild.AddChild(_node);
            pChild.SetHasEvents(pChild.HasEvents() | _node.HasEvents());
            Assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node48 _node2 = new Assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node48();

            _node2.SetClassNameString("Assignment");
            _node2.SetId(0x30);
            pChild.AddChild(_node2);
            pChild.SetHasEvents(pChild.HasEvents() | _node2.HasEvents());
            Assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node11 _node3 = new Assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node11();

            _node3.SetClassNameString("Assignment");
            _node3.SetId(11);
            pChild.AddChild(_node3);
            pChild.SetHasEvents(pChild.HasEvents() | _node3.HasEvents());
            DecoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node14 _node4 = new DecoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node14();

            _node4.SetClassNameString("DecoratorLoop");
            _node4.SetId(14);
            pChild.AddChild(_node4);
            SelectorLoop loop = new SelectorLoop();

            loop.SetClassNameString("SelectorLoop");
            loop.SetId(1);
            _node4.AddChild(loop);
            WithPrecondition precondition = new WithPrecondition();

            precondition.SetClassNameString("WithPrecondition");
            precondition.SetId(60);
            loop.AddChild(precondition);
            Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node61 _node5 = new Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node61();

            _node5.SetClassNameString("Condition");
            _node5.SetId(0x3d);
            precondition.AddChild(_node5);
            precondition.SetHasEvents(precondition.HasEvents() | _node5.HasEvents());
            IfElse @else = new IfElse();

            @else.SetClassNameString("IfElse");
            @else.SetId(0xf5);
            precondition.AddChild(@else);
            Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node246 _node6 = new Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node246();

            _node6.SetClassNameString("Condition");
            _node6.SetId(0xf6);
            @else.AddChild(_node6);
            @else.SetHasEvents(@else.HasEvents() | _node6.HasEvents());
            IfElse else2 = new IfElse();

            else2.SetClassNameString("IfElse");
            else2.SetId(0x1b);
            @else.AddChild(else2);
            Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node28 _node7 = new Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node28();

            _node7.SetClassNameString("Condition");
            _node7.SetId(0x1c);
            else2.AddChild(_node7);
            else2.SetHasEvents(else2.HasEvents() | _node7.HasEvents());
            Sequence sequence2 = new Sequence();

            sequence2.SetClassNameString("Sequence");
            sequence2.SetId(0xf7);
            else2.AddChild(sequence2);
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node248 _node8 = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node248();

            _node8.SetClassNameString("Action");
            _node8.SetId(0xf8);
            sequence2.AddChild(_node8);
            sequence2.SetHasEvents(sequence2.HasEvents() | _node8.HasEvents());
            DecoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node66 _node9 = new DecoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node66();

            _node9.SetClassNameString("DecoratorLoop");
            _node9.SetId(0x42);
            sequence2.AddChild(_node9);
            Sequence sequence3 = new Sequence();

            sequence3.SetClassNameString("Sequence");
            sequence3.SetId(7);
            _node9.AddChild(sequence3);
            Selector selector = new Selector();

            selector.SetClassNameString("Selector");
            selector.SetId(15);
            sequence3.AddChild(selector);
            Sequence sequence4 = new Sequence();

            sequence4.SetClassNameString("Sequence");
            sequence4.SetId(0x11);
            selector.AddChild(sequence4);
            Assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node30 _node10 = new Assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node30();

            _node10.SetClassNameString("Assignment");
            _node10.SetId(30);
            sequence4.AddChild(_node10);
            sequence4.SetHasEvents(sequence4.HasEvents() | _node10.HasEvents());
            Assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node18 _node11 = new Assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node18();

            _node11.SetClassNameString("Assignment");
            _node11.SetId(0x12);
            sequence4.AddChild(_node11);
            sequence4.SetHasEvents(sequence4.HasEvents() | _node11.HasEvents());
            Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node20 _node12 = new Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node20();

            _node12.SetClassNameString("Condition");
            _node12.SetId(20);
            sequence4.AddChild(_node12);
            sequence4.SetHasEvents(sequence4.HasEvents() | _node12.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node26 _node13 = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node26();

            _node13.SetClassNameString("Action");
            _node13.SetId(0x1a);
            sequence4.AddChild(_node13);
            sequence4.SetHasEvents(sequence4.HasEvents() | _node13.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node21 _node14 = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node21();

            _node14.SetClassNameString("Action");
            _node14.SetId(0x15);
            sequence4.AddChild(_node14);
            sequence4.SetHasEvents(sequence4.HasEvents() | _node14.HasEvents());
            selector.SetHasEvents(selector.HasEvents() | sequence4.HasEvents());
            Sequence sequence5 = new Sequence();

            sequence5.SetClassNameString("Sequence");
            sequence5.SetId(0x44);
            selector.AddChild(sequence5);
            Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node69 _node15 = new Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node69();

            _node15.SetClassNameString("Condition");
            _node15.SetId(0x45);
            sequence5.AddChild(_node15);
            sequence5.SetHasEvents(sequence5.HasEvents() | _node15.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node231 _node16 = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node231();

            _node16.SetClassNameString("Action");
            _node16.SetId(0xe7);
            sequence5.AddChild(_node16);
            sequence5.SetHasEvents(sequence5.HasEvents() | _node16.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node232 _node17 = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node232();

            _node17.SetClassNameString("Action");
            _node17.SetId(0xe8);
            sequence5.AddChild(_node17);
            sequence5.SetHasEvents(sequence5.HasEvents() | _node17.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node233 _node18 = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node233();

            _node18.SetClassNameString("Action");
            _node18.SetId(0xe9);
            sequence5.AddChild(_node18);
            sequence5.SetHasEvents(sequence5.HasEvents() | _node18.HasEvents());
            Assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node234 _node19 = new Assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node234();

            _node19.SetClassNameString("Assignment");
            _node19.SetId(0xea);
            sequence5.AddChild(_node19);
            sequence5.SetHasEvents(sequence5.HasEvents() | _node19.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node32 _node20 = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node32();

            _node20.SetClassNameString("Action");
            _node20.SetId(0x20);
            sequence5.AddChild(_node20);
            sequence5.SetHasEvents(sequence5.HasEvents() | _node20.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node13 _node21 = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node13();

            _node21.SetClassNameString("Action");
            _node21.SetId(13);
            sequence5.AddChild(_node21);
            sequence5.SetHasEvents(sequence5.HasEvents() | _node21.HasEvents());
            selector.SetHasEvents(selector.HasEvents() | sequence5.HasEvents());
            sequence3.SetHasEvents(sequence3.HasEvents() | selector.HasEvents());
            WaitFrames_bt_WrapperAI_Monster_BTMonsterPassiveThief_node8 _node22 = new WaitFrames_bt_WrapperAI_Monster_BTMonsterPassiveThief_node8();

            _node22.SetClassNameString("WaitFrames");
            _node22.SetId(8);
            sequence3.AddChild(_node22);
            sequence3.SetHasEvents(sequence3.HasEvents() | _node22.HasEvents());
            _node9.SetHasEvents(_node9.HasEvents() | sequence3.HasEvents());
            sequence2.SetHasEvents(sequence2.HasEvents() | _node9.HasEvents());
            else2.SetHasEvents(else2.HasEvents() | sequence2.HasEvents());
            Noop noop = new Noop();

            noop.SetClassNameString("Noop");
            noop.SetId(0x1d);
            else2.AddChild(noop);
            else2.SetHasEvents(else2.HasEvents() | noop.HasEvents());
            @else.SetHasEvents(@else.HasEvents() | else2.HasEvents());
            Sequence sequence6 = new Sequence();

            sequence6.SetClassNameString("Sequence");
            sequence6.SetId(0xff);
            @else.AddChild(sequence6);
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node19 _node23 = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node19();

            _node23.SetClassNameString("Action");
            _node23.SetId(0x13);
            sequence6.AddChild(_node23);
            sequence6.SetHasEvents(sequence6.HasEvents() | _node23.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node256 _node24 = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node256();

            _node24.SetClassNameString("Action");
            _node24.SetId(0x100);
            sequence6.AddChild(_node24);
            sequence6.SetHasEvents(sequence6.HasEvents() | _node24.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node257 _node25 = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node257();

            _node25.SetClassNameString("Action");
            _node25.SetId(0x101);
            sequence6.AddChild(_node25);
            sequence6.SetHasEvents(sequence6.HasEvents() | _node25.HasEvents());
            @else.SetHasEvents(@else.HasEvents() | sequence6.HasEvents());
            precondition.SetHasEvents(precondition.HasEvents() | @else.HasEvents());
            loop.SetHasEvents(loop.HasEvents() | precondition.HasEvents());
            WithPrecondition precondition2 = new WithPrecondition();

            precondition2.SetClassNameString("WithPrecondition");
            precondition2.SetId(70);
            loop.AddChild(precondition2);
            Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node71 _node26 = new Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node71();

            _node26.SetClassNameString("Condition");
            _node26.SetId(0x47);
            precondition2.AddChild(_node26);
            precondition2.SetHasEvents(precondition2.HasEvents() | _node26.HasEvents());
            Sequence sequence7 = new Sequence();

            sequence7.SetClassNameString("Sequence");
            sequence7.SetId(12);
            precondition2.AddChild(sequence7);
            Assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node16 _node27 = new Assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node16();

            _node27.SetClassNameString("Assignment");
            _node27.SetId(0x10);
            sequence7.AddChild(_node27);
            sequence7.SetHasEvents(sequence7.HasEvents() | _node27.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node224 _node28 = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node224();

            _node28.SetClassNameString("Action");
            _node28.SetId(0xe0);
            sequence7.AddChild(_node28);
            sequence7.SetHasEvents(sequence7.HasEvents() | _node28.HasEvents());
            precondition2.SetHasEvents(precondition2.HasEvents() | sequence7.HasEvents());
            loop.SetHasEvents(loop.HasEvents() | precondition2.HasEvents());
            WithPrecondition precondition3 = new WithPrecondition();

            precondition3.SetClassNameString("WithPrecondition");
            precondition3.SetId(0x203);
            loop.AddChild(precondition3);
            Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node516 _node29 = new Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node516();

            _node29.SetClassNameString("Condition");
            _node29.SetId(0x204);
            precondition3.AddChild(_node29);
            precondition3.SetHasEvents(precondition3.HasEvents() | _node29.HasEvents());
            Sequence sequence8 = new Sequence();

            sequence8.SetClassNameString("Sequence");
            sequence8.SetId(0x205);
            precondition3.AddChild(sequence8);
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node518 _node30 = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node518();

            _node30.SetClassNameString("Action");
            _node30.SetId(0x206);
            sequence8.AddChild(_node30);
            sequence8.SetHasEvents(sequence8.HasEvents() | _node30.HasEvents());
            Assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node9 _node31 = new Assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node9();

            _node31.SetClassNameString("Assignment");
            _node31.SetId(9);
            sequence8.AddChild(_node31);
            sequence8.SetHasEvents(sequence8.HasEvents() | _node31.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node10 _node32 = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node10();

            _node32.SetClassNameString("Action");
            _node32.SetId(10);
            sequence8.AddChild(_node32);
            sequence8.SetHasEvents(sequence8.HasEvents() | _node32.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node538 _node33 = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node538();

            _node33.SetClassNameString("Action");
            _node33.SetId(0x21a);
            sequence8.AddChild(_node33);
            sequence8.SetHasEvents(sequence8.HasEvents() | _node33.HasEvents());
            precondition3.SetHasEvents(precondition3.HasEvents() | sequence8.HasEvents());
            loop.SetHasEvents(loop.HasEvents() | precondition3.HasEvents());
            WithPrecondition precondition4 = new WithPrecondition();

            precondition4.SetClassNameString("WithPrecondition");
            precondition4.SetId(0x18);
            loop.AddChild(precondition4);
            Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node25 _node34 = new Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node25();

            _node34.SetClassNameString("Condition");
            _node34.SetId(0x19);
            precondition4.AddChild(_node34);
            precondition4.SetHasEvents(precondition4.HasEvents() | _node34.HasEvents());
            Sequence sequence9 = new Sequence();

            sequence9.SetClassNameString("Sequence");
            sequence9.SetId(0x3b);
            precondition4.AddChild(sequence9);
            Selector selector2 = new Selector();

            selector2.SetClassNameString("Selector");
            selector2.SetId(0x1e7);
            sequence9.AddChild(selector2);
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node488 _node35 = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node488();

            _node35.SetClassNameString("Action");
            _node35.SetId(0x1e8);
            selector2.AddChild(_node35);
            selector2.SetHasEvents(selector2.HasEvents() | _node35.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node31 _node36 = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node31();

            _node36.SetClassNameString("Action");
            _node36.SetId(0x1f);
            selector2.AddChild(_node36);
            selector2.SetHasEvents(selector2.HasEvents() | _node36.HasEvents());
            sequence9.SetHasEvents(sequence9.HasEvents() | selector2.HasEvents());
            DecoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node65 _node37 = new DecoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node65();

            _node37.SetClassNameString("DecoratorLoop");
            _node37.SetId(0x41);
            sequence9.AddChild(_node37);
            Noop noop2 = new Noop();

            noop2.SetClassNameString("Noop");
            noop2.SetId(0x21);
            _node37.AddChild(noop2);
            _node37.SetHasEvents(_node37.HasEvents() | noop2.HasEvents());
            sequence9.SetHasEvents(sequence9.HasEvents() | _node37.HasEvents());
            precondition4.SetHasEvents(precondition4.HasEvents() | sequence9.HasEvents());
            loop.SetHasEvents(loop.HasEvents() | precondition4.HasEvents());
            WithPrecondition precondition5 = new WithPrecondition();

            precondition5.SetClassNameString("WithPrecondition");
            precondition5.SetId(0x22);
            loop.AddChild(precondition5);
            Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node40 _node38 = new Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node40();

            _node38.SetClassNameString("Condition");
            _node38.SetId(40);
            precondition5.AddChild(_node38);
            precondition5.SetHasEvents(precondition5.HasEvents() | _node38.HasEvents());
            Sequence sequence10 = new Sequence();

            sequence10.SetClassNameString("Sequence");
            sequence10.SetId(0x29);
            precondition5.AddChild(sequence10);
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node42 _node39 = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node42();

            _node39.SetClassNameString("Action");
            _node39.SetId(0x2a);
            sequence10.AddChild(_node39);
            sequence10.SetHasEvents(sequence10.HasEvents() | _node39.HasEvents());
            DecoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node43 _node40 = new DecoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node43();

            _node40.SetClassNameString("DecoratorLoop");
            _node40.SetId(0x2b);
            sequence10.AddChild(_node40);
            Noop noop3 = new Noop();

            noop3.SetClassNameString("Noop");
            noop3.SetId(0x1ca);
            _node40.AddChild(noop3);
            _node40.SetHasEvents(_node40.HasEvents() | noop3.HasEvents());
            sequence10.SetHasEvents(sequence10.HasEvents() | _node40.HasEvents());
            precondition5.SetHasEvents(precondition5.HasEvents() | sequence10.HasEvents());
            loop.SetHasEvents(loop.HasEvents() | precondition5.HasEvents());
            WithPrecondition precondition6 = new WithPrecondition();

            precondition6.SetClassNameString("WithPrecondition");
            precondition6.SetId(450);
            loop.AddChild(precondition6);
            Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node454 _node41 = new Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node454();

            _node41.SetClassNameString("Condition");
            _node41.SetId(0x1c6);
            precondition6.AddChild(_node41);
            precondition6.SetHasEvents(precondition6.HasEvents() | _node41.HasEvents());
            Sequence sequence11 = new Sequence();

            sequence11.SetClassNameString("Sequence");
            sequence11.SetId(0x1c7);
            precondition6.AddChild(sequence11);
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node456 _node42 = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node456();

            _node42.SetClassNameString("Action");
            _node42.SetId(0x1c8);
            sequence11.AddChild(_node42);
            sequence11.SetHasEvents(sequence11.HasEvents() | _node42.HasEvents());
            DecoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node457 _node43 = new DecoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node457();

            _node43.SetClassNameString("DecoratorLoop");
            _node43.SetId(0x1c9);
            sequence11.AddChild(_node43);
            Noop noop4 = new Noop();

            noop4.SetClassNameString("Noop");
            noop4.SetId(2);
            _node43.AddChild(noop4);
            _node43.SetHasEvents(_node43.HasEvents() | noop4.HasEvents());
            sequence11.SetHasEvents(sequence11.HasEvents() | _node43.HasEvents());
            precondition6.SetHasEvents(precondition6.HasEvents() | sequence11.HasEvents());
            loop.SetHasEvents(loop.HasEvents() | precondition6.HasEvents());
            _node4.SetHasEvents(_node4.HasEvents() | loop.HasEvents());
            pChild.SetHasEvents(pChild.HasEvents() | _node4.HasEvents());
            bt.SetHasEvents(bt.HasEvents() | pChild.HasEvents());
            return(true);
        }
예제 #28
0
        public static bool build_behavior_tree(BehaviorTree bt)
        {
            bt.SetClassNameString("BehaviorTree");
            bt.SetId(-1);
            bt.SetName("WrapperAI/Monster/BTMonsterPassiveThief");
            bt.AddPar("uint", "p_targetID", "0", string.Empty);
            bt.AddPar("int", "p_srchRange", "0", string.Empty);
            bt.AddPar("uint", "p_selfID", "0", string.Empty);
            bt.AddPar("UnityEngine.Vector3", "p_randomPos", "{kEpsilon=0;x=0;y=0;z=0;}", string.Empty);
            Sequence sequence = new Sequence();

            sequence.SetClassNameString("Sequence");
            sequence.SetId(0);
            bt.AddChild(sequence);
            Assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node98 assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node = new Assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node98();

            assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node.SetClassNameString("Assignment");
            assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node.SetId(98);
            sequence.AddChild(assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node);
            sequence.SetHasEvents(sequence.HasEvents() | assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node.HasEvents());
            Assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node48 assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node2 = new Assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node48();

            assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node2.SetClassNameString("Assignment");
            assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node2.SetId(48);
            sequence.AddChild(assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node2);
            sequence.SetHasEvents(sequence.HasEvents() | assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node2.HasEvents());
            Assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node11 assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node3 = new Assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node11();

            assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node3.SetClassNameString("Assignment");
            assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node3.SetId(11);
            sequence.AddChild(assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node3);
            sequence.SetHasEvents(sequence.HasEvents() | assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node3.HasEvents());
            DecoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node14 decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node = new DecoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node14();

            decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node.SetClassNameString("DecoratorLoop");
            decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node.SetId(14);
            sequence.AddChild(decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node);
            SelectorLoop selectorLoop = new SelectorLoop();

            selectorLoop.SetClassNameString("SelectorLoop");
            selectorLoop.SetId(1);
            decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node.AddChild(selectorLoop);
            WithPrecondition withPrecondition = new WithPrecondition();

            withPrecondition.SetClassNameString("WithPrecondition");
            withPrecondition.SetId(60);
            selectorLoop.AddChild(withPrecondition);
            Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node61 condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node = new Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node61();

            condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node.SetClassNameString("Condition");
            condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node.SetId(61);
            withPrecondition.AddChild(condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node);
            withPrecondition.SetHasEvents(withPrecondition.HasEvents() | condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node.HasEvents());
            IfElse ifElse = new IfElse();

            ifElse.SetClassNameString("IfElse");
            ifElse.SetId(245);
            withPrecondition.AddChild(ifElse);
            Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node246 condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node2 = new Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node246();

            condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node2.SetClassNameString("Condition");
            condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node2.SetId(246);
            ifElse.AddChild(condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node2);
            ifElse.SetHasEvents(ifElse.HasEvents() | condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node2.HasEvents());
            IfElse ifElse2 = new IfElse();

            ifElse2.SetClassNameString("IfElse");
            ifElse2.SetId(27);
            ifElse.AddChild(ifElse2);
            Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node28 condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node3 = new Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node28();

            condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node3.SetClassNameString("Condition");
            condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node3.SetId(28);
            ifElse2.AddChild(condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node3);
            ifElse2.SetHasEvents(ifElse2.HasEvents() | condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node3.HasEvents());
            Sequence sequence2 = new Sequence();

            sequence2.SetClassNameString("Sequence");
            sequence2.SetId(247);
            ifElse2.AddChild(sequence2);
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node248 action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node248();

            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node.SetClassNameString("Action");
            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node.SetId(248);
            sequence2.AddChild(action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node);
            sequence2.SetHasEvents(sequence2.HasEvents() | action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node.HasEvents());
            DecoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node66 decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node2 = new DecoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node66();

            decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node2.SetClassNameString("DecoratorLoop");
            decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node2.SetId(66);
            sequence2.AddChild(decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node2);
            Sequence sequence3 = new Sequence();

            sequence3.SetClassNameString("Sequence");
            sequence3.SetId(7);
            decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node2.AddChild(sequence3);
            Selector selector = new Selector();

            selector.SetClassNameString("Selector");
            selector.SetId(15);
            sequence3.AddChild(selector);
            Sequence sequence4 = new Sequence();

            sequence4.SetClassNameString("Sequence");
            sequence4.SetId(17);
            selector.AddChild(sequence4);
            Assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node30 assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node4 = new Assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node30();

            assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node4.SetClassNameString("Assignment");
            assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node4.SetId(30);
            sequence4.AddChild(assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node4);
            sequence4.SetHasEvents(sequence4.HasEvents() | assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node4.HasEvents());
            Assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node18 assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node5 = new Assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node18();

            assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node5.SetClassNameString("Assignment");
            assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node5.SetId(18);
            sequence4.AddChild(assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node5);
            sequence4.SetHasEvents(sequence4.HasEvents() | assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node5.HasEvents());
            Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node20 condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node4 = new Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node20();

            condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node4.SetClassNameString("Condition");
            condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node4.SetId(20);
            sequence4.AddChild(condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node4);
            sequence4.SetHasEvents(sequence4.HasEvents() | condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node4.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node26 action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node2 = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node26();

            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node2.SetClassNameString("Action");
            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node2.SetId(26);
            sequence4.AddChild(action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node2);
            sequence4.SetHasEvents(sequence4.HasEvents() | action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node2.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node21 action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node3 = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node21();

            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node3.SetClassNameString("Action");
            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node3.SetId(21);
            sequence4.AddChild(action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node3);
            sequence4.SetHasEvents(sequence4.HasEvents() | action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node3.HasEvents());
            selector.SetHasEvents(selector.HasEvents() | sequence4.HasEvents());
            Sequence sequence5 = new Sequence();

            sequence5.SetClassNameString("Sequence");
            sequence5.SetId(68);
            selector.AddChild(sequence5);
            Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node69 condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node5 = new Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node69();

            condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node5.SetClassNameString("Condition");
            condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node5.SetId(69);
            sequence5.AddChild(condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node5);
            sequence5.SetHasEvents(sequence5.HasEvents() | condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node5.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node231 action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node4 = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node231();

            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node4.SetClassNameString("Action");
            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node4.SetId(231);
            sequence5.AddChild(action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node4);
            sequence5.SetHasEvents(sequence5.HasEvents() | action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node4.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node232 action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node5 = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node232();

            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node5.SetClassNameString("Action");
            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node5.SetId(232);
            sequence5.AddChild(action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node5);
            sequence5.SetHasEvents(sequence5.HasEvents() | action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node5.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node233 action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node6 = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node233();

            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node6.SetClassNameString("Action");
            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node6.SetId(233);
            sequence5.AddChild(action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node6);
            sequence5.SetHasEvents(sequence5.HasEvents() | action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node6.HasEvents());
            Assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node234 assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node6 = new Assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node234();

            assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node6.SetClassNameString("Assignment");
            assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node6.SetId(234);
            sequence5.AddChild(assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node6);
            sequence5.SetHasEvents(sequence5.HasEvents() | assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node6.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node32 action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node7 = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node32();

            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node7.SetClassNameString("Action");
            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node7.SetId(32);
            sequence5.AddChild(action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node7);
            sequence5.SetHasEvents(sequence5.HasEvents() | action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node7.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node13 action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node8 = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node13();

            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node8.SetClassNameString("Action");
            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node8.SetId(13);
            sequence5.AddChild(action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node8);
            sequence5.SetHasEvents(sequence5.HasEvents() | action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node8.HasEvents());
            selector.SetHasEvents(selector.HasEvents() | sequence5.HasEvents());
            sequence3.SetHasEvents(sequence3.HasEvents() | selector.HasEvents());
            WaitFrames_bt_WrapperAI_Monster_BTMonsterPassiveThief_node8 waitFrames_bt_WrapperAI_Monster_BTMonsterPassiveThief_node = new WaitFrames_bt_WrapperAI_Monster_BTMonsterPassiveThief_node8();

            waitFrames_bt_WrapperAI_Monster_BTMonsterPassiveThief_node.SetClassNameString("WaitFrames");
            waitFrames_bt_WrapperAI_Monster_BTMonsterPassiveThief_node.SetId(8);
            sequence3.AddChild(waitFrames_bt_WrapperAI_Monster_BTMonsterPassiveThief_node);
            sequence3.SetHasEvents(sequence3.HasEvents() | waitFrames_bt_WrapperAI_Monster_BTMonsterPassiveThief_node.HasEvents());
            decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node2.SetHasEvents(decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node2.HasEvents() | sequence3.HasEvents());
            sequence2.SetHasEvents(sequence2.HasEvents() | decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node2.HasEvents());
            ifElse2.SetHasEvents(ifElse2.HasEvents() | sequence2.HasEvents());
            Noop noop = new Noop();

            noop.SetClassNameString("Noop");
            noop.SetId(29);
            ifElse2.AddChild(noop);
            ifElse2.SetHasEvents(ifElse2.HasEvents() | noop.HasEvents());
            ifElse.SetHasEvents(ifElse.HasEvents() | ifElse2.HasEvents());
            Sequence sequence6 = new Sequence();

            sequence6.SetClassNameString("Sequence");
            sequence6.SetId(255);
            ifElse.AddChild(sequence6);
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node19 action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node9 = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node19();

            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node9.SetClassNameString("Action");
            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node9.SetId(19);
            sequence6.AddChild(action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node9);
            sequence6.SetHasEvents(sequence6.HasEvents() | action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node9.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node256 action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node10 = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node256();

            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node10.SetClassNameString("Action");
            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node10.SetId(256);
            sequence6.AddChild(action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node10);
            sequence6.SetHasEvents(sequence6.HasEvents() | action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node10.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node257 action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node11 = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node257();

            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node11.SetClassNameString("Action");
            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node11.SetId(257);
            sequence6.AddChild(action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node11);
            sequence6.SetHasEvents(sequence6.HasEvents() | action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node11.HasEvents());
            ifElse.SetHasEvents(ifElse.HasEvents() | sequence6.HasEvents());
            withPrecondition.SetHasEvents(withPrecondition.HasEvents() | ifElse.HasEvents());
            selectorLoop.SetHasEvents(selectorLoop.HasEvents() | withPrecondition.HasEvents());
            WithPrecondition withPrecondition2 = new WithPrecondition();

            withPrecondition2.SetClassNameString("WithPrecondition");
            withPrecondition2.SetId(70);
            selectorLoop.AddChild(withPrecondition2);
            Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node71 condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node6 = new Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node71();

            condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node6.SetClassNameString("Condition");
            condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node6.SetId(71);
            withPrecondition2.AddChild(condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node6);
            withPrecondition2.SetHasEvents(withPrecondition2.HasEvents() | condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node6.HasEvents());
            Sequence sequence7 = new Sequence();

            sequence7.SetClassNameString("Sequence");
            sequence7.SetId(12);
            withPrecondition2.AddChild(sequence7);
            Assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node16 assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node7 = new Assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node16();

            assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node7.SetClassNameString("Assignment");
            assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node7.SetId(16);
            sequence7.AddChild(assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node7);
            sequence7.SetHasEvents(sequence7.HasEvents() | assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node7.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node224 action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node12 = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node224();

            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node12.SetClassNameString("Action");
            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node12.SetId(224);
            sequence7.AddChild(action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node12);
            sequence7.SetHasEvents(sequence7.HasEvents() | action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node12.HasEvents());
            withPrecondition2.SetHasEvents(withPrecondition2.HasEvents() | sequence7.HasEvents());
            selectorLoop.SetHasEvents(selectorLoop.HasEvents() | withPrecondition2.HasEvents());
            WithPrecondition withPrecondition3 = new WithPrecondition();

            withPrecondition3.SetClassNameString("WithPrecondition");
            withPrecondition3.SetId(515);
            selectorLoop.AddChild(withPrecondition3);
            Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node516 condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node7 = new Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node516();

            condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node7.SetClassNameString("Condition");
            condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node7.SetId(516);
            withPrecondition3.AddChild(condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node7);
            withPrecondition3.SetHasEvents(withPrecondition3.HasEvents() | condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node7.HasEvents());
            Sequence sequence8 = new Sequence();

            sequence8.SetClassNameString("Sequence");
            sequence8.SetId(517);
            withPrecondition3.AddChild(sequence8);
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node518 action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node13 = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node518();

            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node13.SetClassNameString("Action");
            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node13.SetId(518);
            sequence8.AddChild(action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node13);
            sequence8.SetHasEvents(sequence8.HasEvents() | action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node13.HasEvents());
            Assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node9 assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node8 = new Assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node9();

            assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node8.SetClassNameString("Assignment");
            assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node8.SetId(9);
            sequence8.AddChild(assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node8);
            sequence8.SetHasEvents(sequence8.HasEvents() | assignment_bt_WrapperAI_Monster_BTMonsterPassiveThief_node8.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node10 action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node14 = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node10();

            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node14.SetClassNameString("Action");
            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node14.SetId(10);
            sequence8.AddChild(action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node14);
            sequence8.SetHasEvents(sequence8.HasEvents() | action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node14.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node538 action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node15 = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node538();

            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node15.SetClassNameString("Action");
            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node15.SetId(538);
            sequence8.AddChild(action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node15);
            sequence8.SetHasEvents(sequence8.HasEvents() | action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node15.HasEvents());
            withPrecondition3.SetHasEvents(withPrecondition3.HasEvents() | sequence8.HasEvents());
            selectorLoop.SetHasEvents(selectorLoop.HasEvents() | withPrecondition3.HasEvents());
            WithPrecondition withPrecondition4 = new WithPrecondition();

            withPrecondition4.SetClassNameString("WithPrecondition");
            withPrecondition4.SetId(24);
            selectorLoop.AddChild(withPrecondition4);
            Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node25 condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node8 = new Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node25();

            condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node8.SetClassNameString("Condition");
            condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node8.SetId(25);
            withPrecondition4.AddChild(condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node8);
            withPrecondition4.SetHasEvents(withPrecondition4.HasEvents() | condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node8.HasEvents());
            Sequence sequence9 = new Sequence();

            sequence9.SetClassNameString("Sequence");
            sequence9.SetId(59);
            withPrecondition4.AddChild(sequence9);
            Selector selector2 = new Selector();

            selector2.SetClassNameString("Selector");
            selector2.SetId(487);
            sequence9.AddChild(selector2);
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node488 action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node16 = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node488();

            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node16.SetClassNameString("Action");
            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node16.SetId(488);
            selector2.AddChild(action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node16);
            selector2.SetHasEvents(selector2.HasEvents() | action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node16.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node31 action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node17 = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node31();

            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node17.SetClassNameString("Action");
            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node17.SetId(31);
            selector2.AddChild(action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node17);
            selector2.SetHasEvents(selector2.HasEvents() | action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node17.HasEvents());
            sequence9.SetHasEvents(sequence9.HasEvents() | selector2.HasEvents());
            DecoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node65 decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node3 = new DecoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node65();

            decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node3.SetClassNameString("DecoratorLoop");
            decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node3.SetId(65);
            sequence9.AddChild(decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node3);
            Noop noop2 = new Noop();

            noop2.SetClassNameString("Noop");
            noop2.SetId(33);
            decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node3.AddChild(noop2);
            decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node3.SetHasEvents(decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node3.HasEvents() | noop2.HasEvents());
            sequence9.SetHasEvents(sequence9.HasEvents() | decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node3.HasEvents());
            withPrecondition4.SetHasEvents(withPrecondition4.HasEvents() | sequence9.HasEvents());
            selectorLoop.SetHasEvents(selectorLoop.HasEvents() | withPrecondition4.HasEvents());
            WithPrecondition withPrecondition5 = new WithPrecondition();

            withPrecondition5.SetClassNameString("WithPrecondition");
            withPrecondition5.SetId(34);
            selectorLoop.AddChild(withPrecondition5);
            Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node40 condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node9 = new Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node40();

            condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node9.SetClassNameString("Condition");
            condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node9.SetId(40);
            withPrecondition5.AddChild(condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node9);
            withPrecondition5.SetHasEvents(withPrecondition5.HasEvents() | condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node9.HasEvents());
            Sequence sequence10 = new Sequence();

            sequence10.SetClassNameString("Sequence");
            sequence10.SetId(41);
            withPrecondition5.AddChild(sequence10);
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node42 action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node18 = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node42();

            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node18.SetClassNameString("Action");
            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node18.SetId(42);
            sequence10.AddChild(action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node18);
            sequence10.SetHasEvents(sequence10.HasEvents() | action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node18.HasEvents());
            DecoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node43 decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node4 = new DecoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node43();

            decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node4.SetClassNameString("DecoratorLoop");
            decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node4.SetId(43);
            sequence10.AddChild(decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node4);
            Noop noop3 = new Noop();

            noop3.SetClassNameString("Noop");
            noop3.SetId(458);
            decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node4.AddChild(noop3);
            decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node4.SetHasEvents(decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node4.HasEvents() | noop3.HasEvents());
            sequence10.SetHasEvents(sequence10.HasEvents() | decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node4.HasEvents());
            withPrecondition5.SetHasEvents(withPrecondition5.HasEvents() | sequence10.HasEvents());
            selectorLoop.SetHasEvents(selectorLoop.HasEvents() | withPrecondition5.HasEvents());
            WithPrecondition withPrecondition6 = new WithPrecondition();

            withPrecondition6.SetClassNameString("WithPrecondition");
            withPrecondition6.SetId(450);
            selectorLoop.AddChild(withPrecondition6);
            Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node454 condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node10 = new Condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node454();

            condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node10.SetClassNameString("Condition");
            condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node10.SetId(454);
            withPrecondition6.AddChild(condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node10);
            withPrecondition6.SetHasEvents(withPrecondition6.HasEvents() | condition_bt_WrapperAI_Monster_BTMonsterPassiveThief_node10.HasEvents());
            Sequence sequence11 = new Sequence();

            sequence11.SetClassNameString("Sequence");
            sequence11.SetId(455);
            withPrecondition6.AddChild(sequence11);
            Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node456 action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node19 = new Action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node456();

            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node19.SetClassNameString("Action");
            action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node19.SetId(456);
            sequence11.AddChild(action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node19);
            sequence11.SetHasEvents(sequence11.HasEvents() | action_bt_WrapperAI_Monster_BTMonsterPassiveThief_node19.HasEvents());
            DecoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node457 decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node5 = new DecoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node457();

            decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node5.SetClassNameString("DecoratorLoop");
            decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node5.SetId(457);
            sequence11.AddChild(decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node5);
            Noop noop4 = new Noop();

            noop4.SetClassNameString("Noop");
            noop4.SetId(2);
            decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node5.AddChild(noop4);
            decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node5.SetHasEvents(decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node5.HasEvents() | noop4.HasEvents());
            sequence11.SetHasEvents(sequence11.HasEvents() | decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node5.HasEvents());
            withPrecondition6.SetHasEvents(withPrecondition6.HasEvents() | sequence11.HasEvents());
            selectorLoop.SetHasEvents(selectorLoop.HasEvents() | withPrecondition6.HasEvents());
            decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node.SetHasEvents(decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node.HasEvents() | selectorLoop.HasEvents());
            sequence.SetHasEvents(sequence.HasEvents() | decoratorLoop_bt_WrapperAI_Monster_BTMonsterPassiveThief_node.HasEvents());
            bt.SetHasEvents(bt.HasEvents() | sequence.HasEvents());
            return(true);
        }