Beispiel #1
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("node_test/selector_probability_ut_4");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("AgentNodeTest");
#endif
			// children
			{
				DecoratorLoop_bt_node_test_selector_probability_ut_4_node15 node15 = new DecoratorLoop_bt_node_test_selector_probability_ut_4_node15();
				node15.SetClassNameString("DecoratorLoop");
				node15.SetId(15);
#if !BEHAVIAC_RELEASE
				node15.SetAgentType("AgentNodeTest");
#endif
				bt.AddChild(node15);
				{
					SelectorProbability_bt_node_test_selector_probability_ut_4_node0 node0 = new SelectorProbability_bt_node_test_selector_probability_ut_4_node0();
					node0.SetClassNameString("SelectorProbability");
					node0.SetId(0);
#if !BEHAVIAC_RELEASE
					node0.SetAgentType("AgentNodeTest");
#endif
					node15.AddChild(node0);
					{
						DecoratorWeight_bt_node_test_selector_probability_ut_4_node5 node5 = new DecoratorWeight_bt_node_test_selector_probability_ut_4_node5();
						node5.SetClassNameString("DecoratorWeight");
						node5.SetId(5);
#if !BEHAVIAC_RELEASE
						node5.SetAgentType("AgentNodeTest");
#endif
						node0.AddChild(node5);
						{
							Sequence node7 = new Sequence();
							node7.SetClassNameString("Sequence");
							node7.SetId(7);
#if !BEHAVIAC_RELEASE
							node7.SetAgentType("AgentNodeTest");
#endif
							node5.AddChild(node7);
							{
								Parallel_bt_node_test_selector_probability_ut_4_node10 node10 = new Parallel_bt_node_test_selector_probability_ut_4_node10();
								node10.SetClassNameString("Parallel");
								node10.SetId(10);
#if !BEHAVIAC_RELEASE
								node10.SetAgentType("AgentNodeTest");
#endif
								node7.AddChild(node10);
								{
									Compute_bt_node_test_selector_probability_ut_4_node2 node2 = new Compute_bt_node_test_selector_probability_ut_4_node2();
									node2.SetClassNameString("Compute");
									node2.SetId(2);
#if !BEHAVIAC_RELEASE
									node2.SetAgentType("AgentNodeTest");
#endif
									node10.AddChild(node2);
									node10.SetHasEvents(node10.HasEvents() | node2.HasEvents());
								}
								{
									Compute_bt_node_test_selector_probability_ut_4_node13 node13 = new Compute_bt_node_test_selector_probability_ut_4_node13();
									node13.SetClassNameString("Compute");
									node13.SetId(13);
#if !BEHAVIAC_RELEASE
									node13.SetAgentType("AgentNodeTest");
#endif
									node10.AddChild(node13);
									node10.SetHasEvents(node10.HasEvents() | node13.HasEvents());
								}
								node7.SetHasEvents(node7.HasEvents() | node10.HasEvents());
							}
							{
								Wait_bt_node_test_selector_probability_ut_4_node4 node4 = new Wait_bt_node_test_selector_probability_ut_4_node4();
								node4.SetClassNameString("Wait");
								node4.SetId(4);
#if !BEHAVIAC_RELEASE
								node4.SetAgentType("AgentNodeTest");
#endif
								node7.AddChild(node4);
								node7.SetHasEvents(node7.HasEvents() | node4.HasEvents());
							}
							{
								Compute_bt_node_test_selector_probability_ut_4_node11 node11 = new Compute_bt_node_test_selector_probability_ut_4_node11();
								node11.SetClassNameString("Compute");
								node11.SetId(11);
#if !BEHAVIAC_RELEASE
								node11.SetAgentType("AgentNodeTest");
#endif
								node7.AddChild(node11);
								node7.SetHasEvents(node7.HasEvents() | node11.HasEvents());
							}
							node5.SetHasEvents(node5.HasEvents() | node7.HasEvents());
						}
						node0.SetHasEvents(node0.HasEvents() | node5.HasEvents());
					}
					{
						DecoratorWeight_bt_node_test_selector_probability_ut_4_node6 node6 = new DecoratorWeight_bt_node_test_selector_probability_ut_4_node6();
						node6.SetClassNameString("DecoratorWeight");
						node6.SetId(6);
#if !BEHAVIAC_RELEASE
						node6.SetAgentType("AgentNodeTest");
#endif
						node0.AddChild(node6);
						{
							Sequence node8 = new Sequence();
							node8.SetClassNameString("Sequence");
							node8.SetId(8);
#if !BEHAVIAC_RELEASE
							node8.SetAgentType("AgentNodeTest");
#endif
							node6.AddChild(node8);
							{
								Parallel_bt_node_test_selector_probability_ut_4_node12 node12 = new Parallel_bt_node_test_selector_probability_ut_4_node12();
								node12.SetClassNameString("Parallel");
								node12.SetId(12);
#if !BEHAVIAC_RELEASE
								node12.SetAgentType("AgentNodeTest");
#endif
								node8.AddChild(node12);
								{
									Compute_bt_node_test_selector_probability_ut_4_node3 node3 = new Compute_bt_node_test_selector_probability_ut_4_node3();
									node3.SetClassNameString("Compute");
									node3.SetId(3);
#if !BEHAVIAC_RELEASE
									node3.SetAgentType("AgentNodeTest");
#endif
									node12.AddChild(node3);
									node12.SetHasEvents(node12.HasEvents() | node3.HasEvents());
								}
								{
									Compute_bt_node_test_selector_probability_ut_4_node14 node14 = new Compute_bt_node_test_selector_probability_ut_4_node14();
									node14.SetClassNameString("Compute");
									node14.SetId(14);
#if !BEHAVIAC_RELEASE
									node14.SetAgentType("AgentNodeTest");
#endif
									node12.AddChild(node14);
									node12.SetHasEvents(node12.HasEvents() | node14.HasEvents());
								}
								node8.SetHasEvents(node8.HasEvents() | node12.HasEvents());
							}
							{
								Wait_bt_node_test_selector_probability_ut_4_node9 node9 = new Wait_bt_node_test_selector_probability_ut_4_node9();
								node9.SetClassNameString("Wait");
								node9.SetId(9);
#if !BEHAVIAC_RELEASE
								node9.SetAgentType("AgentNodeTest");
#endif
								node8.AddChild(node9);
								node8.SetHasEvents(node8.HasEvents() | node9.HasEvents());
							}
							{
								Compute_bt_node_test_selector_probability_ut_4_node1 node1 = new Compute_bt_node_test_selector_probability_ut_4_node1();
								node1.SetClassNameString("Compute");
								node1.SetId(1);
#if !BEHAVIAC_RELEASE
								node1.SetAgentType("AgentNodeTest");
#endif
								node8.AddChild(node1);
								node8.SetHasEvents(node8.HasEvents() | node1.HasEvents());
							}
							node6.SetHasEvents(node6.HasEvents() | node8.HasEvents());
						}
						node0.SetHasEvents(node0.HasEvents() | node6.HasEvents());
					}
					node15.SetHasEvents(node15.HasEvents() | node0.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node15.HasEvents());
			}
			return true;
		}
Beispiel #2
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("node_test/condition_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);
				{
					Condition_bt_node_test_condition_ut_0_node1 node1 = new Condition_bt_node_test_condition_ut_0_node1();
					node1.SetClassNameString("Condition");
					node1.SetId(1);
#if !BEHAVIAC_RELEASE
					node1.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node1);
					node0.SetHasEvents(node0.HasEvents() | node1.HasEvents());
				}
				{
					Action_bt_node_test_condition_ut_0_node2 node2 = new Action_bt_node_test_condition_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());
				}
				{
					Condition_bt_node_test_condition_ut_0_node3 node3 = new Condition_bt_node_test_condition_ut_0_node3();
					node3.SetClassNameString("Condition");
					node3.SetId(3);
#if !BEHAVIAC_RELEASE
					node3.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node3);
					node0.SetHasEvents(node0.HasEvents() | node3.HasEvents());
				}
				{
					Action_bt_node_test_condition_ut_0_node4 node4 = new Action_bt_node_test_condition_ut_0_node4();
					node4.SetClassNameString("Action");
					node4.SetId(4);
#if !BEHAVIAC_RELEASE
					node4.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node4);
					node0.SetHasEvents(node0.HasEvents() | node4.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node0.HasEvents());
			}
			return true;
		}
