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);
            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());
            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_node = new Condition_bt_WrapperAI_TowerExampleInput_node12();

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

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

            ifElse.SetClassNameString("IfElse");
            ifElse.SetId(9);
            sequence2.AddChild(ifElse);
            Sequence sequence3 = new Sequence();

            sequence3.SetClassNameString("Sequence");
            sequence3.SetId(26);
            ifElse.AddChild(sequence3);
            Condition_bt_WrapperAI_TowerExampleInput_node15 condition_bt_WrapperAI_TowerExampleInput_node2 = new Condition_bt_WrapperAI_TowerExampleInput_node15();

            condition_bt_WrapperAI_TowerExampleInput_node2.SetClassNameString("Condition");
            condition_bt_WrapperAI_TowerExampleInput_node2.SetId(15);
            sequence3.AddChild(condition_bt_WrapperAI_TowerExampleInput_node2);
            sequence3.SetHasEvents(sequence3.HasEvents() | condition_bt_WrapperAI_TowerExampleInput_node2.HasEvents());
            Condition_bt_WrapperAI_TowerExampleInput_node27 condition_bt_WrapperAI_TowerExampleInput_node3 = new Condition_bt_WrapperAI_TowerExampleInput_node27();

            condition_bt_WrapperAI_TowerExampleInput_node3.SetClassNameString("Condition");
            condition_bt_WrapperAI_TowerExampleInput_node3.SetId(27);
            sequence3.AddChild(condition_bt_WrapperAI_TowerExampleInput_node3);
            sequence3.SetHasEvents(sequence3.HasEvents() | condition_bt_WrapperAI_TowerExampleInput_node3.HasEvents());
            ifElse.SetHasEvents(ifElse.HasEvents() | sequence3.HasEvents());
            Sequence sequence4 = new Sequence();

            sequence4.SetClassNameString("Sequence");
            sequence4.SetId(17);
            ifElse.AddChild(sequence4);
            Action_bt_WrapperAI_TowerExampleInput_node16 action_bt_WrapperAI_TowerExampleInput_node = new Action_bt_WrapperAI_TowerExampleInput_node16();

            action_bt_WrapperAI_TowerExampleInput_node.SetClassNameString("Action");
            action_bt_WrapperAI_TowerExampleInput_node.SetId(16);
            sequence4.AddChild(action_bt_WrapperAI_TowerExampleInput_node);
            sequence4.SetHasEvents(sequence4.HasEvents() | action_bt_WrapperAI_TowerExampleInput_node.HasEvents());
            Assignment_bt_WrapperAI_TowerExampleInput_node18 assignment_bt_WrapperAI_TowerExampleInput_node2 = new Assignment_bt_WrapperAI_TowerExampleInput_node18();

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

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

            sequence5.SetClassNameString("Sequence");
            sequence5.SetId(81);
            sequence2.AddChild(sequence5);
            IfElse ifElse2 = new IfElse();

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

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

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

            condition_bt_WrapperAI_TowerExampleInput_node5.SetClassNameString("Condition");
            condition_bt_WrapperAI_TowerExampleInput_node5.SetId(22);
            and.AddChild(condition_bt_WrapperAI_TowerExampleInput_node5);
            and.SetHasEvents(and.HasEvents() | condition_bt_WrapperAI_TowerExampleInput_node5.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 sequence6 = new Sequence();

            sequence6.SetClassNameString("Sequence");
            sequence6.SetId(24);
            ifElse2.AddChild(sequence6);
            Action_bt_WrapperAI_TowerExampleInput_node25 action_bt_WrapperAI_TowerExampleInput_node2 = new Action_bt_WrapperAI_TowerExampleInput_node25();

            action_bt_WrapperAI_TowerExampleInput_node2.SetClassNameString("Action");
            action_bt_WrapperAI_TowerExampleInput_node2.SetId(25);
            sequence6.AddChild(action_bt_WrapperAI_TowerExampleInput_node2);
            sequence6.SetHasEvents(sequence6.HasEvents() | action_bt_WrapperAI_TowerExampleInput_node2.HasEvents());
            Assignment_bt_WrapperAI_TowerExampleInput_node83 assignment_bt_WrapperAI_TowerExampleInput_node3 = new Assignment_bt_WrapperAI_TowerExampleInput_node83();

            assignment_bt_WrapperAI_TowerExampleInput_node3.SetClassNameString("Assignment");
            assignment_bt_WrapperAI_TowerExampleInput_node3.SetId(83);
            sequence6.AddChild(assignment_bt_WrapperAI_TowerExampleInput_node3);
            sequence6.SetHasEvents(sequence6.HasEvents() | assignment_bt_WrapperAI_TowerExampleInput_node3.HasEvents());
            ifElse2.SetHasEvents(ifElse2.HasEvents() | sequence6.HasEvents());
            sequence5.SetHasEvents(sequence5.HasEvents() | ifElse2.HasEvents());
            IfElse ifElse3 = new IfElse();

            ifElse3.SetClassNameString("IfElse");
            ifElse3.SetId(84);
            sequence5.AddChild(ifElse3);
            Condition_bt_WrapperAI_TowerExampleInput_node85 condition_bt_WrapperAI_TowerExampleInput_node6 = new Condition_bt_WrapperAI_TowerExampleInput_node85();

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

            sequence7.SetClassNameString("Sequence");
            sequence7.SetId(86);
            ifElse3.AddChild(sequence7);
            Action_bt_WrapperAI_TowerExampleInput_node140 action_bt_WrapperAI_TowerExampleInput_node3 = new Action_bt_WrapperAI_TowerExampleInput_node140();

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

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

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

            action_bt_WrapperAI_TowerExampleInput_node6.SetClassNameString("Action");
            action_bt_WrapperAI_TowerExampleInput_node6.SetId(91);
            sequence7.AddChild(action_bt_WrapperAI_TowerExampleInput_node6);
            sequence7.SetHasEvents(sequence7.HasEvents() | action_bt_WrapperAI_TowerExampleInput_node6.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);
            sequence7.AddChild(decoratorLoopUntil_bt_WrapperAI_TowerExampleInput_node);
            Condition_bt_WrapperAI_TowerExampleInput_node93 condition_bt_WrapperAI_TowerExampleInput_node7 = new Condition_bt_WrapperAI_TowerExampleInput_node93();

            condition_bt_WrapperAI_TowerExampleInput_node7.SetClassNameString("Condition");
            condition_bt_WrapperAI_TowerExampleInput_node7.SetId(93);
            decoratorLoopUntil_bt_WrapperAI_TowerExampleInput_node.AddChild(condition_bt_WrapperAI_TowerExampleInput_node7);
            decoratorLoopUntil_bt_WrapperAI_TowerExampleInput_node.SetHasEvents(decoratorLoopUntil_bt_WrapperAI_TowerExampleInput_node.HasEvents() | condition_bt_WrapperAI_TowerExampleInput_node7.HasEvents());
            sequence7.SetHasEvents(sequence7.HasEvents() | decoratorLoopUntil_bt_WrapperAI_TowerExampleInput_node.HasEvents());
            ifElse3.SetHasEvents(ifElse3.HasEvents() | sequence7.HasEvents());
            WaitFrames_bt_WrapperAI_TowerExampleInput_node5 waitFrames_bt_WrapperAI_TowerExampleInput_node = new WaitFrames_bt_WrapperAI_TowerExampleInput_node5();

            waitFrames_bt_WrapperAI_TowerExampleInput_node.SetClassNameString("WaitFrames");
            waitFrames_bt_WrapperAI_TowerExampleInput_node.SetId(5);
            ifElse3.AddChild(waitFrames_bt_WrapperAI_TowerExampleInput_node);
            ifElse3.SetHasEvents(ifElse3.HasEvents() | waitFrames_bt_WrapperAI_TowerExampleInput_node.HasEvents());
            sequence5.SetHasEvents(sequence5.HasEvents() | ifElse3.HasEvents());
            sequence2.SetHasEvents(sequence2.HasEvents() | sequence5.HasEvents());
            withPrecondition.SetHasEvents(withPrecondition.HasEvents() | sequence2.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_node8 = new Condition_bt_WrapperAI_TowerExampleInput_node3();

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

            sequence8.SetClassNameString("Sequence");
            sequence8.SetId(6);
            withPrecondition2.AddChild(sequence8);
            Action_bt_WrapperAI_TowerExampleInput_node4 action_bt_WrapperAI_TowerExampleInput_node7 = new Action_bt_WrapperAI_TowerExampleInput_node4();

            action_bt_WrapperAI_TowerExampleInput_node7.SetClassNameString("Action");
            action_bt_WrapperAI_TowerExampleInput_node7.SetId(4);
            sequence8.AddChild(action_bt_WrapperAI_TowerExampleInput_node7);
            sequence8.SetHasEvents(sequence8.HasEvents() | action_bt_WrapperAI_TowerExampleInput_node7.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);
            sequence8.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());
            sequence8.SetHasEvents(sequence8.HasEvents() | decoratorLoop_bt_WrapperAI_TowerExampleInput_node2.HasEvents());
            withPrecondition2.SetHasEvents(withPrecondition2.HasEvents() | sequence8.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);
        }
