Ejemplo n.º 1
0
        public int FindMethodIndex(Method method)
        {
            for (int i = 0; i < this.GetChildrenCount(); ++i)
            {
                BehaviorNode child = this.GetChild(i);

                if (child == method)
                {
                    return i;
                }
            }

            return -1;
        }
Ejemplo n.º 2
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("node_test/htn/travel/travel_by_air");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("HTNAgentTravel");
#endif
			// pars
			bt.AddPar("HTNAgentTravel", "int", "ax", "0");
			bt.AddPar("HTNAgentTravel", "int", "ay", "0");
			bt.AddPar("HTNAgentTravel", "vector<int>", "as", "0:");
			bt.AddPar("HTNAgentTravel", "int", "_$local_task_param_$_0", "0");
			bt.AddPar("HTNAgentTravel", "int", "_$local_task_param_$_1", "0");
			// children
			{
				Task_bt_node_test_htn_travel_travel_by_air_node0 node0 = new Task_bt_node_test_htn_travel_travel_by_air_node0();
				node0.SetClassNameString("Task");
				node0.SetId(0);
#if !BEHAVIAC_RELEASE
				node0.SetAgentType("HTNAgentTravel");
#endif
				bt.AddChild(node0);
				{
					Method node1 = new Method();
					node1.SetClassNameString("Method");
					node1.SetId(1);
#if !BEHAVIAC_RELEASE
					node1.SetAgentType("HTNAgentTravel");
#endif
					// attachments
					{
						Precondition_bt_node_test_htn_travel_travel_by_air_attach2 attach2 = new Precondition_bt_node_test_htn_travel_travel_by_air_attach2();
						attach2.SetClassNameString("Precondition");
						attach2.SetId(2);
#if !BEHAVIAC_RELEASE
						attach2.SetAgentType("HTNAgentTravel");
#endif
						node1.Attach(attach2, true, false, false);
					}
					{
						Precondition_bt_node_test_htn_travel_travel_by_air_attach3 attach3 = new Precondition_bt_node_test_htn_travel_travel_by_air_attach3();
						attach3.SetClassNameString("Precondition");
						attach3.SetId(3);
#if !BEHAVIAC_RELEASE
						attach3.SetAgentType("HTNAgentTravel");
#endif
						node1.Attach(attach3, true, false, false);
					}
					node0.AddChild(node1);
					{
						DecoratorIterator_bt_node_test_htn_travel_travel_by_air_node5 node5 = new DecoratorIterator_bt_node_test_htn_travel_travel_by_air_node5();
						node5.SetClassNameString("DecoratorIterator");
						node5.SetId(5);
#if !BEHAVIAC_RELEASE
						node5.SetAgentType("HTNAgentTravel");
#endif
						node1.AddChild(node5);
						{
							Sequence node6 = new Sequence();
							node6.SetClassNameString("Sequence");
							node6.SetId(6);
#if !BEHAVIAC_RELEASE
							node6.SetAgentType("HTNAgentTravel");
#endif
							node5.AddChild(node6);
							{
								ReferencedBehavior_bt_node_test_htn_travel_travel_by_air_node8 node8 = new ReferencedBehavior_bt_node_test_htn_travel_travel_by_air_node8();
								node8.SetClassNameString("ReferencedBehavior");
								node8.SetId(8);
#if !BEHAVIAC_RELEASE
								node8.SetAgentType("HTNAgentTravel");
#endif
								node6.AddChild(node8);
								node6.SetHasEvents(node6.HasEvents() | node8.HasEvents());
							}
							{
								Action_bt_node_test_htn_travel_travel_by_air_node7 node7 = new Action_bt_node_test_htn_travel_travel_by_air_node7();
								node7.SetClassNameString("Action");
								node7.SetId(7);
#if !BEHAVIAC_RELEASE
								node7.SetAgentType("HTNAgentTravel");
#endif
								node6.AddChild(node7);
								node6.SetHasEvents(node6.HasEvents() | node7.HasEvents());
							}
							{
								ReferencedBehavior_bt_node_test_htn_travel_travel_by_air_node4 node4 = new ReferencedBehavior_bt_node_test_htn_travel_travel_by_air_node4();
								node4.SetClassNameString("ReferencedBehavior");
								node4.SetId(4);
#if !BEHAVIAC_RELEASE
								node4.SetAgentType("HTNAgentTravel");
#endif
								node6.AddChild(node4);
								node6.SetHasEvents(node6.HasEvents() | node4.HasEvents());
							}
							node5.SetHasEvents(node5.HasEvents() | node6.HasEvents());
						}
						node1.SetHasEvents(node1.HasEvents() | node5.HasEvents());
					}
					node0.SetHasEvents(node0.HasEvents() | node1.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node0.HasEvents());
			}
			return true;
		}