Beispiel #3
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("node_test/condition_ut_3");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("AgentNodeTest");
#endif
			// children
			{
				Sequence node0 = new Sequence();
				node0.SetClassNameString("Sequence");
				node0.SetId(0);
#if !BEHAVIAC_RELEASE
				node0.SetAgentType("AgentNodeTest");
#endif
				bt.AddChild(node0);
				{
					And node9 = new And();
					node9.SetClassNameString("And");
					node9.SetId(9);
#if !BEHAVIAC_RELEASE
					node9.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node9);
					{
						Or node13 = new Or();
						node13.SetClassNameString("Or");
						node13.SetId(13);
#if !BEHAVIAC_RELEASE
						node13.SetAgentType("AgentNodeTest");
#endif
						node9.AddChild(node13);
						{
							True node10 = new True();
							node10.SetClassNameString("True");
							node10.SetId(10);
#if !BEHAVIAC_RELEASE
							node10.SetAgentType("AgentNodeTest");
#endif
							node13.AddChild(node10);
							node13.SetHasEvents(node13.HasEvents() | node10.HasEvents());
						}
						{
							False node14 = new False();
							node14.SetClassNameString("False");
							node14.SetId(14);
#if !BEHAVIAC_RELEASE
							node14.SetAgentType("AgentNodeTest");
#endif
							node13.AddChild(node14);
							node13.SetHasEvents(node13.HasEvents() | node14.HasEvents());
						}
						node9.SetHasEvents(node9.HasEvents() | node13.HasEvents());
					}
					{
						True node11 = new True();
						node11.SetClassNameString("True");
						node11.SetId(11);
#if !BEHAVIAC_RELEASE
						node11.SetAgentType("AgentNodeTest");
#endif
						node9.AddChild(node11);
						node9.SetHasEvents(node9.HasEvents() | node11.HasEvents());
					}
					node0.SetHasEvents(node0.HasEvents() | node9.HasEvents());
				}
				{
					Action_bt_node_test_condition_ut_3_node2 node2 = new Action_bt_node_test_condition_ut_3_node2();
					node2.SetClassNameString("Action");
					node2.SetId(2);
#if !BEHAVIAC_RELEASE
					node2.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node2);
					node0.SetHasEvents(node0.HasEvents() | node2.HasEvents());
				}
				{
					Or node1 = new Or();
					node1.SetClassNameString("Or");
					node1.SetId(1);
#if !BEHAVIAC_RELEASE
					node1.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node1);
					{
						And node15 = new And();
						node15.SetClassNameString("And");
						node15.SetId(15);
#if !BEHAVIAC_RELEASE
						node15.SetAgentType("AgentNodeTest");
#endif
						node1.AddChild(node15);
						{
							True node3 = new True();
							node3.SetClassNameString("True");
							node3.SetId(3);
#if !BEHAVIAC_RELEASE
							node3.SetAgentType("AgentNodeTest");
#endif
							node15.AddChild(node3);
							node15.SetHasEvents(node15.HasEvents() | node3.HasEvents());
						}
						{
							True node16 = new True();
							node16.SetClassNameString("True");
							node16.SetId(16);
#if !BEHAVIAC_RELEASE
							node16.SetAgentType("AgentNodeTest");
#endif
							node15.AddChild(node16);
							node15.SetHasEvents(node15.HasEvents() | node16.HasEvents());
						}
						node1.SetHasEvents(node1.HasEvents() | node15.HasEvents());
					}
					{
						False node5 = new False();
						node5.SetClassNameString("False");
						node5.SetId(5);
#if !BEHAVIAC_RELEASE
						node5.SetAgentType("AgentNodeTest");
#endif
						node1.AddChild(node5);
						node1.SetHasEvents(node1.HasEvents() | node5.HasEvents());
					}
					node0.SetHasEvents(node0.HasEvents() | node1.HasEvents());
				}
				{
					Action_bt_node_test_condition_ut_3_node8 node8 = new Action_bt_node_test_condition_ut_3_node8();
					node8.SetClassNameString("Action");
					node8.SetId(8);
#if !BEHAVIAC_RELEASE
					node8.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node8);
					node0.SetHasEvents(node0.HasEvents() | node8.HasEvents());
				}
				{
					And node4 = new And();
					node4.SetClassNameString("And");
					node4.SetId(4);
#if !BEHAVIAC_RELEASE
					node4.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node4);
					{
						Or node18 = new Or();
						node18.SetClassNameString("Or");
						node18.SetId(18);
#if !BEHAVIAC_RELEASE
						node18.SetAgentType("AgentNodeTest");
#endif
						node4.AddChild(node18);
						{
							Or node19 = new Or();
							node19.SetClassNameString("Or");
							node19.SetId(19);
#if !BEHAVIAC_RELEASE
							node19.SetAgentType("AgentNodeTest");
#endif
							node18.AddChild(node19);
							{
								False node6 = new False();
								node6.SetClassNameString("False");
								node6.SetId(6);
#if !BEHAVIAC_RELEASE
								node6.SetAgentType("AgentNodeTest");
#endif
								node19.AddChild(node6);
								node19.SetHasEvents(node19.HasEvents() | node6.HasEvents());
							}
							{
								True node21 = new True();
								node21.SetClassNameString("True");
								node21.SetId(21);
#if !BEHAVIAC_RELEASE
								node21.SetAgentType("AgentNodeTest");
#endif
								node19.AddChild(node21);
								node19.SetHasEvents(node19.HasEvents() | node21.HasEvents());
							}
							node18.SetHasEvents(node18.HasEvents() | node19.HasEvents());
						}
						{
							False node22 = new False();
							node22.SetClassNameString("False");
							node22.SetId(22);
#if !BEHAVIAC_RELEASE
							node22.SetAgentType("AgentNodeTest");
#endif
							node18.AddChild(node22);
							node18.SetHasEvents(node18.HasEvents() | node22.HasEvents());
						}
						node4.SetHasEvents(node4.HasEvents() | node18.HasEvents());
					}
					{
						And node17 = new And();
						node17.SetClassNameString("And");
						node17.SetId(17);
#if !BEHAVIAC_RELEASE
						node17.SetAgentType("AgentNodeTest");
#endif
						node4.AddChild(node17);
						{
							True node7 = new True();
							node7.SetClassNameString("True");
							node7.SetId(7);
#if !BEHAVIAC_RELEASE
							node7.SetAgentType("AgentNodeTest");
#endif
							node17.AddChild(node7);
							node17.SetHasEvents(node17.HasEvents() | node7.HasEvents());
						}
						{
							And node20 = new And();
							node20.SetClassNameString("And");
							node20.SetId(20);
#if !BEHAVIAC_RELEASE
							node20.SetAgentType("AgentNodeTest");
#endif
							node17.AddChild(node20);
							{
								True node23 = new True();
								node23.SetClassNameString("True");
								node23.SetId(23);
#if !BEHAVIAC_RELEASE
								node23.SetAgentType("AgentNodeTest");
#endif
								node20.AddChild(node23);
								node20.SetHasEvents(node20.HasEvents() | node23.HasEvents());
							}
							{
								True node24 = new True();
								node24.SetClassNameString("True");
								node24.SetId(24);
#if !BEHAVIAC_RELEASE
								node24.SetAgentType("AgentNodeTest");
#endif
								node20.AddChild(node24);
								node20.SetHasEvents(node20.HasEvents() | node24.HasEvents());
							}
							node17.SetHasEvents(node17.HasEvents() | node20.HasEvents());
						}
						node4.SetHasEvents(node4.HasEvents() | node17.HasEvents());
					}
					node0.SetHasEvents(node0.HasEvents() | node4.HasEvents());
				}
				{
					Action_bt_node_test_condition_ut_3_node12 node12 = new Action_bt_node_test_condition_ut_3_node12();
					node12.SetClassNameString("Action");
					node12.SetId(12);
#if !BEHAVIAC_RELEASE
					node12.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node12);
					node0.SetHasEvents(node0.HasEvents() | node12.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node0.HasEvents());
			}
			return true;
		}
Beispiel #4
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("node_test/action_ut_3");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("AgentNodeTest");
#endif
			// pars
			bt.AddPar("AgentNodeTest", "float", "par_float_type_0", "0");
			bt.AddPar("AgentNodeTest", "float", "par_float_type_1", "0");
			bt.AddPar("AgentNodeTest", "float", "par_float_type_2", "0.6");
			// children
			{
				Sequence node0 = new Sequence();
				node0.SetClassNameString("Sequence");
				node0.SetId(0);
#if !BEHAVIAC_RELEASE
				node0.SetAgentType("AgentNodeTest");
#endif
				bt.AddChild(node0);
				{
					Action_bt_node_test_action_ut_3_node14 node14 = new Action_bt_node_test_action_ut_3_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_3_node7 node7 = new Assignment_bt_node_test_action_ut_3_node7();
					node7.SetClassNameString("Assignment");
					node7.SetId(7);
#if !BEHAVIAC_RELEASE
					node7.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node7);
					node0.SetHasEvents(node0.HasEvents() | node7.HasEvents());
				}
				{
					Condition_bt_node_test_action_ut_3_node8 node8 = new Condition_bt_node_test_action_ut_3_node8();
					node8.SetClassNameString("Condition");
					node8.SetId(8);
#if !BEHAVIAC_RELEASE
					node8.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node8);
					node0.SetHasEvents(node0.HasEvents() | node8.HasEvents());
				}
				{
					Compute_bt_node_test_action_ut_3_node3 node3 = new Compute_bt_node_test_action_ut_3_node3();
					node3.SetClassNameString("Compute");
					node3.SetId(3);
#if !BEHAVIAC_RELEASE
					node3.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node3);
					node0.SetHasEvents(node0.HasEvents() | node3.HasEvents());
				}
				{
					Action_bt_node_test_action_ut_3_node2 node2 = new Action_bt_node_test_action_ut_3_node2();
					node2.SetClassNameString("Action");
					node2.SetId(2);
#if !BEHAVIAC_RELEASE
					node2.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node2);
					node0.SetHasEvents(node0.HasEvents() | node2.HasEvents());
				}
				{
					Assignment_bt_node_test_action_ut_3_node1 node1 = new Assignment_bt_node_test_action_ut_3_node1();
					node1.SetClassNameString("Assignment");
					node1.SetId(1);
#if !BEHAVIAC_RELEASE
					node1.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node1);
					node0.SetHasEvents(node0.HasEvents() | node1.HasEvents());
				}
				{
					Compute_bt_node_test_action_ut_3_node4 node4 = new Compute_bt_node_test_action_ut_3_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_3_node5 node5 = new Action_bt_node_test_action_ut_3_node5();
					node5.SetClassNameString("Action");
					node5.SetId(5);
#if !BEHAVIAC_RELEASE
					node5.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node5);
					node0.SetHasEvents(node0.HasEvents() | node5.HasEvents());
				}
				{
					Condition_bt_node_test_action_ut_3_node6 node6 = new Condition_bt_node_test_action_ut_3_node6();
					node6.SetClassNameString("Condition");
					node6.SetId(6);
#if !BEHAVIAC_RELEASE
					node6.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node6);
					node0.SetHasEvents(node0.HasEvents() | node6.HasEvents());
				}
				{
					Assignment_bt_node_test_action_ut_3_node9 node9 = new Assignment_bt_node_test_action_ut_3_node9();
					node9.SetClassNameString("Assignment");
					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;
		}