示例#2
0
        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);
            DecoratorLoop_bt_WrapperAI_TowerExampleInput_node14 pChild = new DecoratorLoop_bt_WrapperAI_TowerExampleInput_node14();

            pChild.SetClassNameString("DecoratorLoop");
            pChild.SetId(14);
            bt.AddChild(pChild);
            Sequence sequence = new Sequence();

            sequence.SetClassNameString("Sequence");
            sequence.SetId(0);
            pChild.AddChild(sequence);
            Assignment_bt_WrapperAI_TowerExampleInput_node82 _node2 = new Assignment_bt_WrapperAI_TowerExampleInput_node82();

            _node2.SetClassNameString("Assignment");
            _node2.SetId(0x52);
            sequence.AddChild(_node2);
            sequence.SetHasEvents(sequence.HasEvents() | _node2.HasEvents());
            SelectorLoop loop = new SelectorLoop();

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

            precondition.SetClassNameString("WithPrecondition");
            precondition.SetId(11);
            loop.AddChild(precondition);
            Condition_bt_WrapperAI_TowerExampleInput_node12 _node3 = new Condition_bt_WrapperAI_TowerExampleInput_node12();

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

            sequence2.SetClassNameString("Sequence");
            sequence2.SetId(13);
            precondition.AddChild(sequence2);
            IfElse @else = new IfElse();

            @else.SetClassNameString("IfElse");
            @else.SetId(9);
            sequence2.AddChild(@else);
            Sequence sequence3 = new Sequence();

            sequence3.SetClassNameString("Sequence");
            sequence3.SetId(0x1a);
            @else.AddChild(sequence3);
            Condition_bt_WrapperAI_TowerExampleInput_node15 _node4 = new Condition_bt_WrapperAI_TowerExampleInput_node15();

            _node4.SetClassNameString("Condition");
            _node4.SetId(15);
            sequence3.AddChild(_node4);
            sequence3.SetHasEvents(sequence3.HasEvents() | _node4.HasEvents());
            Condition_bt_WrapperAI_TowerExampleInput_node27 _node5 = new Condition_bt_WrapperAI_TowerExampleInput_node27();

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

            sequence4.SetClassNameString("Sequence");
            sequence4.SetId(0x11);
            @else.AddChild(sequence4);
            Action_bt_WrapperAI_TowerExampleInput_node16 _node6 = new Action_bt_WrapperAI_TowerExampleInput_node16();

            _node6.SetClassNameString("Action");
            _node6.SetId(0x10);
            sequence4.AddChild(_node6);
            sequence4.SetHasEvents(sequence4.HasEvents() | _node6.HasEvents());
            Assignment_bt_WrapperAI_TowerExampleInput_node18 _node7 = new Assignment_bt_WrapperAI_TowerExampleInput_node18();

            _node7.SetClassNameString("Assignment");
            _node7.SetId(0x12);
            sequence4.AddChild(_node7);
            sequence4.SetHasEvents(sequence4.HasEvents() | _node7.HasEvents());
            @else.SetHasEvents(@else.HasEvents() | sequence4.HasEvents());
            Noop noop = new Noop();

            noop.SetClassNameString("Noop");
            noop.SetId(0x13);
            @else.AddChild(noop);
            @else.SetHasEvents(@else.HasEvents() | noop.HasEvents());
            sequence2.SetHasEvents(sequence2.HasEvents() | @else.HasEvents());
            Sequence sequence5 = new Sequence();

            sequence5.SetClassNameString("Sequence");
            sequence5.SetId(0x51);
            sequence2.AddChild(sequence5);
            IfElse else2 = new IfElse();

            else2.SetClassNameString("IfElse");
            else2.SetId(10);
            sequence5.AddChild(else2);
            And and = new And();

            and.SetClassNameString("And");
            and.SetId(0x15);
            else2.AddChild(and);
            Condition_bt_WrapperAI_TowerExampleInput_node20 _node8 = new Condition_bt_WrapperAI_TowerExampleInput_node20();

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

            _node9.SetClassNameString("Condition");
            _node9.SetId(0x16);
            and.AddChild(_node9);
            and.SetHasEvents(and.HasEvents() | _node9.HasEvents());
            else2.SetHasEvents(else2.HasEvents() | and.HasEvents());
            Noop noop2 = new Noop();

            noop2.SetClassNameString("Noop");
            noop2.SetId(0x17);
            else2.AddChild(noop2);
            else2.SetHasEvents(else2.HasEvents() | noop2.HasEvents());
            Sequence sequence6 = new Sequence();

            sequence6.SetClassNameString("Sequence");
            sequence6.SetId(0x18);
            else2.AddChild(sequence6);
            Action_bt_WrapperAI_TowerExampleInput_node25 _node10 = new Action_bt_WrapperAI_TowerExampleInput_node25();

            _node10.SetClassNameString("Action");
            _node10.SetId(0x19);
            sequence6.AddChild(_node10);
            sequence6.SetHasEvents(sequence6.HasEvents() | _node10.HasEvents());
            Assignment_bt_WrapperAI_TowerExampleInput_node83 _node11 = new Assignment_bt_WrapperAI_TowerExampleInput_node83();

            _node11.SetClassNameString("Assignment");
            _node11.SetId(0x53);
            sequence6.AddChild(_node11);
            sequence6.SetHasEvents(sequence6.HasEvents() | _node11.HasEvents());
            else2.SetHasEvents(else2.HasEvents() | sequence6.HasEvents());
            sequence5.SetHasEvents(sequence5.HasEvents() | else2.HasEvents());
            IfElse else3 = new IfElse();

            else3.SetClassNameString("IfElse");
            else3.SetId(0x54);
            sequence5.AddChild(else3);
            Condition_bt_WrapperAI_TowerExampleInput_node85 _node12 = new Condition_bt_WrapperAI_TowerExampleInput_node85();

            _node12.SetClassNameString("Condition");
            _node12.SetId(0x55);
            else3.AddChild(_node12);
            else3.SetHasEvents(else3.HasEvents() | _node12.HasEvents());
            Sequence sequence7 = new Sequence();

            sequence7.SetClassNameString("Sequence");
            sequence7.SetId(0x56);
            else3.AddChild(sequence7);
            Action_bt_WrapperAI_TowerExampleInput_node140 _node13 = new Action_bt_WrapperAI_TowerExampleInput_node140();

            _node13.SetClassNameString("Action");
            _node13.SetId(140);
            sequence7.AddChild(_node13);
            sequence7.SetHasEvents(sequence7.HasEvents() | _node13.HasEvents());
            Action_bt_WrapperAI_TowerExampleInput_node87 _node14 = new Action_bt_WrapperAI_TowerExampleInput_node87();

            _node14.SetClassNameString("Action");
            _node14.SetId(0x57);
            sequence7.AddChild(_node14);
            sequence7.SetHasEvents(sequence7.HasEvents() | _node14.HasEvents());
            Action_bt_WrapperAI_TowerExampleInput_node88 _node15 = new Action_bt_WrapperAI_TowerExampleInput_node88();

            _node15.SetClassNameString("Action");
            _node15.SetId(0x58);
            sequence7.AddChild(_node15);
            sequence7.SetHasEvents(sequence7.HasEvents() | _node15.HasEvents());
            Action_bt_WrapperAI_TowerExampleInput_node91 _node16 = new Action_bt_WrapperAI_TowerExampleInput_node91();

            _node16.SetClassNameString("Action");
            _node16.SetId(0x5b);
            sequence7.AddChild(_node16);
            sequence7.SetHasEvents(sequence7.HasEvents() | _node16.HasEvents());
            DecoratorLoopUntil_bt_WrapperAI_TowerExampleInput_node92 _node17 = new DecoratorLoopUntil_bt_WrapperAI_TowerExampleInput_node92();

            _node17.SetClassNameString("DecoratorLoopUntil");
            _node17.SetId(0x5c);
            sequence7.AddChild(_node17);
            Condition_bt_WrapperAI_TowerExampleInput_node93 _node18 = new Condition_bt_WrapperAI_TowerExampleInput_node93();

            _node18.SetClassNameString("Condition");
            _node18.SetId(0x5d);
            _node17.AddChild(_node18);
            _node17.SetHasEvents(_node17.HasEvents() | _node18.HasEvents());
            sequence7.SetHasEvents(sequence7.HasEvents() | _node17.HasEvents());
            else3.SetHasEvents(else3.HasEvents() | sequence7.HasEvents());
            WaitFrames_bt_WrapperAI_TowerExampleInput_node5 _node19 = new WaitFrames_bt_WrapperAI_TowerExampleInput_node5();

            _node19.SetClassNameString("WaitFrames");
            _node19.SetId(5);
            else3.AddChild(_node19);
            else3.SetHasEvents(else3.HasEvents() | _node19.HasEvents());
            sequence5.SetHasEvents(sequence5.HasEvents() | else3.HasEvents());
            sequence2.SetHasEvents(sequence2.HasEvents() | sequence5.HasEvents());
            precondition.SetHasEvents(precondition.HasEvents() | sequence2.HasEvents());
            loop.SetHasEvents(loop.HasEvents() | precondition.HasEvents());
            WithPrecondition precondition2 = new WithPrecondition();

            precondition2.SetClassNameString("WithPrecondition");
            precondition2.SetId(2);
            loop.AddChild(precondition2);
            Condition_bt_WrapperAI_TowerExampleInput_node3 _node20 = new Condition_bt_WrapperAI_TowerExampleInput_node3();

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

            sequence8.SetClassNameString("Sequence");
            sequence8.SetId(6);
            precondition2.AddChild(sequence8);
            Action_bt_WrapperAI_TowerExampleInput_node4 _node21 = new Action_bt_WrapperAI_TowerExampleInput_node4();

            _node21.SetClassNameString("Action");
            _node21.SetId(4);
            sequence8.AddChild(_node21);
            sequence8.SetHasEvents(sequence8.HasEvents() | _node21.HasEvents());
            DecoratorLoop_bt_WrapperAI_TowerExampleInput_node7 _node22 = new DecoratorLoop_bt_WrapperAI_TowerExampleInput_node7();

            _node22.SetClassNameString("DecoratorLoop");
            _node22.SetId(7);
            sequence8.AddChild(_node22);
            Noop noop3 = new Noop();

            noop3.SetClassNameString("Noop");
            noop3.SetId(8);
            _node22.AddChild(noop3);
            _node22.SetHasEvents(_node22.HasEvents() | noop3.HasEvents());
            sequence8.SetHasEvents(sequence8.HasEvents() | _node22.HasEvents());
            precondition2.SetHasEvents(precondition2.HasEvents() | sequence8.HasEvents());
            loop.SetHasEvents(loop.HasEvents() | precondition2.HasEvents());
            sequence.SetHasEvents(sequence.HasEvents() | loop.HasEvents());
            pChild.SetHasEvents(pChild.HasEvents() | sequence.HasEvents());
            bt.SetHasEvents(bt.HasEvents() | pChild.HasEvents());
            return(true);
        }