示例#1
0
        public static bool build_behavior_tree(BehaviorTree bt)
        {
            bt.SetClassNameString("BehaviorTree");
            bt.SetId(-1);
            bt.SetName("WrapperAI/Monster/BTMonsterBaoxiang");
            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_skillAttackRange", "0", string.Empty);
            bt.AddPar("UnityEngine.Vector3", "p_orignalPos", "{kEpsilon=0;x=0;y=0;z=0;}", string.Empty);
            bt.AddPar("int", "p_follow_range", "9000", string.Empty);
            bt.AddPar("UnityEngine.Vector3", "p_orignalDirection", "{kEpsilon=0;x=0;y=0;z=0;}", string.Empty);
            bt.AddPar("int", "p_pursuitRange", "0", string.Empty);
            bt.AddPar("int", "p_waitFramesToSearch", "10", string.Empty);
            bt.AddPar("uint", "p_selfID", "0", string.Empty);
            DecoratorLoop_bt_WrapperAI_Monster_BTMonsterBaoxiang_node14 pChild = new DecoratorLoop_bt_WrapperAI_Monster_BTMonsterBaoxiang_node14();

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

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

            _node2.SetClassNameString("Condition");
            _node2.SetId(3);
            sequence.AddChild(_node2);
            sequence.SetHasEvents(sequence.HasEvents() | _node2.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterBaoxiang_node4 _node3 = new Action_bt_WrapperAI_Monster_BTMonsterBaoxiang_node4();

            _node3.SetClassNameString("Action");
            _node3.SetId(4);
            sequence.AddChild(_node3);
            sequence.SetHasEvents(sequence.HasEvents() | _node3.HasEvents());
            DecoratorLoop_bt_WrapperAI_Monster_BTMonsterBaoxiang_node23 _node4 = new DecoratorLoop_bt_WrapperAI_Monster_BTMonsterBaoxiang_node23();

            _node4.SetClassNameString("DecoratorLoop");
            _node4.SetId(0x17);
            sequence.AddChild(_node4);
            Noop noop = new Noop();

            noop.SetClassNameString("Noop");
            noop.SetId(0x1ca);
            _node4.AddChild(noop);
            _node4.SetHasEvents(_node4.HasEvents() | noop.HasEvents());
            sequence.SetHasEvents(sequence.HasEvents() | _node4.HasEvents());
            pChild.SetHasEvents(pChild.HasEvents() | sequence.HasEvents());
            bt.SetHasEvents(bt.HasEvents() | pChild.HasEvents());
            return(true);
        }
示例#2
0
        public static bool build_behavior_tree(BehaviorTree bt)
        {
            bt.SetClassNameString("BehaviorTree");
            bt.SetId(-1);
            bt.SetName("NullAction");
            bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
            bt.SetAgentType("FirstAgent");
#endif
            // children
            {
                Noop node0 = new Noop();
                node0.SetClassNameString("Noop");
                node0.SetId(0);
#if !BEHAVIAC_RELEASE
                node0.SetAgentType("FirstAgent");
#endif
                bt.AddChild(node0);
                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("par_test/par_as_left_value_and_param");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("EmployeeParTestAgent");
#endif
			// pars
			bt.AddPar("EmployeeParTestAgent", "double", "par2_double_0", "5.7");
			bt.AddPar("EmployeeParTestAgent", "float", "par2_single_0", "98.2");
			bt.AddPar("EmployeeParTestAgent", "vector<float>", "par2_single_list_0", "2:5.1|6.2");
			bt.AddPar("EmployeeParTestAgent", "string", "par2_string_0", "origin");
			bt.AddPar("EmployeeParTestAgent", "vector<string>", "par2_string_list_0", "4:\"string0\"|\"string1\"|\"string2\"|\"string3\"");
			bt.AddPar("EmployeeParTestAgent", "uint", "par2_uint_0", "9");
			bt.AddPar("EmployeeParTestAgent", "ulong", "par2_ulong_0", "300");
			bt.AddPar("EmployeeParTestAgent", "short", "par1_short_0", "78");
			bt.AddPar("EmployeeParTestAgent", "int", "par1_int_0", "-3");
			bt.AddPar("EmployeeParTestAgent", "vector<int>", "par1_int_list_0", "3:9999|12345|0");
			bt.AddPar("EmployeeParTestAgent", "long", "par1_long_0", "1500");
			bt.AddPar("EmployeeParTestAgent", "vector<TNS.ST.PER.WRK.kEmployee>", "par1_kemployee_list_0", "1:{boss=null;car={brand=\"Lexus\";color=BLUE;price=93840;};code=q;id=9;isMale=true;name=\"John\";skinColor=GREEN;weight=110;}");
			bt.AddPar("EmployeeParTestAgent", "ushort", "par1_ushort_0", "2001");
			bt.AddPar("EmployeeParTestAgent", "bool", "par0_boolean_0", "true");
			bt.AddPar("EmployeeParTestAgent", "vector<bool>", "par0_boolean_list_0", "2:false|true");
			bt.AddPar("EmployeeParTestAgent", "TNS.NE.NAT.eColor", "par0_ecolor_0", "YELLOW");
			bt.AddPar("EmployeeParTestAgent", "vector<TNS.NE.NAT.eColor>", "par0_ecolor_list_0", "2:RED|GREEN");
			bt.AddPar("EmployeeParTestAgent", "behaviac.Agent", "par2_agent_0", "null");
			bt.AddPar("EmployeeParTestAgent", "vector<behaviac.Agent>", "par2_agent_list_0", "2:null|null");
			bt.AddPar("EmployeeParTestAgent", "char", "par0_char_0", "A");
			bt.AddPar("EmployeeParTestAgent", "TNS.ST.PER.WRK.kEmployee", "par1_kemployee_0", "{boss=null;car={brand=\"Alpha\";color=WHITE;price=5700;};code=A;id=83;isMale=false;name=\"Tom\";skinColor=RED;weight=97.3;}");
			bt.AddPar("EmployeeParTestAgent", "byte", "par0_byte_0", "197");
			bt.AddPar("EmployeeParTestAgent", "sbyte", "par0_sbyte_0", "-60");
			bt.AddPar("EmployeeParTestAgent", "vector<char>", "par0_char_list_0", "4:d|j|F|A");
			bt.AddPar("EmployeeParTestAgent", "vector<sbyte>", "par0_sbyte_list_0", "3:127|-128|0");
			bt.AddPar("EmployeeParTestAgent", "vector<byte>", "par0_byte_list_0", "3:167|23|152");
			bt.AddPar("EmployeeParTestAgent", "ParTestAgentBase", "par2_ParTestAgentBase_0", "null");
			bt.AddPar("EmployeeParTestAgent", "vector<ParTestAgentBase>", "par2_ParTestAgentBaseList_0", "2:null|null");
			bt.AddPar("EmployeeParTestAgent", "long", "par2_longlong_0", "-666");
			bt.AddPar("EmployeeParTestAgent", "ulong", "par2_ulonglong_0", "666");
			bt.AddPar("EmployeeParTestAgent", "string", "par2_SzString_0", "this is char* test");
			bt.AddPar("EmployeeParTestAgent", "string", "par2_CSzString_0", "this is const char* test");
			// children
			{
				Sequence node32 = new Sequence();
				node32.SetClassNameString("Sequence");
				node32.SetId(32);
#if !BEHAVIAC_RELEASE
				node32.SetAgentType("EmployeeParTestAgent");
#endif
				bt.AddChild(node32);
				{
					Sequence node13 = new Sequence();
					node13.SetClassNameString("Sequence");
					node13.SetId(13);
#if !BEHAVIAC_RELEASE
					node13.SetAgentType("EmployeeParTestAgent");
#endif
					node32.AddChild(node13);
					{
						Sequence node1 = new Sequence();
						node1.SetClassNameString("Sequence");
						node1.SetId(1);
#if !BEHAVIAC_RELEASE
						node1.SetAgentType("EmployeeParTestAgent");
#endif
						node13.AddChild(node1);
						{
							Assignment_bt_par_test_par_as_left_value_and_param_node0 node0 = new Assignment_bt_par_test_par_as_left_value_and_param_node0();
							node0.SetClassNameString("Assignment");
							node0.SetId(0);
#if !BEHAVIAC_RELEASE
							node0.SetAgentType("EmployeeParTestAgent");
#endif
							node1.AddChild(node0);
							node1.SetHasEvents(node1.HasEvents() | node0.HasEvents());
						}
						{
							Assignment_bt_par_test_par_as_left_value_and_param_node30 node30 = new Assignment_bt_par_test_par_as_left_value_and_param_node30();
							node30.SetClassNameString("Assignment");
							node30.SetId(30);
#if !BEHAVIAC_RELEASE
							node30.SetAgentType("EmployeeParTestAgent");
#endif
							node1.AddChild(node30);
							node1.SetHasEvents(node1.HasEvents() | node30.HasEvents());
						}
						{
							Assignment_bt_par_test_par_as_left_value_and_param_node15 node15 = new Assignment_bt_par_test_par_as_left_value_and_param_node15();
							node15.SetClassNameString("Assignment");
							node15.SetId(15);
#if !BEHAVIAC_RELEASE
							node15.SetAgentType("EmployeeParTestAgent");
#endif
							node1.AddChild(node15);
							node1.SetHasEvents(node1.HasEvents() | node15.HasEvents());
						}
						{
							Assignment_bt_par_test_par_as_left_value_and_param_node31 node31 = new Assignment_bt_par_test_par_as_left_value_and_param_node31();
							node31.SetClassNameString("Assignment");
							node31.SetId(31);
#if !BEHAVIAC_RELEASE
							node31.SetAgentType("EmployeeParTestAgent");
#endif
							node1.AddChild(node31);
							node1.SetHasEvents(node1.HasEvents() | node31.HasEvents());
						}
						{
							Assignment_bt_par_test_par_as_left_value_and_param_node2 node2 = new Assignment_bt_par_test_par_as_left_value_and_param_node2();
							node2.SetClassNameString("Assignment");
							node2.SetId(2);
#if !BEHAVIAC_RELEASE
							node2.SetAgentType("EmployeeParTestAgent");
#endif
							node1.AddChild(node2);
							node1.SetHasEvents(node1.HasEvents() | node2.HasEvents());
						}
						{
							Assignment_bt_par_test_par_as_left_value_and_param_node3 node3 = new Assignment_bt_par_test_par_as_left_value_and_param_node3();
							node3.SetClassNameString("Assignment");
							node3.SetId(3);
#if !BEHAVIAC_RELEASE
							node3.SetAgentType("EmployeeParTestAgent");
#endif
							node1.AddChild(node3);
							node1.SetHasEvents(node1.HasEvents() | node3.HasEvents());
						}
						{
							Assignment_bt_par_test_par_as_left_value_and_param_node4 node4 = new Assignment_bt_par_test_par_as_left_value_and_param_node4();
							node4.SetClassNameString("Assignment");
							node4.SetId(4);
#if !BEHAVIAC_RELEASE
							node4.SetAgentType("EmployeeParTestAgent");
#endif
							node1.AddChild(node4);
							node1.SetHasEvents(node1.HasEvents() | node4.HasEvents());
						}
						{
							Assignment_bt_par_test_par_as_left_value_and_param_node5 node5 = new Assignment_bt_par_test_par_as_left_value_and_param_node5();
							node5.SetClassNameString("Assignment");
							node5.SetId(5);
#if !BEHAVIAC_RELEASE
							node5.SetAgentType("EmployeeParTestAgent");
#endif
							node1.AddChild(node5);
							node1.SetHasEvents(node1.HasEvents() | node5.HasEvents());
						}
						{
							Assignment_bt_par_test_par_as_left_value_and_param_node6 node6 = new Assignment_bt_par_test_par_as_left_value_and_param_node6();
							node6.SetClassNameString("Assignment");
							node6.SetId(6);
#if !BEHAVIAC_RELEASE
							node6.SetAgentType("EmployeeParTestAgent");
#endif
							node1.AddChild(node6);
							node1.SetHasEvents(node1.HasEvents() | node6.HasEvents());
						}
						{
							Assignment_bt_par_test_par_as_left_value_and_param_node7 node7 = new Assignment_bt_par_test_par_as_left_value_and_param_node7();
							node7.SetClassNameString("Assignment");
							node7.SetId(7);
#if !BEHAVIAC_RELEASE
							node7.SetAgentType("EmployeeParTestAgent");
#endif
							node1.AddChild(node7);
							node1.SetHasEvents(node1.HasEvents() | node7.HasEvents());
						}
						{
							Assignment_bt_par_test_par_as_left_value_and_param_node8 node8 = new Assignment_bt_par_test_par_as_left_value_and_param_node8();
							node8.SetClassNameString("Assignment");
							node8.SetId(8);
#if !BEHAVIAC_RELEASE
							node8.SetAgentType("EmployeeParTestAgent");
#endif
							node1.AddChild(node8);
							node1.SetHasEvents(node1.HasEvents() | node8.HasEvents());
						}
						{
							Assignment_bt_par_test_par_as_left_value_and_param_node35 node35 = new Assignment_bt_par_test_par_as_left_value_and_param_node35();
							node35.SetClassNameString("Assignment");
							node35.SetId(35);
#if !BEHAVIAC_RELEASE
							node35.SetAgentType("EmployeeParTestAgent");
#endif
							node1.AddChild(node35);
							node1.SetHasEvents(node1.HasEvents() | node35.HasEvents());
						}
						{
							Assignment_bt_par_test_par_as_left_value_and_param_node36 node36 = new Assignment_bt_par_test_par_as_left_value_and_param_node36();
							node36.SetClassNameString("Assignment");
							node36.SetId(36);
#if !BEHAVIAC_RELEASE
							node36.SetAgentType("EmployeeParTestAgent");
#endif
							node1.AddChild(node36);
							node1.SetHasEvents(node1.HasEvents() | node36.HasEvents());
						}
						{
							Assignment_bt_par_test_par_as_left_value_and_param_node37 node37 = new Assignment_bt_par_test_par_as_left_value_and_param_node37();
							node37.SetClassNameString("Assignment");
							node37.SetId(37);
#if !BEHAVIAC_RELEASE
							node37.SetAgentType("EmployeeParTestAgent");
#endif
							node1.AddChild(node37);
							node1.SetHasEvents(node1.HasEvents() | node37.HasEvents());
						}
						node13.SetHasEvents(node13.HasEvents() | node1.HasEvents());
					}
					{
						Sequence node14 = new Sequence();
						node14.SetClassNameString("Sequence");
						node14.SetId(14);
#if !BEHAVIAC_RELEASE
						node14.SetAgentType("EmployeeParTestAgent");
#endif
						node13.AddChild(node14);
						{
							Assignment_bt_par_test_par_as_left_value_and_param_node9 node9 = new Assignment_bt_par_test_par_as_left_value_and_param_node9();
							node9.SetClassNameString("Assignment");
							node9.SetId(9);
#if !BEHAVIAC_RELEASE
							node9.SetAgentType("EmployeeParTestAgent");
#endif
							node14.AddChild(node9);
							node14.SetHasEvents(node14.HasEvents() | node9.HasEvents());
						}
						{
							Assignment_bt_par_test_par_as_left_value_and_param_node10 node10 = new Assignment_bt_par_test_par_as_left_value_and_param_node10();
							node10.SetClassNameString("Assignment");
							node10.SetId(10);
#if !BEHAVIAC_RELEASE
							node10.SetAgentType("EmployeeParTestAgent");
#endif
							node14.AddChild(node10);
							node14.SetHasEvents(node14.HasEvents() | node10.HasEvents());
						}
						{
							Assignment_bt_par_test_par_as_left_value_and_param_node11 node11 = new Assignment_bt_par_test_par_as_left_value_and_param_node11();
							node11.SetClassNameString("Assignment");
							node11.SetId(11);
#if !BEHAVIAC_RELEASE
							node11.SetAgentType("EmployeeParTestAgent");
#endif
							node14.AddChild(node11);
							node14.SetHasEvents(node14.HasEvents() | node11.HasEvents());
						}
						{
							Assignment_bt_par_test_par_as_left_value_and_param_node12 node12 = new Assignment_bt_par_test_par_as_left_value_and_param_node12();
							node12.SetClassNameString("Assignment");
							node12.SetId(12);
#if !BEHAVIAC_RELEASE
							node12.SetAgentType("EmployeeParTestAgent");
#endif
							node14.AddChild(node12);
							node14.SetHasEvents(node14.HasEvents() | node12.HasEvents());
						}
						{
							Assignment_bt_par_test_par_as_left_value_and_param_node17 node17 = new Assignment_bt_par_test_par_as_left_value_and_param_node17();
							node17.SetClassNameString("Assignment");
							node17.SetId(17);
#if !BEHAVIAC_RELEASE
							node17.SetAgentType("EmployeeParTestAgent");
#endif
							node14.AddChild(node17);
							node14.SetHasEvents(node14.HasEvents() | node17.HasEvents());
						}
						{
							Assignment_bt_par_test_par_as_left_value_and_param_node19 node19 = new Assignment_bt_par_test_par_as_left_value_and_param_node19();
							node19.SetClassNameString("Assignment");
							node19.SetId(19);
#if !BEHAVIAC_RELEASE
							node19.SetAgentType("EmployeeParTestAgent");
#endif
							node14.AddChild(node19);
							node14.SetHasEvents(node14.HasEvents() | node19.HasEvents());
						}
						{
							Assignment_bt_par_test_par_as_left_value_and_param_node18 node18 = new Assignment_bt_par_test_par_as_left_value_and_param_node18();
							node18.SetClassNameString("Assignment");
							node18.SetId(18);
#if !BEHAVIAC_RELEASE
							node18.SetAgentType("EmployeeParTestAgent");
#endif
							node14.AddChild(node18);
							node14.SetHasEvents(node14.HasEvents() | node18.HasEvents());
						}
						node13.SetHasEvents(node13.HasEvents() | node14.HasEvents());
					}
					{
						Sequence node22 = new Sequence();
						node22.SetClassNameString("Sequence");
						node22.SetId(22);
#if !BEHAVIAC_RELEASE
						node22.SetAgentType("EmployeeParTestAgent");
#endif
						node13.AddChild(node22);
						{
							Assignment_bt_par_test_par_as_left_value_and_param_node16 node16 = new Assignment_bt_par_test_par_as_left_value_and_param_node16();
							node16.SetClassNameString("Assignment");
							node16.SetId(16);
#if !BEHAVIAC_RELEASE
							node16.SetAgentType("EmployeeParTestAgent");
#endif
							node22.AddChild(node16);
							node22.SetHasEvents(node22.HasEvents() | node16.HasEvents());
						}
						{
							Assignment_bt_par_test_par_as_left_value_and_param_node20 node20 = new Assignment_bt_par_test_par_as_left_value_and_param_node20();
							node20.SetClassNameString("Assignment");
							node20.SetId(20);
#if !BEHAVIAC_RELEASE
							node20.SetAgentType("EmployeeParTestAgent");
#endif
							node22.AddChild(node20);
							node22.SetHasEvents(node22.HasEvents() | node20.HasEvents());
						}
						{
							Assignment_bt_par_test_par_as_left_value_and_param_node24 node24 = new Assignment_bt_par_test_par_as_left_value_and_param_node24();
							node24.SetClassNameString("Assignment");
							node24.SetId(24);
#if !BEHAVIAC_RELEASE
							node24.SetAgentType("EmployeeParTestAgent");
#endif
							node22.AddChild(node24);
							node22.SetHasEvents(node22.HasEvents() | node24.HasEvents());
						}
						{
							Assignment_bt_par_test_par_as_left_value_and_param_node25 node25 = new Assignment_bt_par_test_par_as_left_value_and_param_node25();
							node25.SetClassNameString("Assignment");
							node25.SetId(25);
#if !BEHAVIAC_RELEASE
							node25.SetAgentType("EmployeeParTestAgent");
#endif
							node22.AddChild(node25);
							node22.SetHasEvents(node22.HasEvents() | node25.HasEvents());
						}
						{
							Assignment_bt_par_test_par_as_left_value_and_param_node26 node26 = new Assignment_bt_par_test_par_as_left_value_and_param_node26();
							node26.SetClassNameString("Assignment");
							node26.SetId(26);
#if !BEHAVIAC_RELEASE
							node26.SetAgentType("EmployeeParTestAgent");
#endif
							node22.AddChild(node26);
							node22.SetHasEvents(node22.HasEvents() | node26.HasEvents());
						}
						{
							Assignment_bt_par_test_par_as_left_value_and_param_node27 node27 = new Assignment_bt_par_test_par_as_left_value_and_param_node27();
							node27.SetClassNameString("Assignment");
							node27.SetId(27);
#if !BEHAVIAC_RELEASE
							node27.SetAgentType("EmployeeParTestAgent");
#endif
							node22.AddChild(node27);
							node22.SetHasEvents(node22.HasEvents() | node27.HasEvents());
						}
						{
							Assignment_bt_par_test_par_as_left_value_and_param_node21 node21 = new Assignment_bt_par_test_par_as_left_value_and_param_node21();
							node21.SetClassNameString("Assignment");
							node21.SetId(21);
#if !BEHAVIAC_RELEASE
							node21.SetAgentType("EmployeeParTestAgent");
#endif
							node22.AddChild(node21);
							node22.SetHasEvents(node22.HasEvents() | node21.HasEvents());
						}
						{
							Assignment_bt_par_test_par_as_left_value_and_param_node23 node23 = new Assignment_bt_par_test_par_as_left_value_and_param_node23();
							node23.SetClassNameString("Assignment");
							node23.SetId(23);
#if !BEHAVIAC_RELEASE
							node23.SetAgentType("EmployeeParTestAgent");
#endif
							node22.AddChild(node23);
							node22.SetHasEvents(node22.HasEvents() | node23.HasEvents());
						}
						{
							Assignment_bt_par_test_par_as_left_value_and_param_node28 node28 = new Assignment_bt_par_test_par_as_left_value_and_param_node28();
							node28.SetClassNameString("Assignment");
							node28.SetId(28);
#if !BEHAVIAC_RELEASE
							node28.SetAgentType("EmployeeParTestAgent");
#endif
							node22.AddChild(node28);
							node22.SetHasEvents(node22.HasEvents() | node28.HasEvents());
						}
						{
							Assignment_bt_par_test_par_as_left_value_and_param_node29 node29 = new Assignment_bt_par_test_par_as_left_value_and_param_node29();
							node29.SetClassNameString("Assignment");
							node29.SetId(29);
#if !BEHAVIAC_RELEASE
							node29.SetAgentType("EmployeeParTestAgent");
#endif
							node22.AddChild(node29);
							node22.SetHasEvents(node22.HasEvents() | node29.HasEvents());
						}
						node13.SetHasEvents(node13.HasEvents() | node22.HasEvents());
					}
					node32.SetHasEvents(node32.HasEvents() | node13.HasEvents());
				}
				{
					DecoratorLoop_bt_par_test_par_as_left_value_and_param_node33 node33 = new DecoratorLoop_bt_par_test_par_as_left_value_and_param_node33();
					node33.SetClassNameString("DecoratorLoop");
					node33.SetId(33);
#if !BEHAVIAC_RELEASE
					node33.SetAgentType("EmployeeParTestAgent");
#endif
					node32.AddChild(node33);
					{
						Noop node34 = new Noop();
						node34.SetClassNameString("Noop");
						node34.SetId(34);
#if !BEHAVIAC_RELEASE
						node34.SetAgentType("EmployeeParTestAgent");
#endif
						node33.AddChild(node34);
						node33.SetHasEvents(node33.HasEvents() | node34.HasEvents());
					}
					node32.SetHasEvents(node32.HasEvents() | node33.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node32.HasEvents());
			}
			return true;
		}
示例#4
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("par_test/local_out_scope");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("CustomPropertyAgent");
#endif
			// pars
			bt.AddPar("CustomPropertyAgent", "vector<int>", "l_IntArray", "2:2|3");
			// children
			{
				Sequence node5 = new Sequence();
				node5.SetClassNameString("Sequence");
				node5.SetId(5);
#if !BEHAVIAC_RELEASE
				node5.SetAgentType("CustomPropertyAgent");
#endif
				bt.AddChild(node5);
				{
					Sequence node13 = new Sequence();
					node13.SetClassNameString("Sequence");
					node13.SetId(13);
#if !BEHAVIAC_RELEASE
					node13.SetAgentType("CustomPropertyAgent");
#endif
					node5.AddChild(node13);
					{
						Assignment_bt_par_test_local_out_scope_node0 node0 = new Assignment_bt_par_test_local_out_scope_node0();
						node0.SetClassNameString("Assignment");
						node0.SetId(0);
#if !BEHAVIAC_RELEASE
						node0.SetAgentType("CustomPropertyAgent");
#endif
						node13.AddChild(node0);
						node13.SetHasEvents(node13.HasEvents() | node0.HasEvents());
					}
					{
						Assignment_bt_par_test_local_out_scope_node1 node1 = new Assignment_bt_par_test_local_out_scope_node1();
						node1.SetClassNameString("Assignment");
						node1.SetId(1);
#if !BEHAVIAC_RELEASE
						node1.SetAgentType("CustomPropertyAgent");
#endif
						node13.AddChild(node1);
						node13.SetHasEvents(node13.HasEvents() | node1.HasEvents());
					}
					{
						Assignment_bt_par_test_local_out_scope_node2 node2 = new Assignment_bt_par_test_local_out_scope_node2();
						node2.SetClassNameString("Assignment");
						node2.SetId(2);
#if !BEHAVIAC_RELEASE
						node2.SetAgentType("CustomPropertyAgent");
#endif
						node13.AddChild(node2);
						node13.SetHasEvents(node13.HasEvents() | node2.HasEvents());
					}
					{
						Assignment_bt_par_test_local_out_scope_node3 node3 = new Assignment_bt_par_test_local_out_scope_node3();
						node3.SetClassNameString("Assignment");
						node3.SetId(3);
#if !BEHAVIAC_RELEASE
						node3.SetAgentType("CustomPropertyAgent");
#endif
						node13.AddChild(node3);
						node13.SetHasEvents(node13.HasEvents() | node3.HasEvents());
					}
					node5.SetHasEvents(node5.HasEvents() | node13.HasEvents());
				}
				{
					DecoratorLoop_bt_par_test_local_out_scope_node6 node6 = new DecoratorLoop_bt_par_test_local_out_scope_node6();
					node6.SetClassNameString("DecoratorLoop");
					node6.SetId(6);
#if !BEHAVIAC_RELEASE
					node6.SetAgentType("CustomPropertyAgent");
#endif
					node5.AddChild(node6);
					{
						Noop node7 = new Noop();
						node7.SetClassNameString("Noop");
						node7.SetId(7);
#if !BEHAVIAC_RELEASE
						node7.SetAgentType("CustomPropertyAgent");
#endif
						node6.AddChild(node7);
						node6.SetHasEvents(node6.HasEvents() | node7.HasEvents());
					}
					node5.SetHasEvents(node5.HasEvents() | node6.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node5.HasEvents());
			}
			return true;
		}
示例#5
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("par_test/custom_property_as_left_value_and_param");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("CustomPropertyAgent");
#endif
			// pars
			bt.AddPar("CustomPropertyAgent", "int", "l_Int", "1");
			bt.AddPar("CustomPropertyAgent", "UnityEngine.Vector3", "l_Location", "{x=0;y=0;z=0;}");
			// children
			{
				Sequence node5 = new Sequence();
				node5.SetClassNameString("Sequence");
				node5.SetId(5);
#if !BEHAVIAC_RELEASE
				node5.SetAgentType("CustomPropertyAgent");
#endif
				bt.AddChild(node5);
				{
					Sequence node13 = new Sequence();
					node13.SetClassNameString("Sequence");
					node13.SetId(13);
#if !BEHAVIAC_RELEASE
					node13.SetAgentType("CustomPropertyAgent");
#endif
					node5.AddChild(node13);
					{
						Assignment_bt_par_test_custom_property_as_left_value_and_param_node0 node0 = new Assignment_bt_par_test_custom_property_as_left_value_and_param_node0();
						node0.SetClassNameString("Assignment");
						node0.SetId(0);
#if !BEHAVIAC_RELEASE
						node0.SetAgentType("CustomPropertyAgent");
#endif
						node13.AddChild(node0);
						node13.SetHasEvents(node13.HasEvents() | node0.HasEvents());
					}
					{
						Assignment_bt_par_test_custom_property_as_left_value_and_param_node1 node1 = new Assignment_bt_par_test_custom_property_as_left_value_and_param_node1();
						node1.SetClassNameString("Assignment");
						node1.SetId(1);
#if !BEHAVIAC_RELEASE
						node1.SetAgentType("CustomPropertyAgent");
#endif
						node13.AddChild(node1);
						node13.SetHasEvents(node13.HasEvents() | node1.HasEvents());
					}
					{
						Assignment_bt_par_test_custom_property_as_left_value_and_param_node2 node2 = new Assignment_bt_par_test_custom_property_as_left_value_and_param_node2();
						node2.SetClassNameString("Assignment");
						node2.SetId(2);
#if !BEHAVIAC_RELEASE
						node2.SetAgentType("CustomPropertyAgent");
#endif
						node13.AddChild(node2);
						node13.SetHasEvents(node13.HasEvents() | node2.HasEvents());
					}
					{
						Assignment_bt_par_test_custom_property_as_left_value_and_param_node3 node3 = new Assignment_bt_par_test_custom_property_as_left_value_and_param_node3();
						node3.SetClassNameString("Assignment");
						node3.SetId(3);
#if !BEHAVIAC_RELEASE
						node3.SetAgentType("CustomPropertyAgent");
#endif
						node13.AddChild(node3);
						node13.SetHasEvents(node13.HasEvents() | node3.HasEvents());
					}
					{
						Assignment_bt_par_test_custom_property_as_left_value_and_param_node4 node4 = new Assignment_bt_par_test_custom_property_as_left_value_and_param_node4();
						node4.SetClassNameString("Assignment");
						node4.SetId(4);
#if !BEHAVIAC_RELEASE
						node4.SetAgentType("CustomPropertyAgent");
#endif
						node13.AddChild(node4);
						node13.SetHasEvents(node13.HasEvents() | node4.HasEvents());
					}
					{
						Assignment_bt_par_test_custom_property_as_left_value_and_param_node11 node11 = new Assignment_bt_par_test_custom_property_as_left_value_and_param_node11();
						node11.SetClassNameString("Assignment");
						node11.SetId(11);
#if !BEHAVIAC_RELEASE
						node11.SetAgentType("CustomPropertyAgent");
#endif
						node13.AddChild(node11);
						node13.SetHasEvents(node13.HasEvents() | node11.HasEvents());
					}
					{
						Assignment_bt_par_test_custom_property_as_left_value_and_param_node8 node8 = new Assignment_bt_par_test_custom_property_as_left_value_and_param_node8();
						node8.SetClassNameString("Assignment");
						node8.SetId(8);
#if !BEHAVIAC_RELEASE
						node8.SetAgentType("CustomPropertyAgent");
#endif
						node13.AddChild(node8);
						node13.SetHasEvents(node13.HasEvents() | node8.HasEvents());
					}
					{
						Assignment_bt_par_test_custom_property_as_left_value_and_param_node9 node9 = new Assignment_bt_par_test_custom_property_as_left_value_and_param_node9();
						node9.SetClassNameString("Assignment");
						node9.SetId(9);
#if !BEHAVIAC_RELEASE
						node9.SetAgentType("CustomPropertyAgent");
#endif
						node13.AddChild(node9);
						node13.SetHasEvents(node13.HasEvents() | node9.HasEvents());
					}
					{
						Assignment_bt_par_test_custom_property_as_left_value_and_param_node10 node10 = new Assignment_bt_par_test_custom_property_as_left_value_and_param_node10();
						node10.SetClassNameString("Assignment");
						node10.SetId(10);
#if !BEHAVIAC_RELEASE
						node10.SetAgentType("CustomPropertyAgent");
#endif
						node13.AddChild(node10);
						node13.SetHasEvents(node13.HasEvents() | node10.HasEvents());
					}
					node5.SetHasEvents(node5.HasEvents() | node13.HasEvents());
				}
				{
					DecoratorLoop_bt_par_test_custom_property_as_left_value_and_param_node6 node6 = new DecoratorLoop_bt_par_test_custom_property_as_left_value_and_param_node6();
					node6.SetClassNameString("DecoratorLoop");
					node6.SetId(6);
#if !BEHAVIAC_RELEASE
					node6.SetAgentType("CustomPropertyAgent");
#endif
					node5.AddChild(node6);
					{
						Noop node7 = new Noop();
						node7.SetClassNameString("Noop");
						node7.SetId(7);
#if !BEHAVIAC_RELEASE
						node7.SetAgentType("CustomPropertyAgent");
#endif
						node6.AddChild(node7);
						node6.SetHasEvents(node6.HasEvents() | node7.HasEvents());
					}
					node5.SetHasEvents(node5.HasEvents() | node6.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node5.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);
            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);
        }
示例#7
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);
        }
        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);
        }
        public static bool build_behavior_tree(BehaviorTree bt)
        {
            bt.SetClassNameString("BehaviorTree");
            bt.SetId(-1);
            bt.SetName("WrapperAI/CrystalBehavior");
            bt.AddPar("Assets.Scripts.GameLogic.SkillSlotType", "p_curSlotType", "SLOT_SKILL_0", string.Empty);
            bt.AddPar("uint", "p_enemyID", "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);
            DecoratorLoop_bt_WrapperAI_CrystalBehavior_node14 pChild = new DecoratorLoop_bt_WrapperAI_CrystalBehavior_node14();

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

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

            _node2.SetClassNameString("Condition");
            _node2.SetId(3);
            sequence.AddChild(_node2);
            sequence.SetHasEvents(sequence.HasEvents() | _node2.HasEvents());
            Sequence sequence2 = new Sequence();

            sequence2.SetClassNameString("Sequence");
            sequence2.SetId(0x3b);
            sequence.AddChild(sequence2);
            Action_bt_WrapperAI_CrystalBehavior_node4 _node3 = new Action_bt_WrapperAI_CrystalBehavior_node4();

            _node3.SetClassNameString("Action");
            _node3.SetId(4);
            sequence2.AddChild(_node3);
            sequence2.SetHasEvents(sequence2.HasEvents() | _node3.HasEvents());
            Action_bt_WrapperAI_CrystalBehavior_node5 _node4 = new Action_bt_WrapperAI_CrystalBehavior_node5();

            _node4.SetClassNameString("Action");
            _node4.SetId(5);
            sequence2.AddChild(_node4);
            sequence2.SetHasEvents(sequence2.HasEvents() | _node4.HasEvents());
            DecoratorLoop_bt_WrapperAI_CrystalBehavior_node65 _node5 = new DecoratorLoop_bt_WrapperAI_CrystalBehavior_node65();

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

            noop.SetClassNameString("Noop");
            noop.SetId(0x42);
            _node5.AddChild(noop);
            _node5.SetHasEvents(_node5.HasEvents() | noop.HasEvents());
            sequence2.SetHasEvents(sequence2.HasEvents() | _node5.HasEvents());
            sequence.SetHasEvents(sequence.HasEvents() | sequence2.HasEvents());
            pChild.SetHasEvents(pChild.HasEvents() | sequence.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/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 pChild = new Sequence();

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

            _node.SetClassNameString("Assignment");
            _node.SetId(4);
            pChild.AddChild(_node);
            pChild.SetHasEvents(pChild.HasEvents() | _node.HasEvents());
            Assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node98 _node2 = new Assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node98();

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

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

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

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

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

            precondition.SetClassNameString("WithPrecondition");
            precondition.SetId(60);
            loop.AddChild(precondition);
            Condition_bt_WrapperAI_Monster_BTMonsterBaozou_node61 _node6 = new Condition_bt_WrapperAI_Monster_BTMonsterBaozou_node61();

            _node6.SetClassNameString("Condition");
            _node6.SetId(0x3d);
            precondition.AddChild(_node6);
            precondition.SetHasEvents(precondition.HasEvents() | _node6.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterBaozou_node3 _node7 = new Action_bt_WrapperAI_Monster_BTMonsterBaozou_node3();

            _node7.SetClassNameString("Action");
            _node7.SetId(3);
            precondition.AddChild(_node7);
            precondition.SetHasEvents(precondition.HasEvents() | _node7.HasEvents());
            loop.SetHasEvents(loop.HasEvents() | precondition.HasEvents());
            WithPrecondition precondition2 = new WithPrecondition();

            precondition2.SetClassNameString("WithPrecondition");
            precondition2.SetId(70);
            loop.AddChild(precondition2);
            Condition_bt_WrapperAI_Monster_BTMonsterBaozou_node71 _node8 = new Condition_bt_WrapperAI_Monster_BTMonsterBaozou_node71();

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

            sequence2.SetClassNameString("Sequence");
            sequence2.SetId(12);
            precondition2.AddChild(sequence2);
            Action_bt_WrapperAI_Monster_BTMonsterBaozou_node462 _node9 = new Action_bt_WrapperAI_Monster_BTMonsterBaozou_node462();

            _node9.SetClassNameString("Action");
            _node9.SetId(0x1ce);
            sequence2.AddChild(_node9);
            sequence2.SetHasEvents(sequence2.HasEvents() | _node9.HasEvents());
            IfElse @else = new IfElse();

            @else.SetClassNameString("IfElse");
            @else.SetId(5);
            sequence2.AddChild(@else);
            Condition_bt_WrapperAI_Monster_BTMonsterBaozou_node336 _node10 = new Condition_bt_WrapperAI_Monster_BTMonsterBaozou_node336();

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

            sequence3.SetClassNameString("Sequence");
            sequence3.SetId(6);
            @else.AddChild(sequence3);
            Assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node7 _node11 = new Assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node7();

            _node11.SetClassNameString("Assignment");
            _node11.SetId(7);
            sequence3.AddChild(_node11);
            sequence3.SetHasEvents(sequence3.HasEvents() | _node11.HasEvents());
            Assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node8 _node12 = new Assignment_bt_WrapperAI_Monster_BTMonsterBaozou_node8();

            _node12.SetClassNameString("Assignment");
            _node12.SetId(8);
            sequence3.AddChild(_node12);
            sequence3.SetHasEvents(sequence3.HasEvents() | _node12.HasEvents());
            @else.SetHasEvents(@else.HasEvents() | sequence3.HasEvents());
            Noop noop = new Noop();

            noop.SetClassNameString("Noop");
            noop.SetId(13);
            @else.AddChild(noop);
            @else.SetHasEvents(@else.HasEvents() | noop.HasEvents());
            sequence2.SetHasEvents(sequence2.HasEvents() | @else.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterBaozou_node15 _node13 = new Action_bt_WrapperAI_Monster_BTMonsterBaozou_node15();

            _node13.SetClassNameString("Action");
            _node13.SetId(15);
            sequence2.AddChild(_node13);
            sequence2.SetHasEvents(sequence2.HasEvents() | _node13.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterBaozou_node438 _node14 = new Action_bt_WrapperAI_Monster_BTMonsterBaozou_node438();

            _node14.SetClassNameString("Action");
            _node14.SetId(0x1b6);
            sequence2.AddChild(_node14);
            sequence2.SetHasEvents(sequence2.HasEvents() | _node14.HasEvents());
            precondition2.SetHasEvents(precondition2.HasEvents() | sequence2.HasEvents());
            loop.SetHasEvents(loop.HasEvents() | precondition2.HasEvents());
            WithPrecondition precondition3 = new WithPrecondition();

            precondition3.SetClassNameString("WithPrecondition");
            precondition3.SetId(0x203);
            loop.AddChild(precondition3);
            Condition_bt_WrapperAI_Monster_BTMonsterBaozou_node516 _node15 = new Condition_bt_WrapperAI_Monster_BTMonsterBaozou_node516();

            _node15.SetClassNameString("Condition");
            _node15.SetId(0x204);
            precondition3.AddChild(_node15);
            precondition3.SetHasEvents(precondition3.HasEvents() | _node15.HasEvents());
            Action_bt_WrapperAI_Monster_BTMonsterBaozou_node9 _node16 = new Action_bt_WrapperAI_Monster_BTMonsterBaozou_node9();

            _node16.SetClassNameString("Action");
            _node16.SetId(9);
            precondition3.AddChild(_node16);
            precondition3.SetHasEvents(precondition3.HasEvents() | _node16.HasEvents());
            loop.SetHasEvents(loop.HasEvents() | precondition3.HasEvents());
            WithPrecondition precondition4 = new WithPrecondition();

            precondition4.SetClassNameString("WithPrecondition");
            precondition4.SetId(0x18);
            loop.AddChild(precondition4);
            Condition_bt_WrapperAI_Monster_BTMonsterBaozou_node25 _node17 = new Condition_bt_WrapperAI_Monster_BTMonsterBaozou_node25();

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

            sequence4.SetClassNameString("Sequence");
            sequence4.SetId(0x3b);
            precondition4.AddChild(sequence4);
            Action_bt_WrapperAI_Monster_BTMonsterBaozou_node488 _node18 = new Action_bt_WrapperAI_Monster_BTMonsterBaozou_node488();

            _node18.SetClassNameString("Action");
            _node18.SetId(0x1e8);
            sequence4.AddChild(_node18);
            sequence4.SetHasEvents(sequence4.HasEvents() | _node18.HasEvents());
            DecoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node65 _node19 = new DecoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node65();

            _node19.SetClassNameString("DecoratorLoop");
            _node19.SetId(0x41);
            sequence4.AddChild(_node19);
            Noop noop2 = new Noop();

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

            precondition5.SetClassNameString("WithPrecondition");
            precondition5.SetId(0x22);
            loop.AddChild(precondition5);
            Condition_bt_WrapperAI_Monster_BTMonsterBaozou_node40 _node20 = new Condition_bt_WrapperAI_Monster_BTMonsterBaozou_node40();

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

            sequence5.SetClassNameString("Sequence");
            sequence5.SetId(0x29);
            precondition5.AddChild(sequence5);
            Action_bt_WrapperAI_Monster_BTMonsterBaozou_node42 _node21 = new Action_bt_WrapperAI_Monster_BTMonsterBaozou_node42();

            _node21.SetClassNameString("Action");
            _node21.SetId(0x2a);
            sequence5.AddChild(_node21);
            sequence5.SetHasEvents(sequence5.HasEvents() | _node21.HasEvents());
            DecoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node43 _node22 = new DecoratorLoop_bt_WrapperAI_Monster_BTMonsterBaozou_node43();

            _node22.SetClassNameString("DecoratorLoop");
            _node22.SetId(0x2b);
            sequence5.AddChild(_node22);
            Noop noop3 = new Noop();

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

            precondition6.SetClassNameString("WithPrecondition");
            precondition6.SetId(450);
            loop.AddChild(precondition6);
            Condition_bt_WrapperAI_Monster_BTMonsterBaozou_node454 _node23 = new Condition_bt_WrapperAI_Monster_BTMonsterBaozou_node454();

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

            sequence6.SetClassNameString("Sequence");
            sequence6.SetId(0x1c7);
            precondition6.AddChild(sequence6);
            Action_bt_WrapperAI_Monster_BTMonsterBaozou_node456 _node24 = new Action_bt_WrapperAI_Monster_BTMonsterBaozou_node456();

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

            _node25.SetClassNameString("DecoratorLoop");
            _node25.SetId(0x1c9);
            sequence6.AddChild(_node25);
            Noop noop4 = new Noop();

            noop4.SetClassNameString("Noop");
            noop4.SetId(2);
            _node25.AddChild(noop4);
            _node25.SetHasEvents(_node25.HasEvents() | noop4.HasEvents());
            sequence6.SetHasEvents(sequence6.HasEvents() | _node25.HasEvents());
            precondition6.SetHasEvents(precondition6.HasEvents() | sequence6.HasEvents());
            loop.SetHasEvents(loop.HasEvents() | precondition6.HasEvents());
            _node5.SetHasEvents(_node5.HasEvents() | loop.HasEvents());
            pChild.SetHasEvents(pChild.HasEvents() | _node5.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/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);
        }
示例#14
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);
        }
示例#15
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("par_test/par_as_ref_param");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("EmployeeParTestAgent");
#endif
			// pars
			bt.AddPar("EmployeeParTestAgent", "bool", "par0_boolean_0", "false");
			bt.AddPar("EmployeeParTestAgent", "vector<bool>", "par0_boolean_list_0", "0:");
			bt.AddPar("EmployeeParTestAgent", "byte", "par0_byte_0", "0");
			bt.AddPar("EmployeeParTestAgent", "vector<byte>", "par0_byte_list_0", "0:");
			bt.AddPar("EmployeeParTestAgent", "char", "par0_char_0", "A");
			bt.AddPar("EmployeeParTestAgent", "vector<char>", "par0_char_list_0", "0:");
			bt.AddPar("EmployeeParTestAgent", "TNS.NE.NAT.eColor", "par0_ecolor_0", "WHITE");
			bt.AddPar("EmployeeParTestAgent", "vector<TNS.NE.NAT.eColor>", "par0_ecolor_list_0", "0:");
			bt.AddPar("EmployeeParTestAgent", "sbyte", "par0_sbyte_0", "0");
			bt.AddPar("EmployeeParTestAgent", "vector<sbyte>", "par0_sbyte_list_0", "0:");
			bt.AddPar("EmployeeParTestAgent", "short", "par1_short_0", "0");
			bt.AddPar("EmployeeParTestAgent", "int", "par1_int_0", "0");
			bt.AddPar("EmployeeParTestAgent", "vector<int>", "par1_int_list_0", "0:");
			bt.AddPar("EmployeeParTestAgent", "long", "par1_long_0", "0");
			bt.AddPar("EmployeeParTestAgent", "TNS.ST.PER.WRK.kEmployee", "par1_kemployee_0", "{boss=null;car={brand=\"\";color=RED;price=0;};code=c;id=0;isMale=false;name=\"tomlp\";skinColor=RED;weight=0;}");
			bt.AddPar("EmployeeParTestAgent", "vector<TNS.ST.PER.WRK.kEmployee>", "par1_kemployee_list_0", "0:");
			bt.AddPar("EmployeeParTestAgent", "ushort", "par1_ushort_0", "0");
			bt.AddPar("EmployeeParTestAgent", "behaviac.Agent", "par2_agent_0", "null");
			bt.AddPar("EmployeeParTestAgent", "vector<behaviac.Agent>", "par2_agent_list_0", "0:");
			bt.AddPar("EmployeeParTestAgent", "double", "par2_double_0", "0");
			bt.AddPar("EmployeeParTestAgent", "float", "par2_single_0", "0");
			bt.AddPar("EmployeeParTestAgent", "vector<float>", "par2_single_list_0", "0:");
			bt.AddPar("EmployeeParTestAgent", "string", "par2_string_0", "");
			bt.AddPar("EmployeeParTestAgent", "vector<string>", "par2_string_list_0", "0:");
			bt.AddPar("EmployeeParTestAgent", "uint", "par2_uint_0", "0");
			bt.AddPar("EmployeeParTestAgent", "ulong", "par2_ulong_0", "0");
			bt.AddPar("EmployeeParTestAgent", "string", "par2_SzString_0", "this is char* test");
			bt.AddPar("EmployeeParTestAgent", "string", "par2_CSzStrng_0", "this is const char* test");
			bt.AddPar("EmployeeParTestAgent", "long", "par2_longlong_0", "-666");
			bt.AddPar("EmployeeParTestAgent", "ulong", "par2_ulonglong_0", "666");
			// children
			{
				Sequence node13 = new Sequence();
				node13.SetClassNameString("Sequence");
				node13.SetId(13);
#if !BEHAVIAC_RELEASE
				node13.SetAgentType("EmployeeParTestAgent");
#endif
				bt.AddChild(node13);
				{
					Sequence node30 = new Sequence();
					node30.SetClassNameString("Sequence");
					node30.SetId(30);
#if !BEHAVIAC_RELEASE
					node30.SetAgentType("EmployeeParTestAgent");
#endif
					node13.AddChild(node30);
					{
						Sequence node1 = new Sequence();
						node1.SetClassNameString("Sequence");
						node1.SetId(1);
#if !BEHAVIAC_RELEASE
						node1.SetAgentType("EmployeeParTestAgent");
#endif
						node30.AddChild(node1);
						{
							Action_bt_par_test_par_as_ref_param_node0 node0 = new Action_bt_par_test_par_as_ref_param_node0();
							node0.SetClassNameString("Action");
							node0.SetId(0);
#if !BEHAVIAC_RELEASE
							node0.SetAgentType("EmployeeParTestAgent");
#endif
							node1.AddChild(node0);
							node1.SetHasEvents(node1.HasEvents() | node0.HasEvents());
						}
						{
							Action_bt_par_test_par_as_ref_param_node17 node17 = new Action_bt_par_test_par_as_ref_param_node17();
							node17.SetClassNameString("Action");
							node17.SetId(17);
#if !BEHAVIAC_RELEASE
							node17.SetAgentType("EmployeeParTestAgent");
#endif
							node1.AddChild(node17);
							node1.SetHasEvents(node1.HasEvents() | node17.HasEvents());
						}
						{
							Action_bt_par_test_par_as_ref_param_node2 node2 = new Action_bt_par_test_par_as_ref_param_node2();
							node2.SetClassNameString("Action");
							node2.SetId(2);
#if !BEHAVIAC_RELEASE
							node2.SetAgentType("EmployeeParTestAgent");
#endif
							node1.AddChild(node2);
							node1.SetHasEvents(node1.HasEvents() | node2.HasEvents());
						}
						{
							Action_bt_par_test_par_as_ref_param_node3 node3 = new Action_bt_par_test_par_as_ref_param_node3();
							node3.SetClassNameString("Action");
							node3.SetId(3);
#if !BEHAVIAC_RELEASE
							node3.SetAgentType("EmployeeParTestAgent");
#endif
							node1.AddChild(node3);
							node1.SetHasEvents(node1.HasEvents() | node3.HasEvents());
						}
						{
							Action_bt_par_test_par_as_ref_param_node4 node4 = new Action_bt_par_test_par_as_ref_param_node4();
							node4.SetClassNameString("Action");
							node4.SetId(4);
#if !BEHAVIAC_RELEASE
							node4.SetAgentType("EmployeeParTestAgent");
#endif
							node1.AddChild(node4);
							node1.SetHasEvents(node1.HasEvents() | node4.HasEvents());
						}
						{
							Action_bt_par_test_par_as_ref_param_node5 node5 = new Action_bt_par_test_par_as_ref_param_node5();
							node5.SetClassNameString("Action");
							node5.SetId(5);
#if !BEHAVIAC_RELEASE
							node5.SetAgentType("EmployeeParTestAgent");
#endif
							node1.AddChild(node5);
							node1.SetHasEvents(node1.HasEvents() | node5.HasEvents());
						}
						{
							Action_bt_par_test_par_as_ref_param_node6 node6 = new Action_bt_par_test_par_as_ref_param_node6();
							node6.SetClassNameString("Action");
							node6.SetId(6);
#if !BEHAVIAC_RELEASE
							node6.SetAgentType("EmployeeParTestAgent");
#endif
							node1.AddChild(node6);
							node1.SetHasEvents(node1.HasEvents() | node6.HasEvents());
						}
						{
							Action_bt_par_test_par_as_ref_param_node7 node7 = new Action_bt_par_test_par_as_ref_param_node7();
							node7.SetClassNameString("Action");
							node7.SetId(7);
#if !BEHAVIAC_RELEASE
							node7.SetAgentType("EmployeeParTestAgent");
#endif
							node1.AddChild(node7);
							node1.SetHasEvents(node1.HasEvents() | node7.HasEvents());
						}
						{
							Action_bt_par_test_par_as_ref_param_node8 node8 = new Action_bt_par_test_par_as_ref_param_node8();
							node8.SetClassNameString("Action");
							node8.SetId(8);
#if !BEHAVIAC_RELEASE
							node8.SetAgentType("EmployeeParTestAgent");
#endif
							node1.AddChild(node8);
							node1.SetHasEvents(node1.HasEvents() | node8.HasEvents());
						}
						{
							Action_bt_par_test_par_as_ref_param_node35 node35 = new Action_bt_par_test_par_as_ref_param_node35();
							node35.SetClassNameString("Action");
							node35.SetId(35);
#if !BEHAVIAC_RELEASE
							node35.SetAgentType("EmployeeParTestAgent");
#endif
							node1.AddChild(node35);
							node1.SetHasEvents(node1.HasEvents() | node35.HasEvents());
						}
						{
							Action_bt_par_test_par_as_ref_param_node36 node36 = new Action_bt_par_test_par_as_ref_param_node36();
							node36.SetClassNameString("Action");
							node36.SetId(36);
#if !BEHAVIAC_RELEASE
							node36.SetAgentType("EmployeeParTestAgent");
#endif
							node1.AddChild(node36);
							node1.SetHasEvents(node1.HasEvents() | node36.HasEvents());
						}
						{
							Action_bt_par_test_par_as_ref_param_node31 node31 = new Action_bt_par_test_par_as_ref_param_node31();
							node31.SetClassNameString("Action");
							node31.SetId(31);
#if !BEHAVIAC_RELEASE
							node31.SetAgentType("EmployeeParTestAgent");
#endif
							node1.AddChild(node31);
							node1.SetHasEvents(node1.HasEvents() | node31.HasEvents());
						}
						{
							Action_bt_par_test_par_as_ref_param_node32 node32 = new Action_bt_par_test_par_as_ref_param_node32();
							node32.SetClassNameString("Action");
							node32.SetId(32);
#if !BEHAVIAC_RELEASE
							node32.SetAgentType("EmployeeParTestAgent");
#endif
							node1.AddChild(node32);
							node1.SetHasEvents(node1.HasEvents() | node32.HasEvents());
						}
						node30.SetHasEvents(node30.HasEvents() | node1.HasEvents());
					}
					{
						Sequence node14 = new Sequence();
						node14.SetClassNameString("Sequence");
						node14.SetId(14);
#if !BEHAVIAC_RELEASE
						node14.SetAgentType("EmployeeParTestAgent");
#endif
						node30.AddChild(node14);
						{
							Action_bt_par_test_par_as_ref_param_node9 node9 = new Action_bt_par_test_par_as_ref_param_node9();
							node9.SetClassNameString("Action");
							node9.SetId(9);
#if !BEHAVIAC_RELEASE
							node9.SetAgentType("EmployeeParTestAgent");
#endif
							node14.AddChild(node9);
							node14.SetHasEvents(node14.HasEvents() | node9.HasEvents());
						}
						{
							Action_bt_par_test_par_as_ref_param_node10 node10 = new Action_bt_par_test_par_as_ref_param_node10();
							node10.SetClassNameString("Action");
							node10.SetId(10);
#if !BEHAVIAC_RELEASE
							node10.SetAgentType("EmployeeParTestAgent");
#endif
							node14.AddChild(node10);
							node14.SetHasEvents(node14.HasEvents() | node10.HasEvents());
						}
						{
							Action_bt_par_test_par_as_ref_param_node11 node11 = new Action_bt_par_test_par_as_ref_param_node11();
							node11.SetClassNameString("Action");
							node11.SetId(11);
#if !BEHAVIAC_RELEASE
							node11.SetAgentType("EmployeeParTestAgent");
#endif
							node14.AddChild(node11);
							node14.SetHasEvents(node14.HasEvents() | node11.HasEvents());
						}
						{
							Action_bt_par_test_par_as_ref_param_node12 node12 = new Action_bt_par_test_par_as_ref_param_node12();
							node12.SetClassNameString("Action");
							node12.SetId(12);
#if !BEHAVIAC_RELEASE
							node12.SetAgentType("EmployeeParTestAgent");
#endif
							node14.AddChild(node12);
							node14.SetHasEvents(node14.HasEvents() | node12.HasEvents());
						}
						{
							Action_bt_par_test_par_as_ref_param_node18 node18 = new Action_bt_par_test_par_as_ref_param_node18();
							node18.SetClassNameString("Action");
							node18.SetId(18);
#if !BEHAVIAC_RELEASE
							node18.SetAgentType("EmployeeParTestAgent");
#endif
							node14.AddChild(node18);
							node14.SetHasEvents(node14.HasEvents() | node18.HasEvents());
						}
						{
							Action_bt_par_test_par_as_ref_param_node19 node19 = new Action_bt_par_test_par_as_ref_param_node19();
							node19.SetClassNameString("Action");
							node19.SetId(19);
#if !BEHAVIAC_RELEASE
							node19.SetAgentType("EmployeeParTestAgent");
#endif
							node14.AddChild(node19);
							node14.SetHasEvents(node14.HasEvents() | node19.HasEvents());
						}
						{
							Action_bt_par_test_par_as_ref_param_node20 node20 = new Action_bt_par_test_par_as_ref_param_node20();
							node20.SetClassNameString("Action");
							node20.SetId(20);
#if !BEHAVIAC_RELEASE
							node20.SetAgentType("EmployeeParTestAgent");
#endif
							node14.AddChild(node20);
							node14.SetHasEvents(node14.HasEvents() | node20.HasEvents());
						}
						node30.SetHasEvents(node30.HasEvents() | node14.HasEvents());
					}
					{
						Sequence node22 = new Sequence();
						node22.SetClassNameString("Sequence");
						node22.SetId(22);
#if !BEHAVIAC_RELEASE
						node22.SetAgentType("EmployeeParTestAgent");
#endif
						node30.AddChild(node22);
						{
							Action_bt_par_test_par_as_ref_param_node16 node16 = new Action_bt_par_test_par_as_ref_param_node16();
							node16.SetClassNameString("Action");
							node16.SetId(16);
#if !BEHAVIAC_RELEASE
							node16.SetAgentType("EmployeeParTestAgent");
#endif
							node22.AddChild(node16);
							node22.SetHasEvents(node22.HasEvents() | node16.HasEvents());
						}
						{
							Action_bt_par_test_par_as_ref_param_node21 node21 = new Action_bt_par_test_par_as_ref_param_node21();
							node21.SetClassNameString("Action");
							node21.SetId(21);
#if !BEHAVIAC_RELEASE
							node21.SetAgentType("EmployeeParTestAgent");
#endif
							node22.AddChild(node21);
							node22.SetHasEvents(node22.HasEvents() | node21.HasEvents());
						}
						{
							Action_bt_par_test_par_as_ref_param_node15 node15 = new Action_bt_par_test_par_as_ref_param_node15();
							node15.SetClassNameString("Action");
							node15.SetId(15);
#if !BEHAVIAC_RELEASE
							node15.SetAgentType("EmployeeParTestAgent");
#endif
							node22.AddChild(node15);
							node22.SetHasEvents(node22.HasEvents() | node15.HasEvents());
						}
						{
							Action_bt_par_test_par_as_ref_param_node29 node29 = new Action_bt_par_test_par_as_ref_param_node29();
							node29.SetClassNameString("Action");
							node29.SetId(29);
#if !BEHAVIAC_RELEASE
							node29.SetAgentType("EmployeeParTestAgent");
#endif
							node22.AddChild(node29);
							node22.SetHasEvents(node22.HasEvents() | node29.HasEvents());
						}
						{
							Action_bt_par_test_par_as_ref_param_node26 node26 = new Action_bt_par_test_par_as_ref_param_node26();
							node26.SetClassNameString("Action");
							node26.SetId(26);
#if !BEHAVIAC_RELEASE
							node26.SetAgentType("EmployeeParTestAgent");
#endif
							node22.AddChild(node26);
							node22.SetHasEvents(node22.HasEvents() | node26.HasEvents());
						}
						{
							Action_bt_par_test_par_as_ref_param_node27 node27 = new Action_bt_par_test_par_as_ref_param_node27();
							node27.SetClassNameString("Action");
							node27.SetId(27);
#if !BEHAVIAC_RELEASE
							node27.SetAgentType("EmployeeParTestAgent");
#endif
							node22.AddChild(node27);
							node22.SetHasEvents(node22.HasEvents() | node27.HasEvents());
						}
						{
							Action_bt_par_test_par_as_ref_param_node24 node24 = new Action_bt_par_test_par_as_ref_param_node24();
							node24.SetClassNameString("Action");
							node24.SetId(24);
#if !BEHAVIAC_RELEASE
							node24.SetAgentType("EmployeeParTestAgent");
#endif
							node22.AddChild(node24);
							node22.SetHasEvents(node22.HasEvents() | node24.HasEvents());
						}
						{
							Action_bt_par_test_par_as_ref_param_node25 node25 = new Action_bt_par_test_par_as_ref_param_node25();
							node25.SetClassNameString("Action");
							node25.SetId(25);
#if !BEHAVIAC_RELEASE
							node25.SetAgentType("EmployeeParTestAgent");
#endif
							node22.AddChild(node25);
							node22.SetHasEvents(node22.HasEvents() | node25.HasEvents());
						}
						{
							Action_bt_par_test_par_as_ref_param_node23 node23 = new Action_bt_par_test_par_as_ref_param_node23();
							node23.SetClassNameString("Action");
							node23.SetId(23);
#if !BEHAVIAC_RELEASE
							node23.SetAgentType("EmployeeParTestAgent");
#endif
							node22.AddChild(node23);
							node22.SetHasEvents(node22.HasEvents() | node23.HasEvents());
						}
						{
							Action_bt_par_test_par_as_ref_param_node28 node28 = new Action_bt_par_test_par_as_ref_param_node28();
							node28.SetClassNameString("Action");
							node28.SetId(28);
#if !BEHAVIAC_RELEASE
							node28.SetAgentType("EmployeeParTestAgent");
#endif
							node22.AddChild(node28);
							node22.SetHasEvents(node22.HasEvents() | node28.HasEvents());
						}
						node30.SetHasEvents(node30.HasEvents() | node22.HasEvents());
					}
					node13.SetHasEvents(node13.HasEvents() | node30.HasEvents());
				}
				{
					DecoratorLoop_bt_par_test_par_as_ref_param_node33 node33 = new DecoratorLoop_bt_par_test_par_as_ref_param_node33();
					node33.SetClassNameString("DecoratorLoop");
					node33.SetId(33);
#if !BEHAVIAC_RELEASE
					node33.SetAgentType("EmployeeParTestAgent");
#endif
					node13.AddChild(node33);
					{
						Noop node34 = new Noop();
						node34.SetClassNameString("Noop");
						node34.SetId(34);
#if !BEHAVIAC_RELEASE
						node34.SetAgentType("EmployeeParTestAgent");
#endif
						node33.AddChild(node34);
						node33.SetHasEvents(node33.HasEvents() | node34.HasEvents());
					}
					node13.SetHasEvents(node13.HasEvents() | node33.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node13.HasEvents());
			}
			return true;
		}
示例#16
0
        public static bool build_behavior_tree(BehaviorTree bt)
        {
            bt.SetClassNameString("BehaviorTree");
            bt.SetId(-1);
            bt.SetName("DJTest");
            bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
            bt.SetAgentType("DJTest");
#endif
            // children
            {
                Sequence node0 = new Sequence();
                node0.SetClassNameString("Sequence");
                node0.SetId(0);
#if !BEHAVIAC_RELEASE
                node0.SetAgentType("DJTest");
#endif
                bt.AddChild(node0);
                {
                    Wait_bt_DJTest_node1 node1 = new Wait_bt_DJTest_node1();
                    node1.SetClassNameString("Wait");
                    node1.SetId(1);
#if !BEHAVIAC_RELEASE
                    node1.SetAgentType("DJTest");
#endif
                    node0.AddChild(node1);
                    node0.SetHasEvents(node0.HasEvents() | node1.HasEvents());
                }
                {
                    Action_bt_DJTest_node2 node2 = new Action_bt_DJTest_node2();
                    node2.SetClassNameString("Action");
                    node2.SetId(2);
#if !BEHAVIAC_RELEASE
                    node2.SetAgentType("DJTest");
#endif
                    node0.AddChild(node2);
                    node0.SetHasEvents(node0.HasEvents() | node2.HasEvents());
                }
                {
                    IfElse node3 = new IfElse();
                    node3.SetClassNameString("IfElse");
                    node3.SetId(3);
#if !BEHAVIAC_RELEASE
                    node3.SetAgentType("DJTest");
#endif
                    node0.AddChild(node3);
                    {
                        Condition_bt_DJTest_node4 node4 = new Condition_bt_DJTest_node4();
                        node4.SetClassNameString("Condition");
                        node4.SetId(4);
#if !BEHAVIAC_RELEASE
                        node4.SetAgentType("DJTest");
#endif
                        node3.AddChild(node4);
                        node3.SetHasEvents(node3.HasEvents() | node4.HasEvents());
                    }
                    {
                        Sequence node5 = new Sequence();
                        node5.SetClassNameString("Sequence");
                        node5.SetId(5);
#if !BEHAVIAC_RELEASE
                        node5.SetAgentType("DJTest");
#endif
                        node3.AddChild(node5);
                        {
                            Action_bt_DJTest_node7 node7 = new Action_bt_DJTest_node7();
                            node7.SetClassNameString("Action");
                            node7.SetId(7);
#if !BEHAVIAC_RELEASE
                            node7.SetAgentType("DJTest");
#endif
                            node5.AddChild(node7);
                            node5.SetHasEvents(node5.HasEvents() | node7.HasEvents());
                        }
                        {
                            Action_bt_DJTest_node8 node8 = new Action_bt_DJTest_node8();
                            node8.SetClassNameString("Action");
                            node8.SetId(8);
#if !BEHAVIAC_RELEASE
                            node8.SetAgentType("DJTest");
#endif
                            node5.AddChild(node8);
                            node5.SetHasEvents(node5.HasEvents() | node8.HasEvents());
                        }
                        node3.SetHasEvents(node3.HasEvents() | node5.HasEvents());
                    }
                    {
                        Noop node6 = new Noop();
                        node6.SetClassNameString("Noop");
                        node6.SetId(6);
#if !BEHAVIAC_RELEASE
                        node6.SetAgentType("DJTest");
#endif
                        node3.AddChild(node6);
                        node3.SetHasEvents(node3.HasEvents() | node6.HasEvents());
                    }
                    node0.SetHasEvents(node0.HasEvents() | node3.HasEvents());
                }
                bt.SetHasEvents(bt.HasEvents() | node0.HasEvents());
            }
            return(true);
        }
示例#17
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("node_test/action_noop_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);
				{
					Noop node2 = new Noop();
					node2.SetClassNameString("Noop");
					node2.SetId(2);
#if !BEHAVIAC_RELEASE
					node2.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node2);
					node0.SetHasEvents(node0.HasEvents() | node2.HasEvents());
				}
				{
					Noop node1 = new Noop();
					node1.SetClassNameString("Noop");
					node1.SetId(1);
#if !BEHAVIAC_RELEASE
					node1.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node1);
					node0.SetHasEvents(node0.HasEvents() | node1.HasEvents());
				}
				{
					Assignment_bt_node_test_action_noop_ut_0_node4 node4 = new Assignment_bt_node_test_action_noop_ut_0_node4();
					node4.SetClassNameString("Assignment");
					node4.SetId(4);
#if !BEHAVIAC_RELEASE
					node4.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node4);
					node0.SetHasEvents(node0.HasEvents() | node4.HasEvents());
				}
				{
					Noop node3 = new Noop();
					node3.SetClassNameString("Noop");
					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;
		}
示例#18
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);
        }
示例#19
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);
        }
示例#20
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);
        }