Beispiel #5
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("node_test/action_waitframes_ut_0");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("AgentNodeTest");
#endif
			// pars
			bt.AddPar("AgentNodeTest", "int", "par_frame_count", "5");
			// children
			{
				Sequence node0 = new Sequence();
				node0.SetClassNameString("Sequence");
				node0.SetId(0);
#if !BEHAVIAC_RELEASE
				node0.SetAgentType("AgentNodeTest");
#endif
				bt.AddChild(node0);
				{
					Assignment_bt_node_test_action_waitframes_ut_0_node3 node3 = new Assignment_bt_node_test_action_waitframes_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());
				}
				{
					WaitFrames_bt_node_test_action_waitframes_ut_0_node1 node1 = new WaitFrames_bt_node_test_action_waitframes_ut_0_node1();
					node1.SetClassNameString("WaitFrames");
					node1.SetId(1);
#if !BEHAVIAC_RELEASE
					node1.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node1);
					node0.SetHasEvents(node0.HasEvents() | node1.HasEvents());
				}
				{
					Assignment_bt_node_test_action_waitframes_ut_0_node4 node4 = new Assignment_bt_node_test_action_waitframes_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());
				}
				bt.SetHasEvents(bt.HasEvents() | node0.HasEvents());
			}
			return true;
		}
Beispiel #6
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;
		}
Beispiel #7
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("node_test/repeat/repeat_ut_1");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("AgentNodeTest");
#endif
			// children
			{
				Sequence node2 = new Sequence();
				node2.SetClassNameString("Sequence");
				node2.SetId(2);
#if !BEHAVIAC_RELEASE
				node2.SetAgentType("AgentNodeTest");
#endif
				bt.AddChild(node2);
				{
					Assignment_bt_node_test_repeat_repeat_ut_1_node3 node3 = new Assignment_bt_node_test_repeat_repeat_ut_1_node3();
					node3.SetClassNameString("Assignment");
					node3.SetId(3);
#if !BEHAVIAC_RELEASE
					node3.SetAgentType("AgentNodeTest");
#endif
					node2.AddChild(node3);
					node2.SetHasEvents(node2.HasEvents() | node3.HasEvents());
				}
				{
					DecoratorLoop_bt_node_test_repeat_repeat_ut_1_node0 node0 = new DecoratorLoop_bt_node_test_repeat_repeat_ut_1_node0();
					node0.SetClassNameString("DecoratorLoop");
					node0.SetId(0);
#if !BEHAVIAC_RELEASE
					node0.SetAgentType("AgentNodeTest");
#endif
					node2.AddChild(node0);
					{
						Compute_bt_node_test_repeat_repeat_ut_1_node1 node1 = new Compute_bt_node_test_repeat_repeat_ut_1_node1();
						node1.SetClassNameString("Compute");
						node1.SetId(1);
#if !BEHAVIAC_RELEASE
						node1.SetAgentType("AgentNodeTest");
#endif
						node0.AddChild(node1);
						node0.SetHasEvents(node0.HasEvents() | node1.HasEvents());
					}
					node2.SetHasEvents(node2.HasEvents() | node0.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node2.HasEvents());
			}
			return true;
		}
Beispiel #8
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;
		}
Beispiel #9
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("par_test/property_as_left_value");
			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");
			// children
			{
				Sequence node13 = new Sequence();
				node13.SetClassNameString("Sequence");
				node13.SetId(13);
#if !BEHAVIAC_RELEASE
				node13.SetAgentType("EmployeeParTestAgent");
#endif
				bt.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_property_as_left_value_node0 node0 = new Assignment_bt_par_test_property_as_left_value_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_property_as_left_value_node15 node15 = new Assignment_bt_par_test_property_as_left_value_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_property_as_left_value_node2 node2 = new Assignment_bt_par_test_property_as_left_value_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_property_as_left_value_node3 node3 = new Assignment_bt_par_test_property_as_left_value_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_property_as_left_value_node4 node4 = new Assignment_bt_par_test_property_as_left_value_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_property_as_left_value_node5 node5 = new Assignment_bt_par_test_property_as_left_value_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_property_as_left_value_node6 node6 = new Assignment_bt_par_test_property_as_left_value_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_property_as_left_value_node7 node7 = new Assignment_bt_par_test_property_as_left_value_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_property_as_left_value_node8 node8 = new Assignment_bt_par_test_property_as_left_value_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_property_as_left_value_node30 node30 = new Assignment_bt_par_test_property_as_left_value_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_property_as_left_value_node31 node31 = new Assignment_bt_par_test_property_as_left_value_node31();
						node31.SetClassNameString("Assignment");
						node31.SetId(31);
#if !BEHAVIAC_RELEASE
						node31.SetAgentType("EmployeeParTestAgent");
#endif
						node1.AddChild(node31);
						node1.SetHasEvents(node1.HasEvents() | node31.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_property_as_left_value_node9 node9 = new Assignment_bt_par_test_property_as_left_value_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_property_as_left_value_node10 node10 = new Assignment_bt_par_test_property_as_left_value_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_property_as_left_value_node11 node11 = new Assignment_bt_par_test_property_as_left_value_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_property_as_left_value_node12 node12 = new Assignment_bt_par_test_property_as_left_value_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_property_as_left_value_node17 node17 = new Assignment_bt_par_test_property_as_left_value_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_property_as_left_value_node19 node19 = new Assignment_bt_par_test_property_as_left_value_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_property_as_left_value_node18 node18 = new Assignment_bt_par_test_property_as_left_value_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_property_as_left_value_node16 node16 = new Assignment_bt_par_test_property_as_left_value_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_property_as_left_value_node20 node20 = new Assignment_bt_par_test_property_as_left_value_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_property_as_left_value_node24 node24 = new Assignment_bt_par_test_property_as_left_value_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_property_as_left_value_node25 node25 = new Assignment_bt_par_test_property_as_left_value_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_property_as_left_value_node26 node26 = new Assignment_bt_par_test_property_as_left_value_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_property_as_left_value_node27 node27 = new Assignment_bt_par_test_property_as_left_value_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_property_as_left_value_node21 node21 = new Assignment_bt_par_test_property_as_left_value_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_property_as_left_value_node23 node23 = new Assignment_bt_par_test_property_as_left_value_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_property_as_left_value_node28 node28 = new Assignment_bt_par_test_property_as_left_value_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_property_as_left_value_node29 node29 = new Assignment_bt_par_test_property_as_left_value_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());
				}
				bt.SetHasEvents(bt.HasEvents() | node13.HasEvents());
			}
			return true;
		}
Beispiel #10
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;
		}
Beispiel #11
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("par_test/custom_property_reset");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("AgentNodeTest");
#endif
			// pars
			bt.AddPar("AgentNodeTest", "int", "l_Int", "1");
			bt.AddPar("AgentNodeTest", "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("AgentNodeTest");
#endif
				bt.AddChild(node5);
				{
					Action_bt_par_test_custom_property_reset_node1 node1 = new Action_bt_par_test_custom_property_reset_node1();
					node1.SetClassNameString("Action");
					node1.SetId(1);
#if !BEHAVIAC_RELEASE
					node1.SetAgentType("AgentNodeTest");
#endif
					node5.AddChild(node1);
					node5.SetHasEvents(node5.HasEvents() | node1.HasEvents());
				}
				{
					Assignment_bt_par_test_custom_property_reset_node0 node0 = new Assignment_bt_par_test_custom_property_reset_node0();
					node0.SetClassNameString("Assignment");
					node0.SetId(0);
#if !BEHAVIAC_RELEASE
					node0.SetAgentType("AgentNodeTest");
#endif
					node5.AddChild(node0);
					node5.SetHasEvents(node5.HasEvents() | node0.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node5.HasEvents());
			}
			return true;
		}
Beispiel #12
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("par_test/const_param");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("EmployeeParTestAgent");
#endif
			// children
			{
				Sequence node22 = new Sequence();
				node22.SetClassNameString("Sequence");
				node22.SetId(22);
#if !BEHAVIAC_RELEASE
				node22.SetAgentType("EmployeeParTestAgent");
#endif
				bt.AddChild(node22);
				{
					Assignment_bt_par_test_const_param_node0 node0 = new Assignment_bt_par_test_const_param_node0();
					node0.SetClassNameString("Assignment");
					node0.SetId(0);
#if !BEHAVIAC_RELEASE
					node0.SetAgentType("EmployeeParTestAgent");
#endif
					node22.AddChild(node0);
					node22.SetHasEvents(node22.HasEvents() | node0.HasEvents());
				}
				{
					Assignment_bt_par_test_const_param_node1 node1 = new Assignment_bt_par_test_const_param_node1();
					node1.SetClassNameString("Assignment");
					node1.SetId(1);
#if !BEHAVIAC_RELEASE
					node1.SetAgentType("EmployeeParTestAgent");
#endif
					node22.AddChild(node1);
					node22.SetHasEvents(node22.HasEvents() | node1.HasEvents());
				}
				{
					Assignment_bt_par_test_const_param_node2 node2 = new Assignment_bt_par_test_const_param_node2();
					node2.SetClassNameString("Assignment");
					node2.SetId(2);
#if !BEHAVIAC_RELEASE
					node2.SetAgentType("EmployeeParTestAgent");
#endif
					node22.AddChild(node2);
					node22.SetHasEvents(node22.HasEvents() | node2.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node22.HasEvents());
			}
			return true;
		}
Beispiel #13
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;
		}
Beispiel #14
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;
		}
