Ejemplo n.º 1
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("node_test/action_ut_0");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("AgentNodeTest");
#endif
			// pars
			bt.AddPar("AgentNodeTest", "int", "par_int_type_0", "0");
			bt.AddPar("AgentNodeTest", "int", "par_int_type_1", "0");
			bt.AddPar("AgentNodeTest", "int", "par_int_type_2", "300");
			bt.AddPar("AgentNodeTest", "UnityEngine.GameObject", "par_go", "null");
			bt.AddPar("AgentNodeTest", "ChildNodeTest", "par_child", "null");
			// children
			{
				Sequence node0 = new Sequence();
				node0.SetClassNameString("Sequence");
				node0.SetId(0);
#if !BEHAVIAC_RELEASE
				node0.SetAgentType("AgentNodeTest");
#endif
				// attachments
				{
					Precondition_bt_node_test_action_ut_0_attach15 attach15 = new Precondition_bt_node_test_action_ut_0_attach15();
					attach15.SetClassNameString("Precondition");
					attach15.SetId(15);
#if !BEHAVIAC_RELEASE
					attach15.SetAgentType("AgentNodeTest");
#endif
					node0.Attach(attach15, true, false, false);
				}
				bt.AddChild(node0);
				{
					Action_bt_node_test_action_ut_0_node14 node14 = new Action_bt_node_test_action_ut_0_node14();
					node14.SetClassNameString("Action");
					node14.SetId(14);
#if !BEHAVIAC_RELEASE
					node14.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node14);
					node0.SetHasEvents(node0.HasEvents() | node14.HasEvents());
				}
				{
					Assignment_bt_node_test_action_ut_0_node12 node12 = new Assignment_bt_node_test_action_ut_0_node12();
					node12.SetClassNameString("Assignment");
					node12.SetId(12);
#if !BEHAVIAC_RELEASE
					node12.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node12);
					node0.SetHasEvents(node0.HasEvents() | node12.HasEvents());
				}
				{
					Condition_bt_node_test_action_ut_0_node13 node13 = new Condition_bt_node_test_action_ut_0_node13();
					node13.SetClassNameString("Condition");
					node13.SetId(13);
#if !BEHAVIAC_RELEASE
					node13.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node13);
					node0.SetHasEvents(node0.HasEvents() | node13.HasEvents());
				}
				{
					Assignment_bt_node_test_action_ut_0_node10 node10 = new Assignment_bt_node_test_action_ut_0_node10();
					node10.SetClassNameString("Assignment");
					node10.SetId(10);
#if !BEHAVIAC_RELEASE
					node10.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node10);
					node0.SetHasEvents(node0.HasEvents() | node10.HasEvents());
				}
				{
					Condition_bt_node_test_action_ut_0_node11 node11 = new Condition_bt_node_test_action_ut_0_node11();
					node11.SetClassNameString("Condition");
					node11.SetId(11);
#if !BEHAVIAC_RELEASE
					node11.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node11);
					node0.SetHasEvents(node0.HasEvents() | node11.HasEvents());
				}
				{
					Condition_bt_node_test_action_ut_0_node8 node8 = new Condition_bt_node_test_action_ut_0_node8();
					node8.SetClassNameString("Condition");
					node8.SetId(8);
#if !BEHAVIAC_RELEASE
					node8.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node8);
					node0.SetHasEvents(node0.HasEvents() | node8.HasEvents());
				}
				{
					Action_bt_node_test_action_ut_0_node9 node9 = new Action_bt_node_test_action_ut_0_node9();
					node9.SetClassNameString("Action");
					node9.SetId(9);
#if !BEHAVIAC_RELEASE
					node9.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node9);
					node0.SetHasEvents(node0.HasEvents() | node9.HasEvents());
				}
				{
					Compute_bt_node_test_action_ut_0_node1 node1 = new Compute_bt_node_test_action_ut_0_node1();
					node1.SetClassNameString("Compute");
					node1.SetId(1);
#if !BEHAVIAC_RELEASE
					node1.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node1);
					node0.SetHasEvents(node0.HasEvents() | node1.HasEvents());
				}
				{
					Action_bt_node_test_action_ut_0_node2 node2 = new Action_bt_node_test_action_ut_0_node2();
					node2.SetClassNameString("Action");
					node2.SetId(2);
#if !BEHAVIAC_RELEASE
					node2.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node2);
					node0.SetHasEvents(node0.HasEvents() | node2.HasEvents());
				}
				{
					Assignment_bt_node_test_action_ut_0_node3 node3 = new Assignment_bt_node_test_action_ut_0_node3();
					node3.SetClassNameString("Assignment");
					node3.SetId(3);
#if !BEHAVIAC_RELEASE
					node3.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node3);
					node0.SetHasEvents(node0.HasEvents() | node3.HasEvents());
				}
				{
					Compute_bt_node_test_action_ut_0_node4 node4 = new Compute_bt_node_test_action_ut_0_node4();
					node4.SetClassNameString("Compute");
					node4.SetId(4);
#if !BEHAVIAC_RELEASE
					node4.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node4);
					node0.SetHasEvents(node0.HasEvents() | node4.HasEvents());
				}
				{
					Action_bt_node_test_action_ut_0_node5 node5 = new Action_bt_node_test_action_ut_0_node5();
					node5.SetClassNameString("Action");
					node5.SetId(5);
#if !BEHAVIAC_RELEASE
					node5.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node5);
					node0.SetHasEvents(node0.HasEvents() | node5.HasEvents());
				}
				{
					Action_bt_node_test_action_ut_0_node7 node7 = new Action_bt_node_test_action_ut_0_node7();
					node7.SetClassNameString("Action");
					node7.SetId(7);
#if !BEHAVIAC_RELEASE
					node7.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node7);
					node0.SetHasEvents(node0.HasEvents() | node7.HasEvents());
				}
				{
					Action_bt_node_test_action_ut_0_node6 node6 = new Action_bt_node_test_action_ut_0_node6();
					node6.SetClassNameString("Action");
					node6.SetId(6);
#if !BEHAVIAC_RELEASE
					node6.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node6);
					node0.SetHasEvents(node0.HasEvents() | node6.HasEvents());
				}
				{
					Action_bt_node_test_action_ut_0_node16 node16 = new Action_bt_node_test_action_ut_0_node16();
					node16.SetClassNameString("Action");
					node16.SetId(16);
#if !BEHAVIAC_RELEASE
					node16.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node16);
					node0.SetHasEvents(node0.HasEvents() | node16.HasEvents());
				}
				{
					Action_bt_node_test_action_ut_0_node17 node17 = new Action_bt_node_test_action_ut_0_node17();
					node17.SetClassNameString("Action");
					node17.SetId(17);
#if !BEHAVIAC_RELEASE
					node17.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node17);
					node0.SetHasEvents(node0.HasEvents() | node17.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node0.HasEvents());
			}
			return true;
		}