Ejemplo n.º 3
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("node_test/htn/travel/travel");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("HTNAgentTravel");
#endif
			// pars
			bt.AddPar("HTNAgentTravel", "int", "_$local_task_param_$_0", "0");
			bt.AddPar("HTNAgentTravel", "int", "_$local_task_param_$_1", "0");
			// children
			{
				Task_bt_node_test_htn_travel_travel_node0 node0 = new Task_bt_node_test_htn_travel_travel_node0();
				node0.SetClassNameString("Task");
				node0.SetId(0);
#if !BEHAVIAC_RELEASE
				node0.SetAgentType("HTNAgentTravel");
#endif
				bt.AddChild(node0);
				{
					Method node2 = new Method();
					node2.SetClassNameString("Method");
					node2.SetId(2);
#if !BEHAVIAC_RELEASE
					node2.SetAgentType("HTNAgentTravel");
#endif
					// attachments
					{
						Precondition_bt_node_test_htn_travel_travel_attach1 attach1 = new Precondition_bt_node_test_htn_travel_travel_attach1();
						attach1.SetClassNameString("Precondition");
						attach1.SetId(1);
#if !BEHAVIAC_RELEASE
						attach1.SetAgentType("HTNAgentTravel");
#endif
						node2.Attach(attach1, true, false, false);
					}
					node0.AddChild(node2);
					{
						Action_bt_node_test_htn_travel_travel_node3 node3 = new Action_bt_node_test_htn_travel_travel_node3();
						node3.SetClassNameString("Action");
						node3.SetId(3);
#if !BEHAVIAC_RELEASE
						node3.SetAgentType("HTNAgentTravel");
#endif
						node2.AddChild(node3);
						node2.SetHasEvents(node2.HasEvents() | node3.HasEvents());
					}
					node0.SetHasEvents(node0.HasEvents() | node2.HasEvents());
				}
				{
					Method node5 = new Method();
					node5.SetClassNameString("Method");
					node5.SetId(5);
#if !BEHAVIAC_RELEASE
					node5.SetAgentType("HTNAgentTravel");
#endif
					// attachments
					{
						Precondition_bt_node_test_htn_travel_travel_attach4 attach4 = new Precondition_bt_node_test_htn_travel_travel_attach4();
						attach4.SetClassNameString("Precondition");
						attach4.SetId(4);
#if !BEHAVIAC_RELEASE
						attach4.SetAgentType("HTNAgentTravel");
#endif
						node5.Attach(attach4, true, false, false);
					}
					node0.AddChild(node5);
					{
						ReferencedBehavior_bt_node_test_htn_travel_travel_node6 node6 = new ReferencedBehavior_bt_node_test_htn_travel_travel_node6();
						node6.SetClassNameString("ReferencedBehavior");
						node6.SetId(6);
#if !BEHAVIAC_RELEASE
						node6.SetAgentType("HTNAgentTravel");
#endif
						node5.AddChild(node6);
						node5.SetHasEvents(node5.HasEvents() | node6.HasEvents());
					}
					node0.SetHasEvents(node0.HasEvents() | node5.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node0.HasEvents());
			}
			return true;
		}