Beispiel #15
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("par_test/vector_test");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("TestNS.AgentArrayAccessTest");
#endif
			// pars
			bt.AddPar("TestNS::AgentArrayAccessTest", "int", "l_index", "0");
			bt.AddPar("TestNS::AgentArrayAccessTest", "vector<int>", "l_ListInts", "5:100|200|300|400|500");
			bt.AddPar("TestNS::AgentArrayAccessTest", "int", "l_Int", "0");
			// children
			{
				Sequence node22 = new Sequence();
				node22.SetClassNameString("Sequence");
				node22.SetId(22);
#if !BEHAVIAC_RELEASE
				node22.SetAgentType("TestNS.AgentArrayAccessTest");
#endif
				bt.AddChild(node22);
				{
					Assignment_bt_par_test_vector_test_node0 node0 = new Assignment_bt_par_test_vector_test_node0();
					node0.SetClassNameString("Assignment");
					node0.SetId(0);
#if !BEHAVIAC_RELEASE
					node0.SetAgentType("TestNS.AgentArrayAccessTest");
#endif
					node22.AddChild(node0);
					node22.SetHasEvents(node22.HasEvents() | node0.HasEvents());
				}
				{
					Assignment_bt_par_test_vector_test_node1 node1 = new Assignment_bt_par_test_vector_test_node1();
					node1.SetClassNameString("Assignment");
					node1.SetId(1);
#if !BEHAVIAC_RELEASE
					node1.SetAgentType("TestNS.AgentArrayAccessTest");
#endif
					node22.AddChild(node1);
					node22.SetHasEvents(node22.HasEvents() | node1.HasEvents());
				}
				{
					Assignment_bt_par_test_vector_test_node16 node16 = new Assignment_bt_par_test_vector_test_node16();
					node16.SetClassNameString("Assignment");
					node16.SetId(16);
#if !BEHAVIAC_RELEASE
					node16.SetAgentType("TestNS.AgentArrayAccessTest");
#endif
					node22.AddChild(node16);
					node22.SetHasEvents(node22.HasEvents() | node16.HasEvents());
				}
				{
					Assignment_bt_par_test_vector_test_node2 node2 = new Assignment_bt_par_test_vector_test_node2();
					node2.SetClassNameString("Assignment");
					node2.SetId(2);
#if !BEHAVIAC_RELEASE
					node2.SetAgentType("TestNS.AgentArrayAccessTest");
#endif
					node22.AddChild(node2);
					node22.SetHasEvents(node22.HasEvents() | node2.HasEvents());
				}
				{
					Assignment_bt_par_test_vector_test_node4 node4 = new Assignment_bt_par_test_vector_test_node4();
					node4.SetClassNameString("Assignment");
					node4.SetId(4);
#if !BEHAVIAC_RELEASE
					node4.SetAgentType("TestNS.AgentArrayAccessTest");
#endif
					node22.AddChild(node4);
					node22.SetHasEvents(node22.HasEvents() | node4.HasEvents());
				}
				{
					Compute_bt_par_test_vector_test_node3 node3 = new Compute_bt_par_test_vector_test_node3();
					node3.SetClassNameString("Compute");
					node3.SetId(3);
#if !BEHAVIAC_RELEASE
					node3.SetAgentType("TestNS.AgentArrayAccessTest");
#endif
					node22.AddChild(node3);
					node22.SetHasEvents(node22.HasEvents() | node3.HasEvents());
				}
				{
					Assignment_bt_par_test_vector_test_node5 node5 = new Assignment_bt_par_test_vector_test_node5();
					node5.SetClassNameString("Assignment");
					node5.SetId(5);
#if !BEHAVIAC_RELEASE
					node5.SetAgentType("TestNS.AgentArrayAccessTest");
#endif
					node22.AddChild(node5);
					node22.SetHasEvents(node22.HasEvents() | node5.HasEvents());
				}
				{
					Action_bt_par_test_vector_test_node6 node6 = new Action_bt_par_test_vector_test_node6();
					node6.SetClassNameString("Action");
					node6.SetId(6);
#if !BEHAVIAC_RELEASE
					node6.SetAgentType("TestNS.AgentArrayAccessTest");
#endif
					node22.AddChild(node6);
					node22.SetHasEvents(node22.HasEvents() | node6.HasEvents());
				}
				{
					Action_bt_par_test_vector_test_node7 node7 = new Action_bt_par_test_vector_test_node7();
					node7.SetClassNameString("Action");
					node7.SetId(7);
#if !BEHAVIAC_RELEASE
					node7.SetAgentType("TestNS.AgentArrayAccessTest");
#endif
					node22.AddChild(node7);
					node22.SetHasEvents(node22.HasEvents() | node7.HasEvents());
				}
				{
					DecoratorLoop_bt_par_test_vector_test_node8 node8 = new DecoratorLoop_bt_par_test_vector_test_node8();
					node8.SetClassNameString("DecoratorLoop");
					node8.SetId(8);
#if !BEHAVIAC_RELEASE
					node8.SetAgentType("TestNS.AgentArrayAccessTest");
#endif
					node22.AddChild(node8);
					{
						Sequence node12 = new Sequence();
						node12.SetClassNameString("Sequence");
						node12.SetId(12);
#if !BEHAVIAC_RELEASE
						node12.SetAgentType("TestNS.AgentArrayAccessTest");
#endif
						node8.AddChild(node12);
						{
							Assignment_bt_par_test_vector_test_node14 node14 = new Assignment_bt_par_test_vector_test_node14();
							node14.SetClassNameString("Assignment");
							node14.SetId(14);
#if !BEHAVIAC_RELEASE
							node14.SetAgentType("TestNS.AgentArrayAccessTest");
#endif
							node12.AddChild(node14);
							node12.SetHasEvents(node12.HasEvents() | node14.HasEvents());
						}
						{
							Action_bt_par_test_vector_test_node9 node9 = new Action_bt_par_test_vector_test_node9();
							node9.SetClassNameString("Action");
							node9.SetId(9);
#if !BEHAVIAC_RELEASE
							node9.SetAgentType("TestNS.AgentArrayAccessTest");
#endif
							node12.AddChild(node9);
							node12.SetHasEvents(node12.HasEvents() | node9.HasEvents());
						}
						node8.SetHasEvents(node8.HasEvents() | node12.HasEvents());
					}
					node22.SetHasEvents(node22.HasEvents() | node8.HasEvents());
				}
				{
					DecoratorLoop_bt_par_test_vector_test_node10 node10 = new DecoratorLoop_bt_par_test_vector_test_node10();
					node10.SetClassNameString("DecoratorLoop");
					node10.SetId(10);
#if !BEHAVIAC_RELEASE
					node10.SetAgentType("TestNS.AgentArrayAccessTest");
#endif
					node22.AddChild(node10);
					{
						Sequence node13 = new Sequence();
						node13.SetClassNameString("Sequence");
						node13.SetId(13);
#if !BEHAVIAC_RELEASE
						node13.SetAgentType("TestNS.AgentArrayAccessTest");
#endif
						node10.AddChild(node13);
						{
							Assignment_bt_par_test_vector_test_node15 node15 = new Assignment_bt_par_test_vector_test_node15();
							node15.SetClassNameString("Assignment");
							node15.SetId(15);
#if !BEHAVIAC_RELEASE
							node15.SetAgentType("TestNS.AgentArrayAccessTest");
#endif
							node13.AddChild(node15);
							node13.SetHasEvents(node13.HasEvents() | node15.HasEvents());
						}
						{
							Action_bt_par_test_vector_test_node11 node11 = new Action_bt_par_test_vector_test_node11();
							node11.SetClassNameString("Action");
							node11.SetId(11);
#if !BEHAVIAC_RELEASE
							node11.SetAgentType("TestNS.AgentArrayAccessTest");
#endif
							node13.AddChild(node11);
							node13.SetHasEvents(node13.HasEvents() | node11.HasEvents());
						}
						node10.SetHasEvents(node10.HasEvents() | node13.HasEvents());
					}
					node22.SetHasEvents(node22.HasEvents() | node10.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node22.HasEvents());
			}
			return true;
		}
Beispiel #16
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("par_test/property_as_left_value_and_param");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("EmployeeParTestAgent");
#endif
			// children
			{
				Sequence node13 = new Sequence();
				node13.SetClassNameString("Sequence");
				node13.SetId(13);
#if !BEHAVIAC_RELEASE
				node13.SetAgentType("EmployeeParTestAgent");
#endif
				bt.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_property_as_left_value_and_param_node0 node0 = new Assignment_bt_par_test_property_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_property_as_left_value_and_param_node15 node15 = new Assignment_bt_par_test_property_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_property_as_left_value_and_param_node2 node2 = new Assignment_bt_par_test_property_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_property_as_left_value_and_param_node3 node3 = new Assignment_bt_par_test_property_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_property_as_left_value_and_param_node4 node4 = new Assignment_bt_par_test_property_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_property_as_left_value_and_param_node5 node5 = new Assignment_bt_par_test_property_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_property_as_left_value_and_param_node6 node6 = new Assignment_bt_par_test_property_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_property_as_left_value_and_param_node7 node7 = new Assignment_bt_par_test_property_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_property_as_left_value_and_param_node8 node8 = new Assignment_bt_par_test_property_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_property_as_left_value_and_param_node30 node30 = new Assignment_bt_par_test_property_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_property_as_left_value_and_param_node31 node31 = new Assignment_bt_par_test_property_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());
					}
					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_property_as_left_value_and_param_node9 node9 = new Assignment_bt_par_test_property_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_property_as_left_value_and_param_node10 node10 = new Assignment_bt_par_test_property_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_property_as_left_value_and_param_node11 node11 = new Assignment_bt_par_test_property_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_property_as_left_value_and_param_node12 node12 = new Assignment_bt_par_test_property_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_property_as_left_value_and_param_node17 node17 = new Assignment_bt_par_test_property_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_property_as_left_value_and_param_node19 node19 = new Assignment_bt_par_test_property_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_property_as_left_value_and_param_node18 node18 = new Assignment_bt_par_test_property_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_property_as_left_value_and_param_node16 node16 = new Assignment_bt_par_test_property_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_property_as_left_value_and_param_node20 node20 = new Assignment_bt_par_test_property_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_property_as_left_value_and_param_node24 node24 = new Assignment_bt_par_test_property_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_property_as_left_value_and_param_node25 node25 = new Assignment_bt_par_test_property_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_property_as_left_value_and_param_node26 node26 = new Assignment_bt_par_test_property_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_property_as_left_value_and_param_node27 node27 = new Assignment_bt_par_test_property_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_property_as_left_value_and_param_node21 node21 = new Assignment_bt_par_test_property_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_property_as_left_value_and_param_node23 node23 = new Assignment_bt_par_test_property_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_property_as_left_value_and_param_node28 node28 = new Assignment_bt_par_test_property_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_property_as_left_value_and_param_node29 node29 = new Assignment_bt_par_test_property_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());
				}
				bt.SetHasEvents(bt.HasEvents() | node13.HasEvents());
			}
			return true;
		}
