Exemplo n.º 1
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("node_test/condition_ut_1");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("AgentNodeTest");
#endif
			// pars
			bt.AddPar("AgentNodeTest", "ParTestAgent", "par_agent", "null");
			// children
			{
				Sequence node0 = new Sequence();
				node0.SetClassNameString("Sequence");
				node0.SetId(0);
#if !BEHAVIAC_RELEASE
				node0.SetAgentType("AgentNodeTest");
#endif
				bt.AddChild(node0);
				{
					Or node9 = new Or();
					node9.SetClassNameString("Or");
					node9.SetId(9);
#if !BEHAVIAC_RELEASE
					node9.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node9);
					{
						Condition_bt_node_test_condition_ut_1_node10 node10 = new Condition_bt_node_test_condition_ut_1_node10();
						node10.SetClassNameString("Condition");
						node10.SetId(10);
#if !BEHAVIAC_RELEASE
						node10.SetAgentType("AgentNodeTest");
#endif
						node9.AddChild(node10);
						node9.SetHasEvents(node9.HasEvents() | node10.HasEvents());
					}
					{
						True node11 = new True();
						node11.SetClassNameString("True");
						node11.SetId(11);
#if !BEHAVIAC_RELEASE
						node11.SetAgentType("AgentNodeTest");
#endif
						node9.AddChild(node11);
						node9.SetHasEvents(node9.HasEvents() | node11.HasEvents());
					}
					node0.SetHasEvents(node0.HasEvents() | node9.HasEvents());
				}
				{
					Or node1 = new Or();
					node1.SetClassNameString("Or");
					node1.SetId(1);
#if !BEHAVIAC_RELEASE
					node1.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node1);
					{
						True node3 = new True();
						node3.SetClassNameString("True");
						node3.SetId(3);
#if !BEHAVIAC_RELEASE
						node3.SetAgentType("AgentNodeTest");
#endif
						node1.AddChild(node3);
						node1.SetHasEvents(node1.HasEvents() | node3.HasEvents());
					}
					{
						False node5 = new False();
						node5.SetClassNameString("False");
						node5.SetId(5);
#if !BEHAVIAC_RELEASE
						node5.SetAgentType("AgentNodeTest");
#endif
						node1.AddChild(node5);
						node1.SetHasEvents(node1.HasEvents() | node5.HasEvents());
					}
					node0.SetHasEvents(node0.HasEvents() | node1.HasEvents());
				}
				{
					Action_bt_node_test_condition_ut_1_node2 node2 = new Action_bt_node_test_condition_ut_1_node2();
					node2.SetClassNameString("Action");
					node2.SetId(2);
#if !BEHAVIAC_RELEASE
					node2.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node2);
					node0.SetHasEvents(node0.HasEvents() | node2.HasEvents());
				}
				{
					Or node4 = new Or();
					node4.SetClassNameString("Or");
					node4.SetId(4);
#if !BEHAVIAC_RELEASE
					node4.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node4);
					{
						False node6 = new False();
						node6.SetClassNameString("False");
						node6.SetId(6);
#if !BEHAVIAC_RELEASE
						node6.SetAgentType("AgentNodeTest");
#endif
						node4.AddChild(node6);
						node4.SetHasEvents(node4.HasEvents() | node6.HasEvents());
					}
					{
						False node7 = new False();
						node7.SetClassNameString("False");
						node7.SetId(7);
#if !BEHAVIAC_RELEASE
						node7.SetAgentType("AgentNodeTest");
#endif
						node4.AddChild(node7);
						node4.SetHasEvents(node4.HasEvents() | node7.HasEvents());
					}
					node0.SetHasEvents(node0.HasEvents() | node4.HasEvents());
				}
				{
					Action_bt_node_test_condition_ut_1_node8 node8 = new Action_bt_node_test_condition_ut_1_node8();
					node8.SetClassNameString("Action");
					node8.SetId(8);
#if !BEHAVIAC_RELEASE
					node8.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node8);
					node0.SetHasEvents(node0.HasEvents() | node8.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node0.HasEvents());
			}
			return true;
		}
