public static bool build_behavior_tree(BehaviorTree bt) { bt.SetClassNameString("BehaviorTree"); bt.SetId(-1); bt.SetName("node_test/decoration_countlimit_ut_2"); bt.IsFSM = false; #if !BEHAVIAC_RELEASE bt.SetAgentType("AgentNodeTest"); #endif // children { Selector node0 = new Selector(); node0.SetClassNameString("Selector"); node0.SetId(0); #if !BEHAVIAC_RELEASE node0.SetAgentType("AgentNodeTest"); #endif bt.AddChild(node0); { DecoratorCountLimit_bt_node_test_decoration_countlimit_ut_2_node1 node1 = new DecoratorCountLimit_bt_node_test_decoration_countlimit_ut_2_node1(); node1.SetClassNameString("DecoratorCountLimit"); node1.SetId(1); #if !BEHAVIAC_RELEASE node1.SetAgentType("AgentNodeTest"); #endif node0.AddChild(node1); { And node4 = new And(); node4.SetClassNameString("And"); node4.SetId(4); #if !BEHAVIAC_RELEASE node4.SetAgentType("AgentNodeTest"); #endif node1.SetCustomCondition(node4); { Condition_bt_node_test_decoration_countlimit_ut_2_node5 node5 = new Condition_bt_node_test_decoration_countlimit_ut_2_node5(); node5.SetClassNameString("Condition"); node5.SetId(5); #if !BEHAVIAC_RELEASE node5.SetAgentType("AgentNodeTest"); #endif node4.AddChild(node5); node4.SetHasEvents(node4.HasEvents() | node5.HasEvents()); } { Condition_bt_node_test_decoration_countlimit_ut_2_node6 node6 = new Condition_bt_node_test_decoration_countlimit_ut_2_node6(); node6.SetClassNameString("Condition"); node6.SetId(6); #if !BEHAVIAC_RELEASE node6.SetAgentType("AgentNodeTest"); #endif node4.AddChild(node6); node4.SetHasEvents(node4.HasEvents() | node6.HasEvents()); } node1.SetHasEvents(node1.HasEvents() | node4.HasEvents()); } { Action_bt_node_test_decoration_countlimit_ut_2_node2 node2 = new Action_bt_node_test_decoration_countlimit_ut_2_node2(); node2.SetClassNameString("Action"); node2.SetId(2); #if !BEHAVIAC_RELEASE node2.SetAgentType("AgentNodeTest"); #endif node1.AddChild(node2); node1.SetHasEvents(node1.HasEvents() | node2.HasEvents()); } node0.SetHasEvents(node0.HasEvents() | node1.HasEvents()); } { Action_bt_node_test_decoration_countlimit_ut_2_node3 node3 = new Action_bt_node_test_decoration_countlimit_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()); } 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/decoration_countlimit_ut_2"); #if !BEHAVIAC_RELEASE bt.SetAgentType("AgentNodeTest"); #endif // children { Selector node0 = new Selector(); node0.SetClassNameString("Selector"); node0.SetId(0); #if !BEHAVIAC_RELEASE node0.SetAgentType("AgentNodeTest"); #endif bt.AddChild(node0); { DecoratorCountLimit_bt_node_test_decoration_countlimit_ut_2_node1 node1 = new DecoratorCountLimit_bt_node_test_decoration_countlimit_ut_2_node1(); node1.SetClassNameString("DecoratorCountLimit"); node1.SetId(1); #if !BEHAVIAC_RELEASE node1.SetAgentType("AgentNodeTest"); #endif // attachments { Predicate_bt_node_test_decoration_countlimit_ut_2_attach4 attach4 = new Predicate_bt_node_test_decoration_countlimit_ut_2_attach4(); attach4.SetClassNameString("Predicate"); attach4.SetId(4); #if !BEHAVIAC_RELEASE attach4.SetAgentType("AgentNodeTest"); #endif node1.Attach(attach4); } { Predicate_bt_node_test_decoration_countlimit_ut_2_attach5 attach5 = new Predicate_bt_node_test_decoration_countlimit_ut_2_attach5(); attach5.SetClassNameString("Predicate"); attach5.SetId(5); #if !BEHAVIAC_RELEASE attach5.SetAgentType("AgentNodeTest"); #endif node1.Attach(attach5); } node0.AddChild(node1); { Action_bt_node_test_decoration_countlimit_ut_2_node2 node2 = new Action_bt_node_test_decoration_countlimit_ut_2_node2(); node2.SetClassNameString("Action"); node2.SetId(2); #if !BEHAVIAC_RELEASE node2.SetAgentType("AgentNodeTest"); #endif node1.AddChild(node2); node1.SetHasEvents(node1.HasEvents() | node2.HasEvents()); } node0.SetHasEvents(node0.HasEvents() | node1.HasEvents()); } { Action_bt_node_test_decoration_countlimit_ut_2_node3 node3 = new Action_bt_node_test_decoration_countlimit_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()); } bt.SetHasEvents(bt.HasEvents() | node0.HasEvents()); } return true; }