Beispiel #17
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;
		}
Beispiel #18
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;
		}
Beispiel #19
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;
		}
Beispiel #20
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("par_test/property_as_ref_param");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("EmployeeParTestAgent");
#endif
			// pars
			bt.AddPar("EmployeeParTestAgent", "ulong", "par2_ulong_0", "0");
			bt.AddPar("EmployeeParTestAgent", "uint", "par2_uint_0", "0");
			bt.AddPar("EmployeeParTestAgent", "vector<string>", "par2_string_list_0", "0:");
			bt.AddPar("EmployeeParTestAgent", "string", "par2_string_0", "");
			bt.AddPar("EmployeeParTestAgent", "vector<float>", "par2_single_list_0", "0:");
			bt.AddPar("EmployeeParTestAgent", "float", "par2_single_0", "0");
			bt.AddPar("EmployeeParTestAgent", "double", "par2_double_0", "0");
			bt.AddPar("EmployeeParTestAgent", "vector<behaviac.Agent>", "par2_agent_list_0", "0:");
			bt.AddPar("EmployeeParTestAgent", "behaviac.Agent", "par2_agent_0", "null");
			bt.AddPar("EmployeeParTestAgent", "ushort", "par1_ushort_0", "65535");
			bt.AddPar("EmployeeParTestAgent", "vector<TNS.ST.PER.WRK.kEmployee>", "par1_kemployee_list_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", "long", "par1_long_0", "0");
			bt.AddPar("EmployeeParTestAgent", "vector<int>", "par1_int_list_0", "0:");
			bt.AddPar("EmployeeParTestAgent", "int", "par1_int_0", "0");
			bt.AddPar("EmployeeParTestAgent", "short", "par1_short_0", "0");
			bt.AddPar("EmployeeParTestAgent", "vector<sbyte>", "par0_sbyte_list_0", "0:");
			bt.AddPar("EmployeeParTestAgent", "sbyte", "par0_sbyte_0", "0");
			bt.AddPar("EmployeeParTestAgent", "vector<TNS.NE.NAT.eColor>", "par0_ecolor_list_0", "0:");
			bt.AddPar("EmployeeParTestAgent", "TNS.NE.NAT.eColor", "par0_ecolor_0", "WHITE");
			bt.AddPar("EmployeeParTestAgent", "vector<char>", "par0_char_list_0", "0:");
			bt.AddPar("EmployeeParTestAgent", "char", "par0_char_0", "A");
			bt.AddPar("EmployeeParTestAgent", "vector<byte>", "par0_byte_list_0", "0:");
			bt.AddPar("EmployeeParTestAgent", "byte", "par0_byte_0", "0");
			bt.AddPar("EmployeeParTestAgent", "vector<bool>", "par0_boolean_list_0", "0:");
			bt.AddPar("EmployeeParTestAgent", "bool", "par0_boolean_0", "false");
			// children
			{
				Sequence node13 = new Sequence();
				node13.SetClassNameString("Sequence");
				node13.SetId(13);
#if !BEHAVIAC_RELEASE
				node13.SetAgentType("EmployeeParTestAgent");
#endif
				bt.AddChild(node13);
				{
					Sequence node1 = new Sequence();
					node1.SetClassNameString("Sequence");
					node1.SetId(1);
#if !BEHAVIAC_RELEASE
					node1.SetAgentType("EmployeeParTestAgent");
#endif
					node13.AddChild(node1);
					{
						Action_bt_par_test_property_as_ref_param_node0 node0 = new Action_bt_par_test_property_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_property_as_ref_param_node17 node17 = new Action_bt_par_test_property_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_property_as_ref_param_node2 node2 = new Action_bt_par_test_property_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_property_as_ref_param_node3 node3 = new Action_bt_par_test_property_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_property_as_ref_param_node4 node4 = new Action_bt_par_test_property_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_property_as_ref_param_node5 node5 = new Action_bt_par_test_property_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_property_as_ref_param_node32 node32 = new Action_bt_par_test_property_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());
					}
					{
						Action_bt_par_test_property_as_ref_param_node6 node6 = new Action_bt_par_test_property_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_property_as_ref_param_node7 node7 = new Action_bt_par_test_property_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_property_as_ref_param_node8 node8 = new Action_bt_par_test_property_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_property_as_ref_param_node30 node30 = new Action_bt_par_test_property_as_ref_param_node30();
						node30.SetClassNameString("Action");
						node30.SetId(30);
#if !BEHAVIAC_RELEASE
						node30.SetAgentType("EmployeeParTestAgent");
#endif
						node1.AddChild(node30);
						node1.SetHasEvents(node1.HasEvents() | node30.HasEvents());
					}
					{
						Action_bt_par_test_property_as_ref_param_node31 node31 = new Action_bt_par_test_property_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());
					}
					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);
					{
						Action_bt_par_test_property_as_ref_param_node9 node9 = new Action_bt_par_test_property_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_property_as_ref_param_node10 node10 = new Action_bt_par_test_property_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_property_as_ref_param_node11 node11 = new Action_bt_par_test_property_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_property_as_ref_param_node12 node12 = new Action_bt_par_test_property_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_property_as_ref_param_node18 node18 = new Action_bt_par_test_property_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_property_as_ref_param_node19 node19 = new Action_bt_par_test_property_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_property_as_ref_param_node20 node20 = new Action_bt_par_test_property_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());
					}
					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);
					{
						Action_bt_par_test_property_as_ref_param_node16 node16 = new Action_bt_par_test_property_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_property_as_ref_param_node21 node21 = new Action_bt_par_test_property_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_property_as_ref_param_node15 node15 = new Action_bt_par_test_property_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_property_as_ref_param_node29 node29 = new Action_bt_par_test_property_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_property_as_ref_param_node26 node26 = new Action_bt_par_test_property_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_property_as_ref_param_node27 node27 = new Action_bt_par_test_property_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_property_as_ref_param_node24 node24 = new Action_bt_par_test_property_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_property_as_ref_param_node25 node25 = new Action_bt_par_test_property_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_property_as_ref_param_node23 node23 = new Action_bt_par_test_property_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_property_as_ref_param_node28 node28 = new Action_bt_par_test_property_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());
					}
					node13.SetHasEvents(node13.HasEvents() | node22.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node13.HasEvents());
			}
			return true;
		}
Beispiel #21
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;
		}
Beispiel #22
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("par_test/readonly_default");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("PropertyReadonlyAgent");
#endif
			// children
			{
				Sequence node0 = new Sequence();
				node0.SetClassNameString("Sequence");
				node0.SetId(0);
#if !BEHAVIAC_RELEASE
				node0.SetAgentType("PropertyReadonlyAgent");
#endif
				bt.AddChild(node0);
				{
					Assignment_bt_par_test_readonly_default_node3 node3 = new Assignment_bt_par_test_readonly_default_node3();
					node3.SetClassNameString("Assignment");
					node3.SetId(3);
#if !BEHAVIAC_RELEASE
					node3.SetAgentType("PropertyReadonlyAgent");
#endif
					node0.AddChild(node3);
					node0.SetHasEvents(node0.HasEvents() | node3.HasEvents());
				}
				{
					Action_bt_par_test_readonly_default_node1 node1 = new Action_bt_par_test_readonly_default_node1();
					node1.SetClassNameString("Action");
					node1.SetId(1);
#if !BEHAVIAC_RELEASE
					node1.SetAgentType("PropertyReadonlyAgent");
#endif
					node0.AddChild(node1);
					node0.SetHasEvents(node0.HasEvents() | node1.HasEvents());
				}
				{
					Action_bt_par_test_readonly_default_node2 node2 = new Action_bt_par_test_readonly_default_node2();
					node2.SetClassNameString("Action");
					node2.SetId(2);
#if !BEHAVIAC_RELEASE
					node2.SetAgentType("PropertyReadonlyAgent");
#endif
					node0.AddChild(node2);
					node0.SetHasEvents(node0.HasEvents() | node2.HasEvents());
				}
				{
					Compute_bt_par_test_readonly_default_node4 node4 = new Compute_bt_par_test_readonly_default_node4();
					node4.SetClassNameString("Compute");
					node4.SetId(4);
#if !BEHAVIAC_RELEASE
					node4.SetAgentType("PropertyReadonlyAgent");
#endif
					node0.AddChild(node4);
					node0.SetHasEvents(node0.HasEvents() | node4.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node0.HasEvents());
			}
			return true;
		}