Ejemplo n.º 4
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("node_test/htn/travel/root");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("HTNAgentTravel");
#endif
			// pars
			bt.AddPar("HTNAgentTravel", "int", "start", "0");
			bt.AddPar("HTNAgentTravel", "int", "finish", "0");
			// children
			{
				Task_bt_node_test_htn_travel_root_node1 node1 = new Task_bt_node_test_htn_travel_root_node1();
				node1.SetClassNameString("Task");
				node1.SetId(1);
#if !BEHAVIAC_RELEASE
				node1.SetAgentType("HTNAgentTravel");
#endif
				bt.AddChild(node1);
				{
					Method node2 = new Method();
					node2.SetClassNameString("Method");
					node2.SetId(2);
#if !BEHAVIAC_RELEASE
					node2.SetAgentType("HTNAgentTravel");
#endif
					// attachments
					{
						Precondition_bt_node_test_htn_travel_root_attach0 attach0 = new Precondition_bt_node_test_htn_travel_root_attach0();
						attach0.SetClassNameString("Precondition");
						attach0.SetId(0);
#if !BEHAVIAC_RELEASE
						attach0.SetAgentType("HTNAgentTravel");
#endif
						node2.Attach(attach0, true, false, false);
					}
					{
						Precondition_bt_node_test_htn_travel_root_attach3 attach3 = new Precondition_bt_node_test_htn_travel_root_attach3();
						attach3.SetClassNameString("Precondition");
						attach3.SetId(3);
#if !BEHAVIAC_RELEASE
						attach3.SetAgentType("HTNAgentTravel");
#endif
						node2.Attach(attach3, true, false, false);
					}
					node1.AddChild(node2);
					{
						ReferencedBehavior_bt_node_test_htn_travel_root_node4 node4 = new ReferencedBehavior_bt_node_test_htn_travel_root_node4();
						node4.SetClassNameString("ReferencedBehavior");
						node4.SetId(4);
#if !BEHAVIAC_RELEASE
						node4.SetAgentType("HTNAgentTravel");
#endif
						node2.AddChild(node4);
						node2.SetHasEvents(node2.HasEvents() | node4.HasEvents());
					}
					node1.SetHasEvents(node1.HasEvents() | node2.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node1.HasEvents());
			}
			return true;
		}