Exemplo n.º 2
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("node_test/condition_ut_3");
			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);
				{
					And node9 = new And();
					node9.SetClassNameString("And");
					node9.SetId(9);
#if !BEHAVIAC_RELEASE
					node9.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node9);
					{
						Or node13 = new Or();
						node13.SetClassNameString("Or");
						node13.SetId(13);
#if !BEHAVIAC_RELEASE
						node13.SetAgentType("AgentNodeTest");
#endif
						node9.AddChild(node13);
						{
							True node10 = new True();
							node10.SetClassNameString("True");
							node10.SetId(10);
#if !BEHAVIAC_RELEASE
							node10.SetAgentType("AgentNodeTest");
#endif
							node13.AddChild(node10);
							node13.SetHasEvents(node13.HasEvents() | node10.HasEvents());
						}
						{
							False node14 = new False();
							node14.SetClassNameString("False");
							node14.SetId(14);
#if !BEHAVIAC_RELEASE
							node14.SetAgentType("AgentNodeTest");
#endif
							node13.AddChild(node14);
							node13.SetHasEvents(node13.HasEvents() | node14.HasEvents());
						}
						node9.SetHasEvents(node9.HasEvents() | node13.HasEvents());
					}
					{
						True node11 = new True();
						node11.SetClassNameString("True");
						node11.SetId(11);
#if !BEHAVIAC_RELEASE
						node11.SetAgentType("AgentNodeTest");
#endif
						node9.AddChild(node11);
						node9.SetHasEvents(node9.HasEvents() | node11.HasEvents());
					}
					node0.SetHasEvents(node0.HasEvents() | node9.HasEvents());
				}
				{
					Action_bt_node_test_condition_ut_3_node2 node2 = new Action_bt_node_test_condition_ut_3_node2();
					node2.SetClassNameString("Action");
					node2.SetId(2);
#if !BEHAVIAC_RELEASE
					node2.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node2);
					node0.SetHasEvents(node0.HasEvents() | node2.HasEvents());
				}
				{
					Or node1 = new Or();
					node1.SetClassNameString("Or");
					node1.SetId(1);
#if !BEHAVIAC_RELEASE
					node1.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node1);
					{
						And node15 = new And();
						node15.SetClassNameString("And");
						node15.SetId(15);
#if !BEHAVIAC_RELEASE
						node15.SetAgentType("AgentNodeTest");
#endif
						node1.AddChild(node15);
						{
							True node3 = new True();
							node3.SetClassNameString("True");
							node3.SetId(3);
#if !BEHAVIAC_RELEASE
							node3.SetAgentType("AgentNodeTest");
#endif
							node15.AddChild(node3);
							node15.SetHasEvents(node15.HasEvents() | node3.HasEvents());
						}
						{
							True node16 = new True();
							node16.SetClassNameString("True");
							node16.SetId(16);
#if !BEHAVIAC_RELEASE
							node16.SetAgentType("AgentNodeTest");
#endif
							node15.AddChild(node16);
							node15.SetHasEvents(node15.HasEvents() | node16.HasEvents());
						}
						node1.SetHasEvents(node1.HasEvents() | node15.HasEvents());
					}
					{
						False node5 = new False();
						node5.SetClassNameString("False");
						node5.SetId(5);
#if !BEHAVIAC_RELEASE
						node5.SetAgentType("AgentNodeTest");
#endif
						node1.AddChild(node5);
						node1.SetHasEvents(node1.HasEvents() | node5.HasEvents());
					}
					node0.SetHasEvents(node0.HasEvents() | node1.HasEvents());
				}
				{
					Action_bt_node_test_condition_ut_3_node8 node8 = new Action_bt_node_test_condition_ut_3_node8();
					node8.SetClassNameString("Action");
					node8.SetId(8);
#if !BEHAVIAC_RELEASE
					node8.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node8);
					node0.SetHasEvents(node0.HasEvents() | node8.HasEvents());
				}
				{
					And node4 = new And();
					node4.SetClassNameString("And");
					node4.SetId(4);
#if !BEHAVIAC_RELEASE
					node4.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node4);
					{
						Or node18 = new Or();
						node18.SetClassNameString("Or");
						node18.SetId(18);
#if !BEHAVIAC_RELEASE
						node18.SetAgentType("AgentNodeTest");
#endif
						node4.AddChild(node18);
						{
							Or node19 = new Or();
							node19.SetClassNameString("Or");
							node19.SetId(19);
#if !BEHAVIAC_RELEASE
							node19.SetAgentType("AgentNodeTest");
#endif
							node18.AddChild(node19);
							{
								False node6 = new False();
								node6.SetClassNameString("False");
								node6.SetId(6);
#if !BEHAVIAC_RELEASE
								node6.SetAgentType("AgentNodeTest");
#endif
								node19.AddChild(node6);
								node19.SetHasEvents(node19.HasEvents() | node6.HasEvents());
							}
							{
								True node21 = new True();
								node21.SetClassNameString("True");
								node21.SetId(21);
#if !BEHAVIAC_RELEASE
								node21.SetAgentType("AgentNodeTest");
#endif
								node19.AddChild(node21);
								node19.SetHasEvents(node19.HasEvents() | node21.HasEvents());
							}
							node18.SetHasEvents(node18.HasEvents() | node19.HasEvents());
						}
						{
							False node22 = new False();
							node22.SetClassNameString("False");
							node22.SetId(22);
#if !BEHAVIAC_RELEASE
							node22.SetAgentType("AgentNodeTest");
#endif
							node18.AddChild(node22);
							node18.SetHasEvents(node18.HasEvents() | node22.HasEvents());
						}
						node4.SetHasEvents(node4.HasEvents() | node18.HasEvents());
					}
					{
						And node17 = new And();
						node17.SetClassNameString("And");
						node17.SetId(17);
#if !BEHAVIAC_RELEASE
						node17.SetAgentType("AgentNodeTest");
#endif
						node4.AddChild(node17);
						{
							True node7 = new True();
							node7.SetClassNameString("True");
							node7.SetId(7);
#if !BEHAVIAC_RELEASE
							node7.SetAgentType("AgentNodeTest");
#endif
							node17.AddChild(node7);
							node17.SetHasEvents(node17.HasEvents() | node7.HasEvents());
						}
						{
							And node20 = new And();
							node20.SetClassNameString("And");
							node20.SetId(20);
#if !BEHAVIAC_RELEASE
							node20.SetAgentType("AgentNodeTest");
#endif
							node17.AddChild(node20);
							{
								True node23 = new True();
								node23.SetClassNameString("True");
								node23.SetId(23);
#if !BEHAVIAC_RELEASE
								node23.SetAgentType("AgentNodeTest");
#endif
								node20.AddChild(node23);
								node20.SetHasEvents(node20.HasEvents() | node23.HasEvents());
							}
							{
								True node24 = new True();
								node24.SetClassNameString("True");
								node24.SetId(24);
#if !BEHAVIAC_RELEASE
								node24.SetAgentType("AgentNodeTest");
#endif
								node20.AddChild(node24);
								node20.SetHasEvents(node20.HasEvents() | node24.HasEvents());
							}
							node17.SetHasEvents(node17.HasEvents() | node20.HasEvents());
						}
						node4.SetHasEvents(node4.HasEvents() | node17.HasEvents());
					}
					node0.SetHasEvents(node0.HasEvents() | node4.HasEvents());
				}
				{
					Action_bt_node_test_condition_ut_3_node12 node12 = new Action_bt_node_test_condition_ut_3_node12();
					node12.SetClassNameString("Action");
					node12.SetId(12);
#if !BEHAVIAC_RELEASE
					node12.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node12);
					node0.SetHasEvents(node0.HasEvents() | node12.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node0.HasEvents());
			}
			return true;
		}