Beispiel #23
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("node_test/action_ut_waitforsignal_2");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("AgentNodeTest");
#endif
			// children
			{
				Sequence node0 = new Sequence();
				node0.SetClassNameString("Sequence");
				node0.SetId(0);
#if !BEHAVIAC_RELEASE
				node0.SetAgentType("AgentNodeTest");
#endif
				bt.AddChild(node0);
				{
					WaitforSignal node1 = new WaitforSignal();
					node1.SetClassNameString("WaitforSignal");
					node1.SetId(1);
#if !BEHAVIAC_RELEASE
					node1.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node1);
					{
						Or node2 = new Or();
						node2.SetClassNameString("Or");
						node2.SetId(2);
#if !BEHAVIAC_RELEASE
						node2.SetAgentType("AgentNodeTest");
#endif
						node1.SetCustomCondition(node2);
						{
							And node3 = new And();
							node3.SetClassNameString("And");
							node3.SetId(3);
#if !BEHAVIAC_RELEASE
							node3.SetAgentType("AgentNodeTest");
#endif
							node2.AddChild(node3);
							{
								Condition_bt_node_test_action_ut_waitforsignal_2_node5 node5 = new Condition_bt_node_test_action_ut_waitforsignal_2_node5();
								node5.SetClassNameString("Condition");
								node5.SetId(5);
#if !BEHAVIAC_RELEASE
								node5.SetAgentType("AgentNodeTest");
#endif
								node3.AddChild(node5);
								node3.SetHasEvents(node3.HasEvents() | node5.HasEvents());
							}
							{
								Condition_bt_node_test_action_ut_waitforsignal_2_node6 node6 = new Condition_bt_node_test_action_ut_waitforsignal_2_node6();
								node6.SetClassNameString("Condition");
								node6.SetId(6);
#if !BEHAVIAC_RELEASE
								node6.SetAgentType("AgentNodeTest");
#endif
								node3.AddChild(node6);
								node3.SetHasEvents(node3.HasEvents() | node6.HasEvents());
							}
							node2.SetHasEvents(node2.HasEvents() | node3.HasEvents());
						}
						{
							Condition_bt_node_test_action_ut_waitforsignal_2_node7 node7 = new Condition_bt_node_test_action_ut_waitforsignal_2_node7();
							node7.SetClassNameString("Condition");
							node7.SetId(7);
#if !BEHAVIAC_RELEASE
							node7.SetAgentType("AgentNodeTest");
#endif
							node2.AddChild(node7);
							node2.SetHasEvents(node2.HasEvents() | node7.HasEvents());
						}
						node1.SetHasEvents(node1.HasEvents() | node2.HasEvents());
					}
					node0.SetHasEvents(node0.HasEvents() | node1.HasEvents());
				}
				{
					Assignment_bt_node_test_action_ut_waitforsignal_2_node4 node4 = new Assignment_bt_node_test_action_ut_waitforsignal_2_node4();
					node4.SetClassNameString("Assignment");
					node4.SetId(4);
#if !BEHAVIAC_RELEASE
					node4.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node4);
					node0.SetHasEvents(node0.HasEvents() | node4.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node0.HasEvents());
			}
			return true;
		}
Beispiel #24
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("par_test/register_name_as_left_value_and_param");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("EmployeeParTestAgent");
#endif
			// children
			{
				Sequence node0 = new Sequence();
				node0.SetClassNameString("Sequence");
				node0.SetId(0);
#if !BEHAVIAC_RELEASE
				node0.SetAgentType("EmployeeParTestAgent");
#endif
				bt.AddChild(node0);
				{
					Assignment_bt_par_test_register_name_as_left_value_and_param_node1 node1 = new Assignment_bt_par_test_register_name_as_left_value_and_param_node1();
					node1.SetClassNameString("Assignment");
					node1.SetId(1);
#if !BEHAVIAC_RELEASE
					node1.SetAgentType("EmployeeParTestAgent");
#endif
					node0.AddChild(node1);
					node0.SetHasEvents(node0.HasEvents() | node1.HasEvents());
				}
				{
					Assignment_bt_par_test_register_name_as_left_value_and_param_node4 node4 = new Assignment_bt_par_test_register_name_as_left_value_and_param_node4();
					node4.SetClassNameString("Assignment");
					node4.SetId(4);
#if !BEHAVIAC_RELEASE
					node4.SetAgentType("EmployeeParTestAgent");
#endif
					node0.AddChild(node4);
					node0.SetHasEvents(node0.HasEvents() | node4.HasEvents());
				}
				{
					Assignment_bt_par_test_register_name_as_left_value_and_param_node5 node5 = new Assignment_bt_par_test_register_name_as_left_value_and_param_node5();
					node5.SetClassNameString("Assignment");
					node5.SetId(5);
#if !BEHAVIAC_RELEASE
					node5.SetAgentType("EmployeeParTestAgent");
#endif
					node0.AddChild(node5);
					node0.SetHasEvents(node0.HasEvents() | node5.HasEvents());
				}
				{
					Assignment_bt_par_test_register_name_as_left_value_and_param_node6 node6 = new Assignment_bt_par_test_register_name_as_left_value_and_param_node6();
					node6.SetClassNameString("Assignment");
					node6.SetId(6);
#if !BEHAVIAC_RELEASE
					node6.SetAgentType("EmployeeParTestAgent");
#endif
					node0.AddChild(node6);
					node0.SetHasEvents(node0.HasEvents() | node6.HasEvents());
				}
				{
					Assignment_bt_par_test_register_name_as_left_value_and_param_node7 node7 = new Assignment_bt_par_test_register_name_as_left_value_and_param_node7();
					node7.SetClassNameString("Assignment");
					node7.SetId(7);
#if !BEHAVIAC_RELEASE
					node7.SetAgentType("EmployeeParTestAgent");
#endif
					node0.AddChild(node7);
					node0.SetHasEvents(node0.HasEvents() | node7.HasEvents());
				}
				{
					Assignment_bt_par_test_register_name_as_left_value_and_param_node8 node8 = new Assignment_bt_par_test_register_name_as_left_value_and_param_node8();
					node8.SetClassNameString("Assignment");
					node8.SetId(8);
#if !BEHAVIAC_RELEASE
					node8.SetAgentType("EmployeeParTestAgent");
#endif
					node0.AddChild(node8);
					node0.SetHasEvents(node0.HasEvents() | node8.HasEvents());
				}
				{
					Assignment_bt_par_test_register_name_as_left_value_and_param_node9 node9 = new Assignment_bt_par_test_register_name_as_left_value_and_param_node9();
					node9.SetClassNameString("Assignment");
					node9.SetId(9);
#if !BEHAVIAC_RELEASE
					node9.SetAgentType("EmployeeParTestAgent");
#endif
					node0.AddChild(node9);
					node0.SetHasEvents(node0.HasEvents() | node9.HasEvents());
				}
				{
					Assignment_bt_par_test_register_name_as_left_value_and_param_node10 node10 = new Assignment_bt_par_test_register_name_as_left_value_and_param_node10();
					node10.SetClassNameString("Assignment");
					node10.SetId(10);
#if !BEHAVIAC_RELEASE
					node10.SetAgentType("EmployeeParTestAgent");
#endif
					node0.AddChild(node10);
					node0.SetHasEvents(node0.HasEvents() | node10.HasEvents());
				}
				{
					Assignment_bt_par_test_register_name_as_left_value_and_param_node11 node11 = new Assignment_bt_par_test_register_name_as_left_value_and_param_node11();
					node11.SetClassNameString("Assignment");
					node11.SetId(11);
#if !BEHAVIAC_RELEASE
					node11.SetAgentType("EmployeeParTestAgent");
#endif
					node0.AddChild(node11);
					node0.SetHasEvents(node0.HasEvents() | node11.HasEvents());
				}
				{
					Assignment_bt_par_test_register_name_as_left_value_and_param_node12 node12 = new Assignment_bt_par_test_register_name_as_left_value_and_param_node12();
					node12.SetClassNameString("Assignment");
					node12.SetId(12);
#if !BEHAVIAC_RELEASE
					node12.SetAgentType("EmployeeParTestAgent");
#endif
					node0.AddChild(node12);
					node0.SetHasEvents(node0.HasEvents() | node12.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node0.HasEvents());
			}
			return true;
		}
Beispiel #25
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("node_test/circular_ut_0");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("AgentNodeTest");
#endif
			// children
			{
				Selector node0 = new Selector();
				node0.SetClassNameString("Selector");
				node0.SetId(0);
#if !BEHAVIAC_RELEASE
				node0.SetAgentType("AgentNodeTest");
#endif
				bt.AddChild(node0);
				{
					Sequence node2 = new Sequence();
					node2.SetClassNameString("Sequence");
					node2.SetId(2);
#if !BEHAVIAC_RELEASE
					node2.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node2);
					{
						Condition_bt_node_test_circular_ut_0_node5 node5 = new Condition_bt_node_test_circular_ut_0_node5();
						node5.SetClassNameString("Condition");
						node5.SetId(5);
#if !BEHAVIAC_RELEASE
						node5.SetAgentType("AgentNodeTest");
#endif
						node2.AddChild(node5);
						node2.SetHasEvents(node2.HasEvents() | node5.HasEvents());
					}
					{
						Sequence node4 = new Sequence();
						node4.SetClassNameString("Sequence");
						node4.SetId(4);
#if !BEHAVIAC_RELEASE
						node4.SetAgentType("AgentNodeTest");
#endif
						node2.AddChild(node4);
						{
							Assignment_bt_node_test_circular_ut_0_node3 node3 = new Assignment_bt_node_test_circular_ut_0_node3();
							node3.SetClassNameString("Assignment");
							node3.SetId(3);
#if !BEHAVIAC_RELEASE
							node3.SetAgentType("AgentNodeTest");
#endif
							node4.AddChild(node3);
							node4.SetHasEvents(node4.HasEvents() | node3.HasEvents());
						}
						{
							ReferencedBehavior_bt_node_test_circular_ut_0_node6 node6 = new ReferencedBehavior_bt_node_test_circular_ut_0_node6();
							node6.SetClassNameString("ReferencedBehavior");
							node6.SetId(6);
#if !BEHAVIAC_RELEASE
							node6.SetAgentType("AgentNodeTest");
#endif
							node4.AddChild(node6);
							node4.SetHasEvents(node4.HasEvents() | node6.HasEvents());
						}
						node2.SetHasEvents(node2.HasEvents() | node4.HasEvents());
					}
					node0.SetHasEvents(node0.HasEvents() | node2.HasEvents());
				}
				{
					Compute_bt_node_test_circular_ut_0_node1 node1 = new Compute_bt_node_test_circular_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());
				}
				bt.SetHasEvents(bt.HasEvents() | node0.HasEvents());
			}
			return true;
		}