Ejemplo n.º 5
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("node_test/htn/house/root");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("HTNAgentHouse");
#endif
			// children
			{
				Task_bt_node_test_htn_house_root_node1 node1 = new Task_bt_node_test_htn_house_root_node1();
				node1.SetClassNameString("Task");
				node1.SetId(1);
#if !BEHAVIAC_RELEASE
				node1.SetAgentType("HTNAgentHouse");
#endif
				bt.AddChild(node1);
				{
					Method node0 = new Method();
					node0.SetClassNameString("Method");
					node0.SetId(0);
#if !BEHAVIAC_RELEASE
					node0.SetAgentType("HTNAgentHouse");
#endif
					node1.AddChild(node0);
					{
						Sequence node2 = new Sequence();
						node2.SetClassNameString("Sequence");
						node2.SetId(2);
#if !BEHAVIAC_RELEASE
						node2.SetAgentType("HTNAgentHouse");
#endif
						node0.AddChild(node2);
						{
							Parallel_bt_node_test_htn_house_root_node12 node12 = new Parallel_bt_node_test_htn_house_root_node12();
							node12.SetClassNameString("Parallel");
							node12.SetId(12);
#if !BEHAVIAC_RELEASE
							node12.SetAgentType("HTNAgentHouse");
#endif
							node2.AddChild(node12);
							{
								Action_bt_node_test_htn_house_root_node4 node4 = new Action_bt_node_test_htn_house_root_node4();
								node4.SetClassNameString("Action");
								node4.SetId(4);
#if !BEHAVIAC_RELEASE
								node4.SetAgentType("HTNAgentHouse");
#endif
								// attachments
								{
									Precondition_bt_node_test_htn_house_root_attach3 attach3 = new Precondition_bt_node_test_htn_house_root_attach3();
									attach3.SetClassNameString("Precondition");
									attach3.SetId(3);
#if !BEHAVIAC_RELEASE
									attach3.SetAgentType("HTNAgentHouse");
#endif
									node4.Attach(attach3, true, false, false);
								}
								{
									Effector_bt_node_test_htn_house_root_attach5 attach5 = new Effector_bt_node_test_htn_house_root_attach5();
									attach5.SetClassNameString("Effector");
									attach5.SetId(5);
#if !BEHAVIAC_RELEASE
									attach5.SetAgentType("HTNAgentHouse");
#endif
									node4.Attach(attach5, false, true, false);
								}
								{
									Effector_bt_node_test_htn_house_root_attach6 attach6 = new Effector_bt_node_test_htn_house_root_attach6();
									attach6.SetClassNameString("Effector");
									attach6.SetId(6);
#if !BEHAVIAC_RELEASE
									attach6.SetAgentType("HTNAgentHouse");
#endif
									node4.Attach(attach6, false, true, false);
								}
								node12.AddChild(node4);
								node12.SetHasEvents(node12.HasEvents() | node4.HasEvents());
							}
							{
								Action_bt_node_test_htn_house_root_node8 node8 = new Action_bt_node_test_htn_house_root_node8();
								node8.SetClassNameString("Action");
								node8.SetId(8);
#if !BEHAVIAC_RELEASE
								node8.SetAgentType("HTNAgentHouse");
#endif
								// attachments
								{
									Precondition_bt_node_test_htn_house_root_attach7 attach7 = new Precondition_bt_node_test_htn_house_root_attach7();
									attach7.SetClassNameString("Precondition");
									attach7.SetId(7);
#if !BEHAVIAC_RELEASE
									attach7.SetAgentType("HTNAgentHouse");
#endif
									node8.Attach(attach7, true, false, false);
								}
								{
									Effector_bt_node_test_htn_house_root_attach9 attach9 = new Effector_bt_node_test_htn_house_root_attach9();
									attach9.SetClassNameString("Effector");
									attach9.SetId(9);
#if !BEHAVIAC_RELEASE
									attach9.SetAgentType("HTNAgentHouse");
#endif
									node8.Attach(attach9, false, true, false);
								}
								{
									Effector_bt_node_test_htn_house_root_attach10 attach10 = new Effector_bt_node_test_htn_house_root_attach10();
									attach10.SetClassNameString("Effector");
									attach10.SetId(10);
#if !BEHAVIAC_RELEASE
									attach10.SetAgentType("HTNAgentHouse");
#endif
									node8.Attach(attach10, false, true, false);
								}
								node12.AddChild(node8);
								node12.SetHasEvents(node12.HasEvents() | node8.HasEvents());
							}
							node2.SetHasEvents(node2.HasEvents() | node12.HasEvents());
						}
						{
							ReferencedBehavior_bt_node_test_htn_house_root_node11 node11 = new ReferencedBehavior_bt_node_test_htn_house_root_node11();
							node11.SetClassNameString("ReferencedBehavior");
							node11.SetId(11);
#if !BEHAVIAC_RELEASE
							node11.SetAgentType("HTNAgentHouse");
#endif
							node2.AddChild(node11);
							node2.SetHasEvents(node2.HasEvents() | node11.HasEvents());
						}
						node0.SetHasEvents(node0.HasEvents() | node2.HasEvents());
					}
					node1.SetHasEvents(node1.HasEvents() | node0.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node1.HasEvents());
			}
			return true;
		}