Exemplo n.º 3
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("node_test/action_ut_waitforsignal_2");
			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);
				{
					WaitforSignal node1 = new WaitforSignal();
					node1.SetClassNameString("WaitforSignal");
					node1.SetId(1);
#if !BEHAVIAC_RELEASE
					node1.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node1);
					{
						Or node2 = new Or();
						node2.SetClassNameString("Or");
						node2.SetId(2);
#if !BEHAVIAC_RELEASE
						node2.SetAgentType("AgentNodeTest");
#endif
						node1.SetCustomCondition(node2);
						{
							And node3 = new And();
							node3.SetClassNameString("And");
							node3.SetId(3);
#if !BEHAVIAC_RELEASE
							node3.SetAgentType("AgentNodeTest");
#endif
							node2.AddChild(node3);
							{
								Condition_bt_node_test_action_ut_waitforsignal_2_node5 node5 = new Condition_bt_node_test_action_ut_waitforsignal_2_node5();
								node5.SetClassNameString("Condition");
								node5.SetId(5);
#if !BEHAVIAC_RELEASE
								node5.SetAgentType("AgentNodeTest");
#endif
								node3.AddChild(node5);
								node3.SetHasEvents(node3.HasEvents() | node5.HasEvents());
							}
							{
								Condition_bt_node_test_action_ut_waitforsignal_2_node6 node6 = new Condition_bt_node_test_action_ut_waitforsignal_2_node6();
								node6.SetClassNameString("Condition");
								node6.SetId(6);
#if !BEHAVIAC_RELEASE
								node6.SetAgentType("AgentNodeTest");
#endif
								node3.AddChild(node6);
								node3.SetHasEvents(node3.HasEvents() | node6.HasEvents());
							}
							node2.SetHasEvents(node2.HasEvents() | node3.HasEvents());
						}
						{
							Condition_bt_node_test_action_ut_waitforsignal_2_node7 node7 = new Condition_bt_node_test_action_ut_waitforsignal_2_node7();
							node7.SetClassNameString("Condition");
							node7.SetId(7);
#if !BEHAVIAC_RELEASE
							node7.SetAgentType("AgentNodeTest");
#endif
							node2.AddChild(node7);
							node2.SetHasEvents(node2.HasEvents() | node7.HasEvents());
						}
						node1.SetHasEvents(node1.HasEvents() | node2.HasEvents());
					}
					node0.SetHasEvents(node0.HasEvents() | node1.HasEvents());
				}
				{
					Assignment_bt_node_test_action_ut_waitforsignal_2_node4 node4 = new Assignment_bt_node_test_action_ut_waitforsignal_2_node4();
					node4.SetClassNameString("Assignment");
					node4.SetId(4);
#if !BEHAVIAC_RELEASE
					node4.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node4);
					node0.SetHasEvents(node0.HasEvents() | node4.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node0.HasEvents());
			}
			return true;
		}