Beispiel #26
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("node_test/fsm/bt_ref_fsm");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("FSMAgentTest");
#endif
			// children
			{
				Sequence node0 = new Sequence();
				node0.SetClassNameString("Sequence");
				node0.SetId(0);
#if !BEHAVIAC_RELEASE
				node0.SetAgentType("FSMAgentTest");
#endif
				bt.AddChild(node0);
				{
					Assignment_bt_node_test_fsm_bt_ref_fsm_node2 node2 = new Assignment_bt_node_test_fsm_bt_ref_fsm_node2();
					node2.SetClassNameString("Assignment");
					node2.SetId(2);
#if !BEHAVIAC_RELEASE
					node2.SetAgentType("FSMAgentTest");
#endif
					node0.AddChild(node2);
					node0.SetHasEvents(node0.HasEvents() | node2.HasEvents());
				}
				{
					ReferencedBehavior_bt_node_test_fsm_bt_ref_fsm_node1 node1 = new ReferencedBehavior_bt_node_test_fsm_bt_ref_fsm_node1();
					node1.SetClassNameString("ReferencedBehavior");
					node1.SetId(1);
#if !BEHAVIAC_RELEASE
					node1.SetAgentType("FSMAgentTest");
#endif
					node0.AddChild(node1);
					node0.SetHasEvents(node0.HasEvents() | node1.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node0.HasEvents());
			}
			return true;
		}
Beispiel #27
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("node_test/condition_ut_1");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("AgentNodeTest");
#endif
			// pars
			bt.AddPar("AgentNodeTest", "ParTestAgent", "par_agent", "null");
			// children
			{
				Sequence node0 = new Sequence();
				node0.SetClassNameString("Sequence");
				node0.SetId(0);
#if !BEHAVIAC_RELEASE
				node0.SetAgentType("AgentNodeTest");
#endif
				bt.AddChild(node0);
				{
					Or node9 = new Or();
					node9.SetClassNameString("Or");
					node9.SetId(9);
#if !BEHAVIAC_RELEASE
					node9.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node9);
					{
						Condition_bt_node_test_condition_ut_1_node10 node10 = new Condition_bt_node_test_condition_ut_1_node10();
						node10.SetClassNameString("Condition");
						node10.SetId(10);
#if !BEHAVIAC_RELEASE
						node10.SetAgentType("AgentNodeTest");
#endif
						node9.AddChild(node10);
						node9.SetHasEvents(node9.HasEvents() | node10.HasEvents());
					}
					{
						True node11 = new True();
						node11.SetClassNameString("True");
						node11.SetId(11);
#if !BEHAVIAC_RELEASE
						node11.SetAgentType("AgentNodeTest");
#endif
						node9.AddChild(node11);
						node9.SetHasEvents(node9.HasEvents() | node11.HasEvents());
					}
					node0.SetHasEvents(node0.HasEvents() | node9.HasEvents());
				}
				{
					Or node1 = new Or();
					node1.SetClassNameString("Or");
					node1.SetId(1);
#if !BEHAVIAC_RELEASE
					node1.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node1);
					{
						True node3 = new True();
						node3.SetClassNameString("True");
						node3.SetId(3);
#if !BEHAVIAC_RELEASE
						node3.SetAgentType("AgentNodeTest");
#endif
						node1.AddChild(node3);
						node1.SetHasEvents(node1.HasEvents() | node3.HasEvents());
					}
					{
						False node5 = new False();
						node5.SetClassNameString("False");
						node5.SetId(5);
#if !BEHAVIAC_RELEASE
						node5.SetAgentType("AgentNodeTest");
#endif
						node1.AddChild(node5);
						node1.SetHasEvents(node1.HasEvents() | node5.HasEvents());
					}
					node0.SetHasEvents(node0.HasEvents() | node1.HasEvents());
				}
				{
					Action_bt_node_test_condition_ut_1_node2 node2 = new Action_bt_node_test_condition_ut_1_node2();
					node2.SetClassNameString("Action");
					node2.SetId(2);
#if !BEHAVIAC_RELEASE
					node2.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node2);
					node0.SetHasEvents(node0.HasEvents() | node2.HasEvents());
				}
				{
					Or node4 = new Or();
					node4.SetClassNameString("Or");
					node4.SetId(4);
#if !BEHAVIAC_RELEASE
					node4.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node4);
					{
						False node6 = new False();
						node6.SetClassNameString("False");
						node6.SetId(6);
#if !BEHAVIAC_RELEASE
						node6.SetAgentType("AgentNodeTest");
#endif
						node4.AddChild(node6);
						node4.SetHasEvents(node4.HasEvents() | node6.HasEvents());
					}
					{
						False node7 = new False();
						node7.SetClassNameString("False");
						node7.SetId(7);
#if !BEHAVIAC_RELEASE
						node7.SetAgentType("AgentNodeTest");
#endif
						node4.AddChild(node7);
						node4.SetHasEvents(node4.HasEvents() | node7.HasEvents());
					}
					node0.SetHasEvents(node0.HasEvents() | node4.HasEvents());
				}
				{
					Action_bt_node_test_condition_ut_1_node8 node8 = new Action_bt_node_test_condition_ut_1_node8();
					node8.SetClassNameString("Action");
					node8.SetId(8);
#if !BEHAVIAC_RELEASE
					node8.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node8);
					node0.SetHasEvents(node0.HasEvents() | node8.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node0.HasEvents());
			}
			return true;
		}
Beispiel #28
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("par_test/static_property_as_ref_param");
			bt.IsFSM = false;
#if !BEHAVIAC_RELEASE
			bt.SetAgentType("EmployeeParTestAgent");
#endif
			// children
			{
				Sequence node0 = new Sequence();
				node0.SetClassNameString("Sequence");
				node0.SetId(0);
#if !BEHAVIAC_RELEASE
				node0.SetAgentType("EmployeeParTestAgent");
#endif
				bt.AddChild(node0);
				{
					Sequence node1 = new Sequence();
					node1.SetClassNameString("Sequence");
					node1.SetId(1);
#if !BEHAVIAC_RELEASE
					node1.SetAgentType("EmployeeParTestAgent");
#endif
					node0.AddChild(node1);
					{
						Action_bt_par_test_static_property_as_ref_param_node4 node4 = new Action_bt_par_test_static_property_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_static_property_as_ref_param_node5 node5 = new Action_bt_par_test_static_property_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_static_property_as_ref_param_node6 node6 = new Action_bt_par_test_static_property_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_static_property_as_ref_param_node7 node7 = new Action_bt_par_test_static_property_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_static_property_as_ref_param_node8 node8 = new Action_bt_par_test_static_property_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_static_property_as_ref_param_node9 node9 = new Action_bt_par_test_static_property_as_ref_param_node9();
						node9.SetClassNameString("Action");
						node9.SetId(9);
#if !BEHAVIAC_RELEASE
						node9.SetAgentType("EmployeeParTestAgent");
#endif
						node1.AddChild(node9);
						node1.SetHasEvents(node1.HasEvents() | node9.HasEvents());
					}
					{
						Action_bt_par_test_static_property_as_ref_param_node10 node10 = new Action_bt_par_test_static_property_as_ref_param_node10();
						node10.SetClassNameString("Action");
						node10.SetId(10);
#if !BEHAVIAC_RELEASE
						node10.SetAgentType("EmployeeParTestAgent");
#endif
						node1.AddChild(node10);
						node1.SetHasEvents(node1.HasEvents() | node10.HasEvents());
					}
					node0.SetHasEvents(node0.HasEvents() | node1.HasEvents());
				}
				{
					Sequence node2 = new Sequence();
					node2.SetClassNameString("Sequence");
					node2.SetId(2);
#if !BEHAVIAC_RELEASE
					node2.SetAgentType("EmployeeParTestAgent");
#endif
					node0.AddChild(node2);
					{
						Action_bt_par_test_static_property_as_ref_param_node15 node15 = new Action_bt_par_test_static_property_as_ref_param_node15();
						node15.SetClassNameString("Action");
						node15.SetId(15);
#if !BEHAVIAC_RELEASE
						node15.SetAgentType("EmployeeParTestAgent");
#endif
						node2.AddChild(node15);
						node2.SetHasEvents(node2.HasEvents() | node15.HasEvents());
					}
					{
						Action_bt_par_test_static_property_as_ref_param_node12 node12 = new Action_bt_par_test_static_property_as_ref_param_node12();
						node12.SetClassNameString("Action");
						node12.SetId(12);
#if !BEHAVIAC_RELEASE
						node12.SetAgentType("EmployeeParTestAgent");
#endif
						node2.AddChild(node12);
						node2.SetHasEvents(node2.HasEvents() | node12.HasEvents());
					}
					{
						Action_bt_par_test_static_property_as_ref_param_node13 node13 = new Action_bt_par_test_static_property_as_ref_param_node13();
						node13.SetClassNameString("Action");
						node13.SetId(13);
#if !BEHAVIAC_RELEASE
						node13.SetAgentType("EmployeeParTestAgent");
#endif
						node2.AddChild(node13);
						node2.SetHasEvents(node2.HasEvents() | node13.HasEvents());
					}
					{
						Action_bt_par_test_static_property_as_ref_param_node11 node11 = new Action_bt_par_test_static_property_as_ref_param_node11();
						node11.SetClassNameString("Action");
						node11.SetId(11);
#if !BEHAVIAC_RELEASE
						node11.SetAgentType("EmployeeParTestAgent");
#endif
						node2.AddChild(node11);
						node2.SetHasEvents(node2.HasEvents() | node11.HasEvents());
					}
					node0.SetHasEvents(node0.HasEvents() | node2.HasEvents());
				}
				{
					Sequence node3 = new Sequence();
					node3.SetClassNameString("Sequence");
					node3.SetId(3);
#if !BEHAVIAC_RELEASE
					node3.SetAgentType("EmployeeParTestAgent");
#endif
					node0.AddChild(node3);
					{
						Action_bt_par_test_static_property_as_ref_param_node14 node14 = new Action_bt_par_test_static_property_as_ref_param_node14();
						node14.SetClassNameString("Action");
						node14.SetId(14);
#if !BEHAVIAC_RELEASE
						node14.SetAgentType("EmployeeParTestAgent");
#endif
						node3.AddChild(node14);
						node3.SetHasEvents(node3.HasEvents() | node14.HasEvents());
					}
					{
						Action_bt_par_test_static_property_as_ref_param_node16 node16 = new Action_bt_par_test_static_property_as_ref_param_node16();
						node16.SetClassNameString("Action");
						node16.SetId(16);
#if !BEHAVIAC_RELEASE
						node16.SetAgentType("EmployeeParTestAgent");
#endif
						node3.AddChild(node16);
						node3.SetHasEvents(node3.HasEvents() | node16.HasEvents());
					}
					{
						Action_bt_par_test_static_property_as_ref_param_node17 node17 = new Action_bt_par_test_static_property_as_ref_param_node17();
						node17.SetClassNameString("Action");
						node17.SetId(17);
#if !BEHAVIAC_RELEASE
						node17.SetAgentType("EmployeeParTestAgent");
#endif
						node3.AddChild(node17);
						node3.SetHasEvents(node3.HasEvents() | node17.HasEvents());
					}
					{
						Action_bt_par_test_static_property_as_ref_param_node18 node18 = new Action_bt_par_test_static_property_as_ref_param_node18();
						node18.SetClassNameString("Action");
						node18.SetId(18);
#if !BEHAVIAC_RELEASE
						node18.SetAgentType("EmployeeParTestAgent");
#endif
						node3.AddChild(node18);
						node3.SetHasEvents(node3.HasEvents() | node18.HasEvents());
					}
					{
						Action_bt_par_test_static_property_as_ref_param_node19 node19 = new Action_bt_par_test_static_property_as_ref_param_node19();
						node19.SetClassNameString("Action");
						node19.SetId(19);
#if !BEHAVIAC_RELEASE
						node19.SetAgentType("EmployeeParTestAgent");
#endif
						node3.AddChild(node19);
						node3.SetHasEvents(node3.HasEvents() | node19.HasEvents());
					}
					{
						Action_bt_par_test_static_property_as_ref_param_node20 node20 = new Action_bt_par_test_static_property_as_ref_param_node20();
						node20.SetClassNameString("Action");
						node20.SetId(20);
#if !BEHAVIAC_RELEASE
						node20.SetAgentType("EmployeeParTestAgent");
#endif
						node3.AddChild(node20);
						node3.SetHasEvents(node3.HasEvents() | node20.HasEvents());
					}
					node0.SetHasEvents(node0.HasEvents() | node3.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node0.HasEvents());
			}
			return true;
		}