Ejemplo n.º 6
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("node_test/htn/house/construct");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("HTNAgentHouse");
#endif
			// children
			{
				Task_bt_node_test_htn_house_construct_node0 node0 = new Task_bt_node_test_htn_house_construct_node0();
				node0.SetClassNameString("Task");
				node0.SetId(0);
#if !BEHAVIAC_RELEASE
				node0.SetAgentType("HTNAgentHouse");
#endif
				// attachments
				{
					Precondition_bt_node_test_htn_house_construct_attach1 attach1 = new Precondition_bt_node_test_htn_house_construct_attach1();
					attach1.SetClassNameString("Precondition");
					attach1.SetId(1);
#if !BEHAVIAC_RELEASE
					attach1.SetAgentType("HTNAgentHouse");
#endif
					node0.Attach(attach1, true, false, false);
				}
				{
					Effector_bt_node_test_htn_house_construct_attach2 attach2 = new Effector_bt_node_test_htn_house_construct_attach2();
					attach2.SetClassNameString("Effector");
					attach2.SetId(2);
#if !BEHAVIAC_RELEASE
					attach2.SetAgentType("HTNAgentHouse");
#endif
					node0.Attach(attach2, false, true, false);
				}
				bt.AddChild(node0);
				{
					Method node9 = new Method();
					node9.SetClassNameString("Method");
					node9.SetId(9);
#if !BEHAVIAC_RELEASE
					node9.SetAgentType("HTNAgentHouse");
#endif
					node0.AddChild(node9);
					{
						Sequence node10 = new Sequence();
						node10.SetClassNameString("Sequence");
						node10.SetId(10);
#if !BEHAVIAC_RELEASE
						node10.SetAgentType("HTNAgentHouse");
#endif
						node9.AddChild(node10);
						{
							Action_bt_node_test_htn_house_construct_node3 node3 = new Action_bt_node_test_htn_house_construct_node3();
							node3.SetClassNameString("Action");
							node3.SetId(3);
#if !BEHAVIAC_RELEASE
							node3.SetAgentType("HTNAgentHouse");
#endif
							node10.AddChild(node3);
							node10.SetHasEvents(node10.HasEvents() | node3.HasEvents());
						}
						{
							Action_bt_node_test_htn_house_construct_node4 node4 = new Action_bt_node_test_htn_house_construct_node4();
							node4.SetClassNameString("Action");
							node4.SetId(4);
#if !BEHAVIAC_RELEASE
							node4.SetAgentType("HTNAgentHouse");
#endif
							node10.AddChild(node4);
							node10.SetHasEvents(node10.HasEvents() | node4.HasEvents());
						}
						{
							Parallel_bt_node_test_htn_house_construct_node5 node5 = new Parallel_bt_node_test_htn_house_construct_node5();
							node5.SetClassNameString("Parallel");
							node5.SetId(5);
#if !BEHAVIAC_RELEASE
							node5.SetAgentType("HTNAgentHouse");
#endif
							node10.AddChild(node5);
							{
								Action_bt_node_test_htn_house_construct_node6 node6 = new Action_bt_node_test_htn_house_construct_node6();
								node6.SetClassNameString("Action");
								node6.SetId(6);
#if !BEHAVIAC_RELEASE
								node6.SetAgentType("HTNAgentHouse");
#endif
								node5.AddChild(node6);
								node5.SetHasEvents(node5.HasEvents() | node6.HasEvents());
							}
							{
								Action_bt_node_test_htn_house_construct_node7 node7 = new Action_bt_node_test_htn_house_construct_node7();
								node7.SetClassNameString("Action");
								node7.SetId(7);
#if !BEHAVIAC_RELEASE
								node7.SetAgentType("HTNAgentHouse");
#endif
								node5.AddChild(node7);
								node5.SetHasEvents(node5.HasEvents() | node7.HasEvents());
							}
							node10.SetHasEvents(node10.HasEvents() | node5.HasEvents());
						}
						{
							Action_bt_node_test_htn_house_construct_node8 node8 = new Action_bt_node_test_htn_house_construct_node8();
							node8.SetClassNameString("Action");
							node8.SetId(8);
#if !BEHAVIAC_RELEASE
							node8.SetAgentType("HTNAgentHouse");
#endif
							node10.AddChild(node8);
							node10.SetHasEvents(node10.HasEvents() | node8.HasEvents());
						}
						node9.SetHasEvents(node9.HasEvents() | node10.HasEvents());
					}
					node0.SetHasEvents(node0.HasEvents() | node9.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node0.HasEvents());
			}
			return true;
		}