Ejemplo n.º 2
0
        public static bool build_behavior_tree(BehaviorTree bt)
        {
            bt.SetClassNameString("BehaviorTree");
            bt.SetId(-1);
            bt.SetName("maintree_task");
            bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
            bt.SetAgentType("FirstAgent");
#endif
            // children
            {
                Sequence node0 = new Sequence();
                node0.SetClassNameString("Sequence");
                node0.SetId(0);
#if !BEHAVIAC_RELEASE
                node0.SetAgentType("FirstAgent");
#endif
                // attachments
                {
                    Event_bt_maintree_task_attach5 attach5 = new Event_bt_maintree_task_attach5();
                    attach5.SetClassNameString("Event");
                    attach5.SetId(5);
#if !BEHAVIAC_RELEASE
                    attach5.SetAgentType("FirstAgent");
#endif
                    node0.Attach(attach5, false, false, false);
                    node0.SetHasEvents(node0.HasEvents() | (attach5 is Event));
                }
                bt.AddChild(node0);
                {
                    Action_bt_maintree_task_node1 node1 = new Action_bt_maintree_task_node1();
                    node1.SetClassNameString("Action");
                    node1.SetId(1);
#if !BEHAVIAC_RELEASE
                    node1.SetAgentType("FirstAgent");
#endif
                    node0.AddChild(node1);
                    node0.SetHasEvents(node0.HasEvents() | node1.HasEvents());
                }
                {
                    Assignment_bt_maintree_task_node2 node2 = new Assignment_bt_maintree_task_node2();
                    node2.SetClassNameString("Assignment");
                    node2.SetId(2);
#if !BEHAVIAC_RELEASE
                    node2.SetAgentType("FirstAgent");
#endif
                    node0.AddChild(node2);
                    node0.SetHasEvents(node0.HasEvents() | node2.HasEvents());
                }
                {
                    Condition_bt_maintree_task_node3 node3 = new Condition_bt_maintree_task_node3();
                    node3.SetClassNameString("Condition");
                    node3.SetId(3);
#if !BEHAVIAC_RELEASE
                    node3.SetAgentType("FirstAgent");
#endif
                    node0.AddChild(node3);
                    node0.SetHasEvents(node0.HasEvents() | node3.HasEvents());
                }
                {
                    Action_bt_maintree_task_node4 node4 = new Action_bt_maintree_task_node4();
                    node4.SetClassNameString("Action");
                    node4.SetId(4);
#if !BEHAVIAC_RELEASE
                    node4.SetAgentType("FirstAgent");
#endif
                    node0.AddChild(node4);
                    node0.SetHasEvents(node0.HasEvents() | node4.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/wait_ut_2");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("AgentNodeTest");
#endif
			// pars
			bt.AddPar("AgentNodeTest", "int", "l_IntVar", "0");
			// children
			{
				Sequence node4 = new Sequence();
				node4.SetClassNameString("Sequence");
				node4.SetId(4);
#if !BEHAVIAC_RELEASE
				node4.SetAgentType("AgentNodeTest");
#endif
				bt.AddChild(node4);
				{
					Assignment_bt_node_test_wait_ut_2_node5 node5 = new Assignment_bt_node_test_wait_ut_2_node5();
					node5.SetClassNameString("Assignment");
					node5.SetId(5);
#if !BEHAVIAC_RELEASE
					node5.SetAgentType("AgentNodeTest");
#endif
					node4.AddChild(node5);
					node4.SetHasEvents(node4.HasEvents() | node5.HasEvents());
				}
				{
					Sequence node0 = new Sequence();
					node0.SetClassNameString("Sequence");
					node0.SetId(0);
#if !BEHAVIAC_RELEASE
					node0.SetAgentType("AgentNodeTest");
#endif
					// attachments
					{
						Precondition_bt_node_test_wait_ut_2_attach6 attach6 = new Precondition_bt_node_test_wait_ut_2_attach6();
						attach6.SetClassNameString("Precondition");
						attach6.SetId(6);
#if !BEHAVIAC_RELEASE
						attach6.SetAgentType("AgentNodeTest");
#endif
						node0.Attach(attach6, true, false, false);
					}
					node4.AddChild(node0);
					{
						Action_bt_node_test_wait_ut_2_node1 node1 = new Action_bt_node_test_wait_ut_2_node1();
						node1.SetClassNameString("Action");
						node1.SetId(1);
#if !BEHAVIAC_RELEASE
						node1.SetAgentType("AgentNodeTest");
#endif
						node0.AddChild(node1);
						node0.SetHasEvents(node0.HasEvents() | node1.HasEvents());
					}
					{
						Wait_bt_node_test_wait_ut_2_node2 node2 = new Wait_bt_node_test_wait_ut_2_node2();
						node2.SetClassNameString("Wait");
						node2.SetId(2);
#if !BEHAVIAC_RELEASE
						node2.SetAgentType("AgentNodeTest");
#endif
						node0.AddChild(node2);
						node0.SetHasEvents(node0.HasEvents() | node2.HasEvents());
					}
					{
						Assignment_bt_node_test_wait_ut_2_node8 node8 = new Assignment_bt_node_test_wait_ut_2_node8();
						node8.SetClassNameString("Assignment");
						node8.SetId(8);
#if !BEHAVIAC_RELEASE
						node8.SetAgentType("AgentNodeTest");
#endif
						node0.AddChild(node8);
						node0.SetHasEvents(node0.HasEvents() | node8.HasEvents());
					}
					{
						Wait_bt_node_test_wait_ut_2_node7 node7 = new Wait_bt_node_test_wait_ut_2_node7();
						node7.SetClassNameString("Wait");
						node7.SetId(7);
#if !BEHAVIAC_RELEASE
						node7.SetAgentType("AgentNodeTest");
#endif
						node0.AddChild(node7);
						node0.SetHasEvents(node0.HasEvents() | node7.HasEvents());
					}
					{
						Action_bt_node_test_wait_ut_2_node3 node3 = new Action_bt_node_test_wait_ut_2_node3();
						node3.SetClassNameString("Action");
						node3.SetId(3);
#if !BEHAVIAC_RELEASE
						node3.SetAgentType("AgentNodeTest");
#endif
						node0.AddChild(node3);
						node0.SetHasEvents(node0.HasEvents() | node3.HasEvents());
					}
					node4.SetHasEvents(node4.HasEvents() | node0.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node4.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/PreconditionEffectorTest/PreconditionEffectorTest_3");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("PreconEffectorAgent");
#endif
			// children
			{
				DecoratorLoop_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_3_node7 node7 = new DecoratorLoop_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_3_node7();
				node7.SetClassNameString("DecoratorLoop");
				node7.SetId(7);
#if !BEHAVIAC_RELEASE
				node7.SetAgentType("PreconEffectorAgent");
#endif
				bt.AddChild(node7);
				{
					SelectorLoop node6 = new SelectorLoop();
					node6.SetClassNameString("SelectorLoop");
					node6.SetId(6);
#if !BEHAVIAC_RELEASE
					node6.SetAgentType("PreconEffectorAgent");
#endif
					node7.AddChild(node6);
					{
						WithPrecondition node5 = new WithPrecondition();
						node5.SetClassNameString("WithPrecondition");
						node5.SetId(5);
#if !BEHAVIAC_RELEASE
						node5.SetAgentType("PreconEffectorAgent");
#endif
						node6.AddChild(node5);
						{
							Condition_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_3_node13 node13 = new Condition_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_3_node13();
							node13.SetClassNameString("Condition");
							node13.SetId(13);
#if !BEHAVIAC_RELEASE
							node13.SetAgentType("PreconEffectorAgent");
#endif
							node5.AddChild(node13);
							node5.SetHasEvents(node5.HasEvents() | node13.HasEvents());
						}
						{
							Sequence node11 = new Sequence();
							node11.SetClassNameString("Sequence");
							node11.SetId(11);
#if !BEHAVIAC_RELEASE
							node11.SetAgentType("PreconEffectorAgent");
#endif
							// attachments
							{
								Effector_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_3_attach16 attach16 = new Effector_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_3_attach16();
								attach16.SetClassNameString("Effector");
								attach16.SetId(16);
#if !BEHAVIAC_RELEASE
								attach16.SetAgentType("PreconEffectorAgent");
#endif
								node11.Attach(attach16, false, true, false);
							}
							node5.AddChild(node11);
							{
								Action_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_3_node4 node4 = new Action_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_3_node4();
								node4.SetClassNameString("Action");
								node4.SetId(4);
#if !BEHAVIAC_RELEASE
								node4.SetAgentType("PreconEffectorAgent");
#endif
								// attachments
								{
									Effector_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_3_attach8 attach8 = new Effector_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_3_attach8();
									attach8.SetClassNameString("Effector");
									attach8.SetId(8);
#if !BEHAVIAC_RELEASE
									attach8.SetAgentType("PreconEffectorAgent");
#endif
									node4.Attach(attach8, false, true, false);
								}
								{
									Effector_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_3_attach19 attach19 = new Effector_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_3_attach19();
									attach19.SetClassNameString("Effector");
									attach19.SetId(19);
#if !BEHAVIAC_RELEASE
									attach19.SetAgentType("PreconEffectorAgent");
#endif
									node4.Attach(attach19, false, true, false);
								}
								node11.AddChild(node4);
								node11.SetHasEvents(node11.HasEvents() | node4.HasEvents());
							}
							{
								Action_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_3_node9 node9 = new Action_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_3_node9();
								node9.SetClassNameString("Action");
								node9.SetId(9);
#if !BEHAVIAC_RELEASE
								node9.SetAgentType("PreconEffectorAgent");
#endif
								// attachments
								{
									Effector_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_3_attach2 attach2 = new Effector_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_3_attach2();
									attach2.SetClassNameString("Effector");
									attach2.SetId(2);
#if !BEHAVIAC_RELEASE
									attach2.SetAgentType("PreconEffectorAgent");
#endif
									node9.Attach(attach2, false, true, false);
								}
								{
									Effector_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_3_attach18 attach18 = new Effector_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_3_attach18();
									attach18.SetClassNameString("Effector");
									attach18.SetId(18);
#if !BEHAVIAC_RELEASE
									attach18.SetAgentType("PreconEffectorAgent");
#endif
									node9.Attach(attach18, false, true, false);
								}
								node11.AddChild(node9);
								node11.SetHasEvents(node11.HasEvents() | node9.HasEvents());
							}
							node5.SetHasEvents(node5.HasEvents() | node11.HasEvents());
						}
						node6.SetHasEvents(node6.HasEvents() | node5.HasEvents());
					}
					{
						WithPrecondition node0 = new WithPrecondition();
						node0.SetClassNameString("WithPrecondition");
						node0.SetId(0);
#if !BEHAVIAC_RELEASE
						node0.SetAgentType("PreconEffectorAgent");
#endif
						node6.AddChild(node0);
						{
							Condition_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_3_node12 node12 = new Condition_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_3_node12();
							node12.SetClassNameString("Condition");
							node12.SetId(12);
#if !BEHAVIAC_RELEASE
							node12.SetAgentType("PreconEffectorAgent");
#endif
							node0.AddChild(node12);
							node0.SetHasEvents(node0.HasEvents() | node12.HasEvents());
						}
						{
							Sequence node14 = new Sequence();
							node14.SetClassNameString("Sequence");
							node14.SetId(14);
#if !BEHAVIAC_RELEASE
							node14.SetAgentType("PreconEffectorAgent");
#endif
							// attachments
							{
								Effector_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_3_attach17 attach17 = new Effector_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_3_attach17();
								attach17.SetClassNameString("Effector");
								attach17.SetId(17);
#if !BEHAVIAC_RELEASE
								attach17.SetAgentType("PreconEffectorAgent");
#endif
								node14.Attach(attach17, false, true, false);
							}
							node0.AddChild(node14);
							{
								Action_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_3_node10 node10 = new Action_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_3_node10();
								node10.SetClassNameString("Action");
								node10.SetId(10);
#if !BEHAVIAC_RELEASE
								node10.SetAgentType("PreconEffectorAgent");
#endif
								// attachments
								{
									Effector_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_3_attach15 attach15 = new Effector_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_3_attach15();
									attach15.SetClassNameString("Effector");
									attach15.SetId(15);
#if !BEHAVIAC_RELEASE
									attach15.SetAgentType("PreconEffectorAgent");
#endif
									node10.Attach(attach15, false, true, false);
								}
								{
									Effector_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_3_attach20 attach20 = new Effector_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_3_attach20();
									attach20.SetClassNameString("Effector");
									attach20.SetId(20);
#if !BEHAVIAC_RELEASE
									attach20.SetAgentType("PreconEffectorAgent");
#endif
									node10.Attach(attach20, false, true, false);
								}
								node14.AddChild(node10);
								node14.SetHasEvents(node14.HasEvents() | node10.HasEvents());
							}
							{
								Action_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_3_node1 node1 = new Action_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_3_node1();
								node1.SetClassNameString("Action");
								node1.SetId(1);
#if !BEHAVIAC_RELEASE
								node1.SetAgentType("PreconEffectorAgent");
#endif
								// attachments
								{
									Effector_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_3_attach21 attach21 = new Effector_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_3_attach21();
									attach21.SetClassNameString("Effector");
									attach21.SetId(21);
#if !BEHAVIAC_RELEASE
									attach21.SetAgentType("PreconEffectorAgent");
#endif
									node1.Attach(attach21, false, true, false);
								}
								{
									Effector_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_3_attach3 attach3 = new Effector_bt_node_test_PreconditionEffectorTest_PreconditionEffectorTest_3_attach3();
									attach3.SetClassNameString("Effector");
									attach3.SetId(3);
#if !BEHAVIAC_RELEASE
									attach3.SetAgentType("PreconEffectorAgent");
#endif
									node1.Attach(attach3, false, true, false);
								}
								node14.AddChild(node1);
								node14.SetHasEvents(node14.HasEvents() | node1.HasEvents());
							}
							node0.SetHasEvents(node0.HasEvents() | node14.HasEvents());
						}
						node6.SetHasEvents(node6.HasEvents() | node0.HasEvents());
					}
					node7.SetHasEvents(node7.HasEvents() | node6.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node7.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/selector_loop_ut_8");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("AgentNodeTest");
#endif
			// children
			{
				Sequence node15 = new Sequence();
				node15.SetClassNameString("Sequence");
				node15.SetId(15);
#if !BEHAVIAC_RELEASE
				node15.SetAgentType("AgentNodeTest");
#endif
				bt.AddChild(node15);
				{
					Action_bt_node_test_selector_loop_ut_8_node16 node16 = new Action_bt_node_test_selector_loop_ut_8_node16();
					node16.SetClassNameString("Action");
					node16.SetId(16);
#if !BEHAVIAC_RELEASE
					node16.SetAgentType("AgentNodeTest");
#endif
					node15.AddChild(node16);
					node15.SetHasEvents(node15.HasEvents() | node16.HasEvents());
				}
				{
					Assignment_bt_node_test_selector_loop_ut_8_node21 node21 = new Assignment_bt_node_test_selector_loop_ut_8_node21();
					node21.SetClassNameString("Assignment");
					node21.SetId(21);
#if !BEHAVIAC_RELEASE
					node21.SetAgentType("AgentNodeTest");
#endif
					node15.AddChild(node21);
					node15.SetHasEvents(node15.HasEvents() | node21.HasEvents());
				}
				{
					Selector node23 = new Selector();
					node23.SetClassNameString("Selector");
					node23.SetId(23);
#if !BEHAVIAC_RELEASE
					node23.SetAgentType("AgentNodeTest");
#endif
					node15.AddChild(node23);
					{
						Selector node10 = new Selector();
						node10.SetClassNameString("Selector");
						node10.SetId(10);
#if !BEHAVIAC_RELEASE
						node10.SetAgentType("AgentNodeTest");
#endif
						// attachments
						{
							Precondition_bt_node_test_selector_loop_ut_8_attach24 attach24 = new Precondition_bt_node_test_selector_loop_ut_8_attach24();
							attach24.SetClassNameString("Precondition");
							attach24.SetId(24);
#if !BEHAVIAC_RELEASE
							attach24.SetAgentType("AgentNodeTest");
#endif
							node10.Attach(attach24, true, false, false);
						}
						node23.AddChild(node10);
						{
							DecoratorLoop_bt_node_test_selector_loop_ut_8_node9 node9 = new DecoratorLoop_bt_node_test_selector_loop_ut_8_node9();
							node9.SetClassNameString("DecoratorLoop");
							node9.SetId(9);
#if !BEHAVIAC_RELEASE
							node9.SetAgentType("AgentNodeTest");
#endif
							// attachments
							{
								Precondition_bt_node_test_selector_loop_ut_8_attach14 attach14 = new Precondition_bt_node_test_selector_loop_ut_8_attach14();
								attach14.SetClassNameString("Precondition");
								attach14.SetId(14);
#if !BEHAVIAC_RELEASE
								attach14.SetAgentType("AgentNodeTest");
#endif
								node9.Attach(attach14, true, false, false);
							}
							{
								Precondition_bt_node_test_selector_loop_ut_8_attach17 attach17 = new Precondition_bt_node_test_selector_loop_ut_8_attach17();
								attach17.SetClassNameString("Precondition");
								attach17.SetId(17);
#if !BEHAVIAC_RELEASE
								attach17.SetAgentType("AgentNodeTest");
#endif
								node9.Attach(attach17, true, false, false);
							}
							{
								Effector_bt_node_test_selector_loop_ut_8_attach18 attach18 = new Effector_bt_node_test_selector_loop_ut_8_attach18();
								attach18.SetClassNameString("Effector");
								attach18.SetId(18);
#if !BEHAVIAC_RELEASE
								attach18.SetAgentType("AgentNodeTest");
#endif
								node9.Attach(attach18, false, true, false);
							}
							node10.AddChild(node9);
							{
								SelectorLoop node0 = new SelectorLoop();
								node0.SetClassNameString("SelectorLoop");
								node0.SetId(0);
#if !BEHAVIAC_RELEASE
								node0.SetAgentType("AgentNodeTest");
#endif
								node9.AddChild(node0);
								{
									WithPrecondition node1 = new WithPrecondition();
									node1.SetClassNameString("WithPrecondition");
									node1.SetId(1);
#if !BEHAVIAC_RELEASE
									node1.SetAgentType("AgentNodeTest");
#endif
									node0.AddChild(node1);
									{
										Condition_bt_node_test_selector_loop_ut_8_node4 node4 = new Condition_bt_node_test_selector_loop_ut_8_node4();
										node4.SetClassNameString("Condition");
										node4.SetId(4);
#if !BEHAVIAC_RELEASE
										node4.SetAgentType("AgentNodeTest");
#endif
										node1.AddChild(node4);
										node1.SetHasEvents(node1.HasEvents() | node4.HasEvents());
									}
									{
										Action_bt_node_test_selector_loop_ut_8_node5 node5 = new Action_bt_node_test_selector_loop_ut_8_node5();
										node5.SetClassNameString("Action");
										node5.SetId(5);
#if !BEHAVIAC_RELEASE
										node5.SetAgentType("AgentNodeTest");
#endif
										// attachments
										{
											Precondition_bt_node_test_selector_loop_ut_8_attach7 attach7 = new Precondition_bt_node_test_selector_loop_ut_8_attach7();
											attach7.SetClassNameString("Precondition");
											attach7.SetId(7);
#if !BEHAVIAC_RELEASE
											attach7.SetAgentType("AgentNodeTest");
#endif
											node5.Attach(attach7, true, false, false);
										}
										node1.AddChild(node5);
										node1.SetHasEvents(node1.HasEvents() | node5.HasEvents());
									}
									node0.SetHasEvents(node0.HasEvents() | node1.HasEvents());
								}
								{
									WithPrecondition node2 = new WithPrecondition();
									node2.SetClassNameString("WithPrecondition");
									node2.SetId(2);
#if !BEHAVIAC_RELEASE
									node2.SetAgentType("AgentNodeTest");
#endif
									node0.AddChild(node2);
									{
										True node3 = new True();
										node3.SetClassNameString("True");
										node3.SetId(3);
#if !BEHAVIAC_RELEASE
										node3.SetAgentType("AgentNodeTest");
#endif
										node2.AddChild(node3);
										node2.SetHasEvents(node2.HasEvents() | node3.HasEvents());
									}
									{
										Action_bt_node_test_selector_loop_ut_8_node6 node6 = new Action_bt_node_test_selector_loop_ut_8_node6();
										node6.SetClassNameString("Action");
										node6.SetId(6);
#if !BEHAVIAC_RELEASE
										node6.SetAgentType("AgentNodeTest");
#endif
										// attachments
										{
											Precondition_bt_node_test_selector_loop_ut_8_attach8 attach8 = new Precondition_bt_node_test_selector_loop_ut_8_attach8();
											attach8.SetClassNameString("Precondition");
											attach8.SetId(8);
#if !BEHAVIAC_RELEASE
											attach8.SetAgentType("AgentNodeTest");
#endif
											node6.Attach(attach8, true, false, false);
										}
										node2.AddChild(node6);
										node2.SetHasEvents(node2.HasEvents() | node6.HasEvents());
									}
									node0.SetHasEvents(node0.HasEvents() | node2.HasEvents());
								}
								node9.SetHasEvents(node9.HasEvents() | node0.HasEvents());
							}
							node10.SetHasEvents(node10.HasEvents() | node9.HasEvents());
						}
						{
							Sequence node11 = new Sequence();
							node11.SetClassNameString("Sequence");
							node11.SetId(11);
#if !BEHAVIAC_RELEASE
							node11.SetAgentType("AgentNodeTest");
#endif
							// attachments
							{
								Precondition_bt_node_test_selector_loop_ut_8_attach19 attach19 = new Precondition_bt_node_test_selector_loop_ut_8_attach19();
								attach19.SetClassNameString("Precondition");
								attach19.SetId(19);
#if !BEHAVIAC_RELEASE
								attach19.SetAgentType("AgentNodeTest");
#endif
								node11.Attach(attach19, true, false, false);
							}
							node10.AddChild(node11);
							{
								Action_bt_node_test_selector_loop_ut_8_node12 node12 = new Action_bt_node_test_selector_loop_ut_8_node12();
								node12.SetClassNameString("Action");
								node12.SetId(12);
#if !BEHAVIAC_RELEASE
								node12.SetAgentType("AgentNodeTest");
#endif
								// attachments
								{
									Precondition_bt_node_test_selector_loop_ut_8_attach20 attach20 = new Precondition_bt_node_test_selector_loop_ut_8_attach20();
									attach20.SetClassNameString("Precondition");
									attach20.SetId(20);
#if !BEHAVIAC_RELEASE
									attach20.SetAgentType("AgentNodeTest");
#endif
									node12.Attach(attach20, true, false, false);
								}
								node11.AddChild(node12);
								node11.SetHasEvents(node11.HasEvents() | node12.HasEvents());
							}
							{
								Action_bt_node_test_selector_loop_ut_8_node13 node13 = new Action_bt_node_test_selector_loop_ut_8_node13();
								node13.SetClassNameString("Action");
								node13.SetId(13);
#if !BEHAVIAC_RELEASE
								node13.SetAgentType("AgentNodeTest");
#endif
								// attachments
								{
									Precondition_bt_node_test_selector_loop_ut_8_attach22 attach22 = new Precondition_bt_node_test_selector_loop_ut_8_attach22();
									attach22.SetClassNameString("Precondition");
									attach22.SetId(22);
#if !BEHAVIAC_RELEASE
									attach22.SetAgentType("AgentNodeTest");
#endif
									node13.Attach(attach22, true, false, false);
								}
								node11.AddChild(node13);
								node11.SetHasEvents(node11.HasEvents() | node13.HasEvents());
							}
							node10.SetHasEvents(node10.HasEvents() | node11.HasEvents());
						}
						node23.SetHasEvents(node23.HasEvents() | node10.HasEvents());
					}
					{
						Assignment_bt_node_test_selector_loop_ut_8_node25 node25 = new Assignment_bt_node_test_selector_loop_ut_8_node25();
						node25.SetClassNameString("Assignment");
						node25.SetId(25);
#if !BEHAVIAC_RELEASE
						node25.SetAgentType("AgentNodeTest");
#endif
						node23.AddChild(node25);
						node23.SetHasEvents(node23.HasEvents() | node25.HasEvents());
					}
					node15.SetHasEvents(node15.HasEvents() | node23.HasEvents());
				}
				{
					Compute_bt_node_test_selector_loop_ut_8_node26 node26 = new Compute_bt_node_test_selector_loop_ut_8_node26();
					node26.SetClassNameString("Compute");
					node26.SetId(26);
#if !BEHAVIAC_RELEASE
					node26.SetAgentType("AgentNodeTest");
#endif
					node15.AddChild(node26);
					node15.SetHasEvents(node15.HasEvents() | node26.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node15.HasEvents());
			}
			return true;
		}
Ejemplo n.º 6
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("node_test/event_ut_2");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("ChildNodeTest");
#endif
			// children
			{
				Sequence node0 = new Sequence();
				node0.SetClassNameString("Sequence");
				node0.SetId(0);
#if !BEHAVIAC_RELEASE
				node0.SetAgentType("ChildNodeTest");
#endif
				// attachments
				{
					Event_bt_node_test_event_ut_2_attach1 attach1 = new Event_bt_node_test_event_ut_2_attach1();
					attach1.SetClassNameString("Event");
					attach1.SetId(1);
#if !BEHAVIAC_RELEASE
					attach1.SetAgentType("ChildNodeTest");
#endif
					node0.Attach(attach1, false, false, false);
					node0.SetHasEvents(node0.HasEvents() | (attach1 is Event));
				}
				bt.AddChild(node0);
				{
					WaitforSignal node5 = new WaitforSignal();
					node5.SetClassNameString("WaitforSignal");
					node5.SetId(5);
#if !BEHAVIAC_RELEASE
					node5.SetAgentType("ChildNodeTest");
#endif
					node0.AddChild(node5);
					{
						Condition_bt_node_test_event_ut_2_node6 node6 = new Condition_bt_node_test_event_ut_2_node6();
						node6.SetClassNameString("Condition");
						node6.SetId(6);
#if !BEHAVIAC_RELEASE
						node6.SetAgentType("ChildNodeTest");
#endif
						node5.SetCustomCondition(node6);
						node5.SetHasEvents(node5.HasEvents() | node6.HasEvents());
					}
					node0.SetHasEvents(node0.HasEvents() | node5.HasEvents());
				}
				{
					Action_bt_node_test_event_ut_2_node7 node7 = new Action_bt_node_test_event_ut_2_node7();
					node7.SetClassNameString("Action");
					node7.SetId(7);
#if !BEHAVIAC_RELEASE
					node7.SetAgentType("ChildNodeTest");
#endif
					node0.AddChild(node7);
					node0.SetHasEvents(node0.HasEvents() | node7.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/enter_exit_action_ut_0");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("AgentNodeTest");
#endif
			// children
			{
				Sequence node0 = new Sequence();
				node0.SetClassNameString("Sequence");
				node0.SetId(0);
#if !BEHAVIAC_RELEASE
				node0.SetAgentType("AgentNodeTest");
#endif
				// attachments
				{
					Precondition_bt_node_test_enter_exit_action_ut_0_attach1 attach1 = new Precondition_bt_node_test_enter_exit_action_ut_0_attach1();
					attach1.SetClassNameString("Precondition");
					attach1.SetId(1);
#if !BEHAVIAC_RELEASE
					attach1.SetAgentType("AgentNodeTest");
#endif
					node0.Attach(attach1, true, false, false);
				}
				{
					Effector_bt_node_test_enter_exit_action_ut_0_attach2 attach2 = new Effector_bt_node_test_enter_exit_action_ut_0_attach2();
					attach2.SetClassNameString("Effector");
					attach2.SetId(2);
#if !BEHAVIAC_RELEASE
					attach2.SetAgentType("AgentNodeTest");
#endif
					node0.Attach(attach2, false, true, false);
				}
				bt.AddChild(node0);
				{
					Selector node6 = new Selector();
					node6.SetClassNameString("Selector");
					node6.SetId(6);
#if !BEHAVIAC_RELEASE
					node6.SetAgentType("AgentNodeTest");
#endif
					// attachments
					{
						Precondition_bt_node_test_enter_exit_action_ut_0_attach3 attach3 = new Precondition_bt_node_test_enter_exit_action_ut_0_attach3();
						attach3.SetClassNameString("Precondition");
						attach3.SetId(3);
#if !BEHAVIAC_RELEASE
						attach3.SetAgentType("AgentNodeTest");
#endif
						node6.Attach(attach3, true, false, false);
					}
					{
						Effector_bt_node_test_enter_exit_action_ut_0_attach4 attach4 = new Effector_bt_node_test_enter_exit_action_ut_0_attach4();
						attach4.SetClassNameString("Effector");
						attach4.SetId(4);
#if !BEHAVIAC_RELEASE
						attach4.SetAgentType("AgentNodeTest");
#endif
						node6.Attach(attach4, false, true, false);
					}
					node0.AddChild(node6);
					{
						WaitforSignal node7 = new WaitforSignal();
						node7.SetClassNameString("WaitforSignal");
						node7.SetId(7);
#if !BEHAVIAC_RELEASE
						node7.SetAgentType("AgentNodeTest");
#endif
						node6.AddChild(node7);
						{
							Condition_bt_node_test_enter_exit_action_ut_0_node5 node5 = new Condition_bt_node_test_enter_exit_action_ut_0_node5();
							node5.SetClassNameString("Condition");
							node5.SetId(5);
#if !BEHAVIAC_RELEASE
							node5.SetAgentType("AgentNodeTest");
#endif
							node7.SetCustomCondition(node5);
							node7.SetHasEvents(node7.HasEvents() | node5.HasEvents());
						}
						node6.SetHasEvents(node6.HasEvents() | node7.HasEvents());
					}
					{
						True node8 = new True();
						node8.SetClassNameString("True");
						node8.SetId(8);
#if !BEHAVIAC_RELEASE
						node8.SetAgentType("AgentNodeTest");
#endif
						node6.AddChild(node8);
						node6.SetHasEvents(node6.HasEvents() | node8.HasEvents());
					}
					node0.SetHasEvents(node0.HasEvents() | node6.HasEvents());
				}
				{
					True node9 = new True();
					node9.SetClassNameString("True");
					node9.SetId(9);
#if !BEHAVIAC_RELEASE
					node9.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node9);
					node0.SetHasEvents(node0.HasEvents() | node9.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node0.HasEvents());
			}
			return true;
		}
Ejemplo n.º 8
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("node_test/query_ut_3");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("AgentNodeTest");
#endif
			// children
			{
				Sequence node0 = new Sequence();
				node0.SetClassNameString("Sequence");
				node0.SetId(0);
#if !BEHAVIAC_RELEASE
				node0.SetAgentType("AgentNodeTest");
#endif
				// attachments
				{
					Precondition_bt_node_test_query_ut_3_attach1 attach1 = new Precondition_bt_node_test_query_ut_3_attach1();
					attach1.SetClassNameString("Precondition");
					attach1.SetId(1);
#if !BEHAVIAC_RELEASE
					attach1.SetAgentType("AgentNodeTest");
#endif
					node0.Attach(attach1, true, false, false);
				}
				{
					Effector_bt_node_test_query_ut_3_attach2 attach2 = new Effector_bt_node_test_query_ut_3_attach2();
					attach2.SetClassNameString("Effector");
					attach2.SetId(2);
#if !BEHAVIAC_RELEASE
					attach2.SetAgentType("AgentNodeTest");
#endif
					node0.Attach(attach2, false, true, false);
				}
				bt.AddChild(node0);
				{
					Query_bt_node_test_query_ut_3_node5 node5 = new Query_bt_node_test_query_ut_3_node5();
					node5.SetClassNameString("Query");
					node5.SetId(5);
#if !BEHAVIAC_RELEASE
					node5.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node5);
					node0.SetHasEvents(node0.HasEvents() | node5.HasEvents());
				}
				{
					Sequence node6 = new Sequence();
					node6.SetClassNameString("Sequence");
					node6.SetId(6);
#if !BEHAVIAC_RELEASE
					node6.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node6);
					{
						Query_bt_node_test_query_ut_3_node3 node3 = new Query_bt_node_test_query_ut_3_node3();
						node3.SetClassNameString("Query");
						node3.SetId(3);
#if !BEHAVIAC_RELEASE
						node3.SetAgentType("AgentNodeTest");
#endif
						node6.AddChild(node3);
						node6.SetHasEvents(node6.HasEvents() | node3.HasEvents());
					}
					{
						Query_bt_node_test_query_ut_3_node4 node4 = new Query_bt_node_test_query_ut_3_node4();
						node4.SetClassNameString("Query");
						node4.SetId(4);
#if !BEHAVIAC_RELEASE
						node4.SetAgentType("AgentNodeTest");
#endif
						node6.AddChild(node4);
						node6.SetHasEvents(node6.HasEvents() | node4.HasEvents());
					}
					node0.SetHasEvents(node0.HasEvents() | node6.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node0.HasEvents());
			}
			return true;
		}
Ejemplo n.º 9
0
 public static bool build_behavior_tree(BehaviorTree bt)
 {
     bt.SetClassNameString("BehaviorTree");
     bt.SetId(-1);
     bt.SetName("node_test/predicate_sequence_ut_5");
     #if !BEHAVIAC_RELEASE
     bt.SetAgentType("AgentNodeTest");
     #endif
     // children
     {
         Sequence node0 = new Sequence();
         node0.SetClassNameString("Sequence");
         node0.SetId(0);
     #if !BEHAVIAC_RELEASE
         node0.SetAgentType("AgentNodeTest");
     #endif
         // attachments
         {
             Predicate_bt_node_test_predicate_sequence_ut_5_attach1 attach1 = new Predicate_bt_node_test_predicate_sequence_ut_5_attach1();
             attach1.SetClassNameString("Predicate");
             attach1.SetId(1);
     #if !BEHAVIAC_RELEASE
             attach1.SetAgentType("AgentNodeTest");
     #endif
             node0.Attach(attach1);
         }
         {
             Predicate_bt_node_test_predicate_sequence_ut_5_attach3 attach3 = new Predicate_bt_node_test_predicate_sequence_ut_5_attach3();
             attach3.SetClassNameString("Predicate");
             attach3.SetId(3);
     #if !BEHAVIAC_RELEASE
             attach3.SetAgentType("AgentNodeTest");
     #endif
             node0.Attach(attach3);
         }
         {
             Predicate_bt_node_test_predicate_sequence_ut_5_attach6 attach6 = new Predicate_bt_node_test_predicate_sequence_ut_5_attach6();
             attach6.SetClassNameString("Predicate");
             attach6.SetId(6);
     #if !BEHAVIAC_RELEASE
             attach6.SetAgentType("AgentNodeTest");
     #endif
             node0.Attach(attach6);
         }
         bt.AddChild(node0);
         {
             Action_bt_node_test_predicate_sequence_ut_5_node5 node5 = new Action_bt_node_test_predicate_sequence_ut_5_node5();
             node5.SetClassNameString("Action");
             node5.SetId(5);
     #if !BEHAVIAC_RELEASE
             node5.SetAgentType("AgentNodeTest");
     #endif
             node0.AddChild(node5);
             node0.SetHasEvents(node0.HasEvents() | node5.HasEvents());
         }
         {
             Action_bt_node_test_predicate_sequence_ut_5_node4 node4 = new Action_bt_node_test_predicate_sequence_ut_5_node4();
             node4.SetClassNameString("Action");
             node4.SetId(4);
     #if !BEHAVIAC_RELEASE
             node4.SetAgentType("AgentNodeTest");
     #endif
             node0.AddChild(node4);
             node0.SetHasEvents(node0.HasEvents() | node4.HasEvents());
         }
         {
             Action_bt_node_test_predicate_sequence_ut_5_node2 node2 = new Action_bt_node_test_predicate_sequence_ut_5_node2();
             node2.SetClassNameString("Action");
             node2.SetId(2);
     #if !BEHAVIAC_RELEASE
             node2.SetAgentType("AgentNodeTest");
     #endif
             node0.AddChild(node2);
             node0.SetHasEvents(node0.HasEvents() | node2.HasEvents());
         }
         {
             Action_bt_node_test_predicate_sequence_ut_5_node7 node7 = new Action_bt_node_test_predicate_sequence_ut_5_node7();
             node7.SetClassNameString("Action");
             node7.SetId(7);
     #if !BEHAVIAC_RELEASE
             node7.SetAgentType("AgentNodeTest");
     #endif
             node0.AddChild(node7);
             node0.SetHasEvents(node0.HasEvents() | node7.HasEvents());
         }
         bt.SetHasEvents(bt.HasEvents() | node0.HasEvents());
     }
     return true;
 }