Beispiel #29
0
		public static bool build_behavior_tree(BehaviorTree bt)
		{
			bt.SetClassNameString("BehaviorTree");
			bt.SetId(-1);
			bt.SetName("node_test/decoration_alwayssuccess_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);
				{
					Selector node4 = new Selector();
					node4.SetClassNameString("Selector");
					node4.SetId(4);
#if !BEHAVIAC_RELEASE
					node4.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node4);
					{
						DecoratorAlwaysSuccess_bt_node_test_decoration_alwayssuccess_ut_0_node1 node1 = new DecoratorAlwaysSuccess_bt_node_test_decoration_alwayssuccess_ut_0_node1();
						node1.SetClassNameString("DecoratorAlwaysSuccess");
						node1.SetId(1);
#if !BEHAVIAC_RELEASE
						node1.SetAgentType("AgentNodeTest");
#endif
						node4.AddChild(node1);
						{
							Action_bt_node_test_decoration_alwayssuccess_ut_0_node5 node5 = new Action_bt_node_test_decoration_alwayssuccess_ut_0_node5();
							node5.SetClassNameString("Action");
							node5.SetId(5);
#if !BEHAVIAC_RELEASE
							node5.SetAgentType("AgentNodeTest");
#endif
							node1.AddChild(node5);
							node1.SetHasEvents(node1.HasEvents() | node5.HasEvents());
						}
						node4.SetHasEvents(node4.HasEvents() | node1.HasEvents());
					}
					{
						Action_bt_node_test_decoration_alwayssuccess_ut_0_node6 node6 = new Action_bt_node_test_decoration_alwayssuccess_ut_0_node6();
						node6.SetClassNameString("Action");
						node6.SetId(6);
#if !BEHAVIAC_RELEASE
						node6.SetAgentType("AgentNodeTest");
#endif
						node4.AddChild(node6);
						node4.SetHasEvents(node4.HasEvents() | node6.HasEvents());
					}
					node0.SetHasEvents(node0.HasEvents() | node4.HasEvents());
				}
				{
					Selector node2 = new Selector();
					node2.SetClassNameString("Selector");
					node2.SetId(2);
#if !BEHAVIAC_RELEASE
					node2.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node2);
					{
						DecoratorAlwaysSuccess_bt_node_test_decoration_alwayssuccess_ut_0_node3 node3 = new DecoratorAlwaysSuccess_bt_node_test_decoration_alwayssuccess_ut_0_node3();
						node3.SetClassNameString("DecoratorAlwaysSuccess");
						node3.SetId(3);
#if !BEHAVIAC_RELEASE
						node3.SetAgentType("AgentNodeTest");
#endif
						node2.AddChild(node3);
						{
							Action_bt_node_test_decoration_alwayssuccess_ut_0_node7 node7 = new Action_bt_node_test_decoration_alwayssuccess_ut_0_node7();
							node7.SetClassNameString("Action");
							node7.SetId(7);
#if !BEHAVIAC_RELEASE
							node7.SetAgentType("AgentNodeTest");
#endif
							node3.AddChild(node7);
							node3.SetHasEvents(node3.HasEvents() | node7.HasEvents());
						}
						node2.SetHasEvents(node2.HasEvents() | node3.HasEvents());
					}
					{
						Action_bt_node_test_decoration_alwayssuccess_ut_0_node8 node8 = new Action_bt_node_test_decoration_alwayssuccess_ut_0_node8();
						node8.SetClassNameString("Action");
						node8.SetId(8);
#if !BEHAVIAC_RELEASE
						node8.SetAgentType("AgentNodeTest");
#endif
						node2.AddChild(node8);
						node2.SetHasEvents(node2.HasEvents() | node8.HasEvents());
					}
					node0.SetHasEvents(node0.HasEvents() | node2.HasEvents());
				}
				{
					Selector node9 = new Selector();
					node9.SetClassNameString("Selector");
					node9.SetId(9);
#if !BEHAVIAC_RELEASE
					node9.SetAgentType("AgentNodeTest");
#endif
					node0.AddChild(node9);
					{
						DecoratorAlwaysSuccess_bt_node_test_decoration_alwayssuccess_ut_0_node10 node10 = new DecoratorAlwaysSuccess_bt_node_test_decoration_alwayssuccess_ut_0_node10();
						node10.SetClassNameString("DecoratorAlwaysSuccess");
						node10.SetId(10);
#if !BEHAVIAC_RELEASE
						node10.SetAgentType("AgentNodeTest");
#endif
						node9.AddChild(node10);
						{
							Action_bt_node_test_decoration_alwayssuccess_ut_0_node11 node11 = new Action_bt_node_test_decoration_alwayssuccess_ut_0_node11();
							node11.SetClassNameString("Action");
							node11.SetId(11);
#if !BEHAVIAC_RELEASE
							node11.SetAgentType("AgentNodeTest");
#endif
							node10.AddChild(node11);
							node10.SetHasEvents(node10.HasEvents() | node11.HasEvents());
						}
						node9.SetHasEvents(node9.HasEvents() | node10.HasEvents());
					}
					{
						Action_bt_node_test_decoration_alwayssuccess_ut_0_node12 node12 = new Action_bt_node_test_decoration_alwayssuccess_ut_0_node12();
						node12.SetClassNameString("Action");
						node12.SetId(12);
#if !BEHAVIAC_RELEASE
						node12.SetAgentType("AgentNodeTest");
#endif
						node9.AddChild(node12);
						node9.SetHasEvents(node9.HasEvents() | node12.HasEvents());
					}
					node0.SetHasEvents(node0.HasEvents() | node9.HasEvents());
				}
				bt.SetHasEvents(bt.HasEvents() | node0.HasEvents());
			}
			return true;
		}
 public static bool build_behavior_tree(BehaviorTree bt)
 {
     bt.SetClassNameString("BehaviorTree");
     bt.SetId(-1);
     bt.SetName("node_test/action_child_agent_0");
     bt.IsFSM = false;
     #if !BEHAVIAC_RELEASE
     bt.SetAgentType("AgentNodeTest");
     #endif
     // pars
     bt.AddPar("AgentNodeTest", "AgentNodeTest", "par_child_agent", "null");
     // children
     {
         Sequence node0 = new Sequence();
         node0.SetClassNameString("Sequence");
         node0.SetId(0);
     #if !BEHAVIAC_RELEASE
         node0.SetAgentType("AgentNodeTest");
     #endif
         bt.AddChild(node0);
         {
             Action_bt_node_test_action_child_agent_0_node3 node3 = new Action_bt_node_test_action_child_agent_0_node3();
             node3.SetClassNameString("Action");
             node3.SetId(3);
     #if !BEHAVIAC_RELEASE
             node3.SetAgentType("AgentNodeTest");
     #endif
             node0.AddChild(node3);
             node0.SetHasEvents(node0.HasEvents() | node3.HasEvents());
         }
         {
             Assignment_bt_node_test_action_child_agent_0_node2 node2 = new Assignment_bt_node_test_action_child_agent_0_node2();
             node2.SetClassNameString("Assignment");
             node2.SetId(2);
     #if !BEHAVIAC_RELEASE
             node2.SetAgentType("AgentNodeTest");
     #endif
             node0.AddChild(node2);
             node0.SetHasEvents(node0.HasEvents() | node2.HasEvents());
         }
         {
             Action_bt_node_test_action_child_agent_0_node1 node1 = new Action_bt_node_test_action_child_agent_0_node1();
             node1.SetClassNameString("Action");
             node1.SetId(1);
     #if !BEHAVIAC_RELEASE
             node1.SetAgentType("AgentNodeTest");
     #endif
             node0.AddChild(node1);
             node0.SetHasEvents(node0.HasEvents() | node1.HasEvents());
         }
         bt.SetHasEvents(bt.HasEvents() | node0.HasEvents());
     }
     return true;
 }