Ejemplo n.º 7
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("node_test/htn/house/build_house");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("HTNAgentHouse");
#endif
			// children
			{
				Task_bt_node_test_htn_house_build_house_node7 node7 = new Task_bt_node_test_htn_house_build_house_node7();
				node7.SetClassNameString("Task");
				node7.SetId(7);
#if !BEHAVIAC_RELEASE
				node7.SetAgentType("HTNAgentHouse");
#endif
				// attachments
				{
					Precondition_bt_node_test_htn_house_build_house_attach0 attach0 = new Precondition_bt_node_test_htn_house_build_house_attach0();
					attach0.SetClassNameString("Precondition");
					attach0.SetId(0);
#if !BEHAVIAC_RELEASE
					attach0.SetAgentType("HTNAgentHouse");
#endif
					node7.Attach(attach0, true, false, false);
				}
				{
					Effector_bt_node_test_htn_house_build_house_attach1 attach1 = new Effector_bt_node_test_htn_house_build_house_attach1();
					attach1.SetClassNameString("Effector");
					attach1.SetId(1);
#if !BEHAVIAC_RELEASE
					attach1.SetAgentType("HTNAgentHouse");
#endif
					node7.Attach(attach1, false, true, false);
				}
				bt.AddChild(node7);
				{
					Method node2 = new Method();
					node2.SetClassNameString("Method");
					node2.SetId(2);
#if !BEHAVIAC_RELEASE
					node2.SetAgentType("HTNAgentHouse");
#endif
					node7.AddChild(node2);
					{
						Sequence node17 = new Sequence();
						node17.SetClassNameString("Sequence");
						node17.SetId(17);
#if !BEHAVIAC_RELEASE
						node17.SetAgentType("HTNAgentHouse");
#endif
						node2.AddChild(node17);
						{
							Parallel_bt_node_test_htn_house_build_house_node4 node4 = new Parallel_bt_node_test_htn_house_build_house_node4();
							node4.SetClassNameString("Parallel");
							node4.SetId(4);
#if !BEHAVIAC_RELEASE
							node4.SetAgentType("HTNAgentHouse");
#endif
							node17.AddChild(node4);
							{
								Action_bt_node_test_htn_house_build_house_node5 node5 = new Action_bt_node_test_htn_house_build_house_node5();
								node5.SetClassNameString("Action");
								node5.SetId(5);
#if !BEHAVIAC_RELEASE
								node5.SetAgentType("HTNAgentHouse");
#endif
								// attachments
								{
									Precondition_bt_node_test_htn_house_build_house_attach3 attach3 = new Precondition_bt_node_test_htn_house_build_house_attach3();
									attach3.SetClassNameString("Precondition");
									attach3.SetId(3);
#if !BEHAVIAC_RELEASE
									attach3.SetAgentType("HTNAgentHouse");
#endif
									node5.Attach(attach3, true, false, false);
								}
								{
									Effector_bt_node_test_htn_house_build_house_attach6 attach6 = new Effector_bt_node_test_htn_house_build_house_attach6();
									attach6.SetClassNameString("Effector");
									attach6.SetId(6);
#if !BEHAVIAC_RELEASE
									attach6.SetAgentType("HTNAgentHouse");
#endif
									node5.Attach(attach6, false, true, false);
								}
								node4.AddChild(node5);
								node4.SetHasEvents(node4.HasEvents() | node5.HasEvents());
							}
							{
								Action_bt_node_test_htn_house_build_house_node18 node18 = new Action_bt_node_test_htn_house_build_house_node18();
								node18.SetClassNameString("Action");
								node18.SetId(18);
#if !BEHAVIAC_RELEASE
								node18.SetAgentType("HTNAgentHouse");
#endif
								// attachments
								{
									Effector_bt_node_test_htn_house_build_house_attach8 attach8 = new Effector_bt_node_test_htn_house_build_house_attach8();
									attach8.SetClassNameString("Effector");
									attach8.SetId(8);
#if !BEHAVIAC_RELEASE
									attach8.SetAgentType("HTNAgentHouse");
#endif
									node18.Attach(attach8, false, true, false);
								}
								node4.AddChild(node18);
								node4.SetHasEvents(node4.HasEvents() | node18.HasEvents());
							}
							node17.SetHasEvents(node17.HasEvents() | node4.HasEvents());
						}
						{
							ReferencedBehavior_bt_node_test_htn_house_build_house_node20 node20 = new ReferencedBehavior_bt_node_test_htn_house_build_house_node20();
							node20.SetClassNameString("ReferencedBehavior");
							node20.SetId(20);
#if !BEHAVIAC_RELEASE
							node20.SetAgentType("HTNAgentHouse");
#endif
							node17.AddChild(node20);
							node17.SetHasEvents(node17.HasEvents() | node20.HasEvents());
						}
						{
							Action_bt_node_test_htn_house_build_house_node19 node19 = new Action_bt_node_test_htn_house_build_house_node19();
							node19.SetClassNameString("Action");
							node19.SetId(19);
#if !BEHAVIAC_RELEASE
							node19.SetAgentType("HTNAgentHouse");
#endif
							// attachments
							{
								Precondition_bt_node_test_htn_house_build_house_attach27 attach27 = new Precondition_bt_node_test_htn_house_build_house_attach27();
								attach27.SetClassNameString("Precondition");
								attach27.SetId(27);
#if !BEHAVIAC_RELEASE
								attach27.SetAgentType("HTNAgentHouse");
#endif
								node19.Attach(attach27, true, false, false);
							}
							{
								Precondition_bt_node_test_htn_house_build_house_attach9 attach9 = new Precondition_bt_node_test_htn_house_build_house_attach9();
								attach9.SetClassNameString("Precondition");
								attach9.SetId(9);
#if !BEHAVIAC_RELEASE
								attach9.SetAgentType("HTNAgentHouse");
#endif
								node19.Attach(attach9, true, false, false);
							}
							{
								Effector_bt_node_test_htn_house_build_house_attach10 attach10 = new Effector_bt_node_test_htn_house_build_house_attach10();
								attach10.SetClassNameString("Effector");
								attach10.SetId(10);
#if !BEHAVIAC_RELEASE
								attach10.SetAgentType("HTNAgentHouse");
#endif
								node19.Attach(attach10, false, true, false);
							}
							{
								Effector_bt_node_test_htn_house_build_house_attach11 attach11 = new Effector_bt_node_test_htn_house_build_house_attach11();
								attach11.SetClassNameString("Effector");
								attach11.SetId(11);
#if !BEHAVIAC_RELEASE
								attach11.SetAgentType("HTNAgentHouse");
#endif
								node19.Attach(attach11, false, true, false);
							}
							{
								Effector_bt_node_test_htn_house_build_house_attach12 attach12 = new Effector_bt_node_test_htn_house_build_house_attach12();
								attach12.SetClassNameString("Effector");
								attach12.SetId(12);
#if !BEHAVIAC_RELEASE
								attach12.SetAgentType("HTNAgentHouse");
#endif
								node19.Attach(attach12, false, true, false);
							}
							node17.AddChild(node19);
							node17.SetHasEvents(node17.HasEvents() | node19.HasEvents());
						}
						node2.SetHasEvents(node2.HasEvents() | node17.HasEvents());
					}
					node7.SetHasEvents(node7.HasEvents() | node2.HasEvents());
				}
				{
					Method node21 = new Method();
					node21.SetClassNameString("Method");
					node21.SetId(21);
#if !BEHAVIAC_RELEASE
					node21.SetAgentType("HTNAgentHouse");
#endif
					node7.AddChild(node21);
					{
						Sequence node22 = new Sequence();
						node22.SetClassNameString("Sequence");
						node22.SetId(22);
#if !BEHAVIAC_RELEASE
						node22.SetAgentType("HTNAgentHouse");
#endif
						node21.AddChild(node22);
						{
							Parallel_bt_node_test_htn_house_build_house_node23 node23 = new Parallel_bt_node_test_htn_house_build_house_node23();
							node23.SetClassNameString("Parallel");
							node23.SetId(23);
#if !BEHAVIAC_RELEASE
							node23.SetAgentType("HTNAgentHouse");
#endif
							node22.AddChild(node23);
							{
								Sequence node14 = new Sequence();
								node14.SetClassNameString("Sequence");
								node14.SetId(14);
#if !BEHAVIAC_RELEASE
								node14.SetAgentType("HTNAgentHouse");
#endif
								node23.AddChild(node14);
								{
									Action_bt_node_test_htn_house_build_house_node28 node28 = new Action_bt_node_test_htn_house_build_house_node28();
									node28.SetClassNameString("Action");
									node28.SetId(28);
#if !BEHAVIAC_RELEASE
									node28.SetAgentType("HTNAgentHouse");
#endif
									// attachments
									{
										Precondition_bt_node_test_htn_house_build_house_attach15 attach15 = new Precondition_bt_node_test_htn_house_build_house_attach15();
										attach15.SetClassNameString("Precondition");
										attach15.SetId(15);
#if !BEHAVIAC_RELEASE
										attach15.SetAgentType("HTNAgentHouse");
#endif
										node28.Attach(attach15, true, false, false);
									}
									{
										Effector_bt_node_test_htn_house_build_house_attach16 attach16 = new Effector_bt_node_test_htn_house_build_house_attach16();
										attach16.SetClassNameString("Effector");
										attach16.SetId(16);
#if !BEHAVIAC_RELEASE
										attach16.SetAgentType("HTNAgentHouse");
#endif
										node28.Attach(attach16, false, true, false);
									}
									node14.AddChild(node28);
									node14.SetHasEvents(node14.HasEvents() | node28.HasEvents());
								}
								{
									Action_bt_node_test_htn_house_build_house_node24 node24 = new Action_bt_node_test_htn_house_build_house_node24();
									node24.SetClassNameString("Action");
									node24.SetId(24);
#if !BEHAVIAC_RELEASE
									node24.SetAgentType("HTNAgentHouse");
#endif
									node14.AddChild(node24);
									node14.SetHasEvents(node14.HasEvents() | node24.HasEvents());
								}
								node23.SetHasEvents(node23.HasEvents() | node14.HasEvents());
							}
							{
								Action_bt_node_test_htn_house_build_house_node25 node25 = new Action_bt_node_test_htn_house_build_house_node25();
								node25.SetClassNameString("Action");
								node25.SetId(25);
#if !BEHAVIAC_RELEASE
								node25.SetAgentType("HTNAgentHouse");
#endif
								node23.AddChild(node25);
								node23.SetHasEvents(node23.HasEvents() | node25.HasEvents());
							}
							node22.SetHasEvents(node22.HasEvents() | node23.HasEvents());
						}
						{
							ReferencedBehavior_bt_node_test_htn_house_build_house_node26 node26 = new ReferencedBehavior_bt_node_test_htn_house_build_house_node26();
							node26.SetClassNameString("ReferencedBehavior");
							node26.SetId(26);
#if !BEHAVIAC_RELEASE
							node26.SetAgentType("HTNAgentHouse");
#endif
							node22.AddChild(node26);
							node22.SetHasEvents(node22.HasEvents() | node26.HasEvents());
						}
						node21.SetHasEvents(node21.HasEvents() | node22.HasEvents());
					}
					node7.SetHasEvents(node7.HasEvents() | node21.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node7.HasEvents());
			}
			return true;
		}