Exemplo n.º 4
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("node_test/decoration_countlimit_ut_3");
			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_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
					node0.AddChild(node1);
					{
						Or node4 = new Or();
						node4.SetClassNameString("Or");
						node4.SetId(4);
#if !BEHAVIAC_RELEASE
						node4.SetAgentType("AgentNodeTest");
#endif
						node1.SetCustomCondition(node4);
						{
							And node5 = new And();
							node5.SetClassNameString("And");
							node5.SetId(5);
#if !BEHAVIAC_RELEASE
							node5.SetAgentType("AgentNodeTest");
#endif
							node4.AddChild(node5);
							{
								Condition_bt_node_test_decoration_countlimit_ut_3_node6 node6 = new Condition_bt_node_test_decoration_countlimit_ut_3_node6();
								node6.SetClassNameString("Condition");
								node6.SetId(6);
#if !BEHAVIAC_RELEASE
								node6.SetAgentType("AgentNodeTest");
#endif
								node5.AddChild(node6);
								node5.SetHasEvents(node5.HasEvents() | node6.HasEvents());
							}
							{
								Condition_bt_node_test_decoration_countlimit_ut_3_node7 node7 = new Condition_bt_node_test_decoration_countlimit_ut_3_node7();
								node7.SetClassNameString("Condition");
								node7.SetId(7);
#if !BEHAVIAC_RELEASE
								node7.SetAgentType("AgentNodeTest");
#endif
								node5.AddChild(node7);
								node5.SetHasEvents(node5.HasEvents() | node7.HasEvents());
							}
							node4.SetHasEvents(node4.HasEvents() | node5.HasEvents());
						}
						{
							Condition_bt_node_test_decoration_countlimit_ut_3_node8 node8 = new Condition_bt_node_test_decoration_countlimit_ut_3_node8();
							node8.SetClassNameString("Condition");
							node8.SetId(8);
#if !BEHAVIAC_RELEASE
							node8.SetAgentType("AgentNodeTest");
#endif
							node4.AddChild(node8);
							node4.SetHasEvents(node4.HasEvents() | node8.HasEvents());
						}
						node1.SetHasEvents(node1.HasEvents() | node4.HasEvents());
					}
					{
						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/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/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);
        }
Exemplo n.º 7
0
        public static bool build_behavior_tree(BehaviorTree bt)
        {
            bt.SetClassNameString("BehaviorTree");
            bt.SetId(-1);
            bt.SetName("WrapperAI/FireTrapRand");
            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_waitFrame", "0", string.Empty);
            DecoratorLoop_bt_WrapperAI_FireTrapRand_node14 decoratorLoop_bt_WrapperAI_FireTrapRand_node = new DecoratorLoop_bt_WrapperAI_FireTrapRand_node14();

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

            selectorLoop.SetClassNameString("SelectorLoop");
            selectorLoop.SetId(7);
            decoratorLoop_bt_WrapperAI_FireTrapRand_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(1);
            withPrecondition.AddChild(or);
            Condition_bt_WrapperAI_FireTrapRand_node12 condition_bt_WrapperAI_FireTrapRand_node = new Condition_bt_WrapperAI_FireTrapRand_node12();

            condition_bt_WrapperAI_FireTrapRand_node.SetClassNameString("Condition");
            condition_bt_WrapperAI_FireTrapRand_node.SetId(12);
            or.AddChild(condition_bt_WrapperAI_FireTrapRand_node);
            or.SetHasEvents(or.HasEvents() | condition_bt_WrapperAI_FireTrapRand_node.HasEvents());
            Condition_bt_WrapperAI_FireTrapRand_node2 condition_bt_WrapperAI_FireTrapRand_node2 = new Condition_bt_WrapperAI_FireTrapRand_node2();

            condition_bt_WrapperAI_FireTrapRand_node2.SetClassNameString("Condition");
            condition_bt_WrapperAI_FireTrapRand_node2.SetId(2);
            or.AddChild(condition_bt_WrapperAI_FireTrapRand_node2);
            or.SetHasEvents(or.HasEvents() | condition_bt_WrapperAI_FireTrapRand_node2.HasEvents());
            Condition_bt_WrapperAI_FireTrapRand_node3 condition_bt_WrapperAI_FireTrapRand_node3 = new Condition_bt_WrapperAI_FireTrapRand_node3();

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

            sequence.SetClassNameString("Sequence");
            sequence.SetId(81);
            withPrecondition.AddChild(sequence);
            Sequence sequence2 = new Sequence();

            sequence2.SetClassNameString("Sequence");
            sequence2.SetId(86);
            sequence.AddChild(sequence2);
            Condition_bt_WrapperAI_FireTrapRand_node30 condition_bt_WrapperAI_FireTrapRand_node4 = new Condition_bt_WrapperAI_FireTrapRand_node30();

            condition_bt_WrapperAI_FireTrapRand_node4.SetClassNameString("Condition");
            condition_bt_WrapperAI_FireTrapRand_node4.SetId(30);
            sequence2.AddChild(condition_bt_WrapperAI_FireTrapRand_node4);
            sequence2.SetHasEvents(sequence2.HasEvents() | condition_bt_WrapperAI_FireTrapRand_node4.HasEvents());
            Action_bt_WrapperAI_FireTrapRand_node88 action_bt_WrapperAI_FireTrapRand_node = new Action_bt_WrapperAI_FireTrapRand_node88();

            action_bt_WrapperAI_FireTrapRand_node.SetClassNameString("Action");
            action_bt_WrapperAI_FireTrapRand_node.SetId(88);
            sequence2.AddChild(action_bt_WrapperAI_FireTrapRand_node);
            sequence2.SetHasEvents(sequence2.HasEvents() | action_bt_WrapperAI_FireTrapRand_node.HasEvents());
            Action_bt_WrapperAI_FireTrapRand_node91 action_bt_WrapperAI_FireTrapRand_node2 = new Action_bt_WrapperAI_FireTrapRand_node91();

            action_bt_WrapperAI_FireTrapRand_node2.SetClassNameString("Action");
            action_bt_WrapperAI_FireTrapRand_node2.SetId(91);
            sequence2.AddChild(action_bt_WrapperAI_FireTrapRand_node2);
            sequence2.SetHasEvents(sequence2.HasEvents() | action_bt_WrapperAI_FireTrapRand_node2.HasEvents());
            DecoratorLoopUntil_bt_WrapperAI_FireTrapRand_node92 decoratorLoopUntil_bt_WrapperAI_FireTrapRand_node = new DecoratorLoopUntil_bt_WrapperAI_FireTrapRand_node92();

            decoratorLoopUntil_bt_WrapperAI_FireTrapRand_node.SetClassNameString("DecoratorLoopUntil");
            decoratorLoopUntil_bt_WrapperAI_FireTrapRand_node.SetId(92);
            sequence2.AddChild(decoratorLoopUntil_bt_WrapperAI_FireTrapRand_node);
            Condition_bt_WrapperAI_FireTrapRand_node93 condition_bt_WrapperAI_FireTrapRand_node5 = new Condition_bt_WrapperAI_FireTrapRand_node93();

            condition_bt_WrapperAI_FireTrapRand_node5.SetClassNameString("Condition");
            condition_bt_WrapperAI_FireTrapRand_node5.SetId(93);
            decoratorLoopUntil_bt_WrapperAI_FireTrapRand_node.AddChild(condition_bt_WrapperAI_FireTrapRand_node5);
            decoratorLoopUntil_bt_WrapperAI_FireTrapRand_node.SetHasEvents(decoratorLoopUntil_bt_WrapperAI_FireTrapRand_node.HasEvents() | condition_bt_WrapperAI_FireTrapRand_node5.HasEvents());
            sequence2.SetHasEvents(sequence2.HasEvents() | decoratorLoopUntil_bt_WrapperAI_FireTrapRand_node.HasEvents());
            sequence.SetHasEvents(sequence.HasEvents() | sequence2.HasEvents());
            DecoratorLoopUntil_bt_WrapperAI_FireTrapRand_node4 decoratorLoopUntil_bt_WrapperAI_FireTrapRand_node2 = new DecoratorLoopUntil_bt_WrapperAI_FireTrapRand_node4();

            decoratorLoopUntil_bt_WrapperAI_FireTrapRand_node2.SetClassNameString("DecoratorLoopUntil");
            decoratorLoopUntil_bt_WrapperAI_FireTrapRand_node2.SetId(4);
            sequence.AddChild(decoratorLoopUntil_bt_WrapperAI_FireTrapRand_node2);
            Condition_bt_WrapperAI_FireTrapRand_node6 condition_bt_WrapperAI_FireTrapRand_node6 = new Condition_bt_WrapperAI_FireTrapRand_node6();

            condition_bt_WrapperAI_FireTrapRand_node6.SetClassNameString("Condition");
            condition_bt_WrapperAI_FireTrapRand_node6.SetId(6);
            decoratorLoopUntil_bt_WrapperAI_FireTrapRand_node2.AddChild(condition_bt_WrapperAI_FireTrapRand_node6);
            decoratorLoopUntil_bt_WrapperAI_FireTrapRand_node2.SetHasEvents(decoratorLoopUntil_bt_WrapperAI_FireTrapRand_node2.HasEvents() | condition_bt_WrapperAI_FireTrapRand_node6.HasEvents());
            sequence.SetHasEvents(sequence.HasEvents() | decoratorLoopUntil_bt_WrapperAI_FireTrapRand_node2.HasEvents());
            Sequence sequence3 = new Sequence();

            sequence3.SetClassNameString("Sequence");
            sequence3.SetId(8);
            sequence.AddChild(sequence3);
            Compute_bt_WrapperAI_FireTrapRand_node0 compute_bt_WrapperAI_FireTrapRand_node = new Compute_bt_WrapperAI_FireTrapRand_node0();

            compute_bt_WrapperAI_FireTrapRand_node.SetClassNameString("Compute");
            compute_bt_WrapperAI_FireTrapRand_node.SetId(0);
            sequence3.AddChild(compute_bt_WrapperAI_FireTrapRand_node);
            sequence3.SetHasEvents(sequence3.HasEvents() | compute_bt_WrapperAI_FireTrapRand_node.HasEvents());
            WaitFrames_bt_WrapperAI_FireTrapRand_node5 waitFrames_bt_WrapperAI_FireTrapRand_node = new WaitFrames_bt_WrapperAI_FireTrapRand_node5();

            waitFrames_bt_WrapperAI_FireTrapRand_node.SetClassNameString("WaitFrames");
            waitFrames_bt_WrapperAI_FireTrapRand_node.SetId(5);
            sequence3.AddChild(waitFrames_bt_WrapperAI_FireTrapRand_node);
            sequence3.SetHasEvents(sequence3.HasEvents() | waitFrames_bt_WrapperAI_FireTrapRand_node.HasEvents());
            sequence.SetHasEvents(sequence.HasEvents() | sequence3.HasEvents());
            withPrecondition.SetHasEvents(withPrecondition.HasEvents() | sequence.HasEvents());
            selectorLoop.SetHasEvents(selectorLoop.HasEvents() | withPrecondition.HasEvents());
            decoratorLoop_bt_WrapperAI_FireTrapRand_node.SetHasEvents(decoratorLoop_bt_WrapperAI_FireTrapRand_node.HasEvents() | selectorLoop.HasEvents());
            bt.SetHasEvents(bt.HasEvents() | decoratorLoop_bt_WrapperAI_FireTrapRand_node.HasEvents());
            return(true);
        }