61npBdatsPCe.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <behavior agenttype="red::RedBehaviacTree" name="61npBdatsPCe" version="5">
  3. <node class="Sequence" id="0">
  4. <node class="Assignment" id="3">
  5. <property CastRight="false"/>
  6. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  7. <property Opr="Self.red::RedBehaviacTree::getFunStringVar(&quot;当前阶段&quot;)"/>
  8. </node>
  9. <node class="Assignment" id="4">
  10. <property CastRight="true"/>
  11. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  12. <property Opr="Self.red::RedBehaviacTree::stringToFloat(string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  13. </node>
  14. <node class="Action" id="5">
  15. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariables(&quot;__ttbt__localVariableIndex_0&quot;,float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
  16. <property ResultOption="BT_SUCCESS"/>
  17. </node>
  18. <node class="IfElse" id="1">
  19. <node class="Condition" id="2">
  20. <property Operator="Equal"/>
  21. <property Opl="Self.red::RedBehaviacTree::getLocalTreeFloat(&quot;__ttbt__localVariableIndex_0&quot;)"/>
  22. <property Opr="const float 1"/>
  23. </node>
  24. <node class="Sequence" id="6">
  25. <node class="Action" id="7">
  26. <property Method="Self.red::RedBehaviacTree::playTimeLineWait(&quot;BEZD0yTVMeVh&quot;,&quot;10&quot;)"/>
  27. <property ResultOption="BT_SUCCESS"/>
  28. </node>
  29. <node class="Action" id="8">
  30. <property Method="Self.red::RedBehaviacTree::getTimeLineState(&quot;10&quot;)"/>
  31. <property ResultOption="BT_INVALID"/>
  32. </node>
  33. </node>
  34. <node class="Noop" id="9"/>
  35. </node>
  36. <node class="Assignment" id="12">
  37. <property CastRight="false"/>
  38. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  39. <property Opr="Self.red::RedBehaviacTree::getFunStringVar(&quot;当前阶段&quot;)"/>
  40. </node>
  41. <node class="Assignment" id="13">
  42. <property CastRight="true"/>
  43. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  44. <property Opr="Self.red::RedBehaviacTree::stringToFloat(string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  45. </node>
  46. <node class="Action" id="14">
  47. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariables(&quot;__ttbt__localVariableIndex_1&quot;,float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
  48. <property ResultOption="BT_SUCCESS"/>
  49. </node>
  50. <node class="IfElse" id="10">
  51. <node class="Condition" id="11">
  52. <property Operator="Equal"/>
  53. <property Opl="Self.red::RedBehaviacTree::getLocalTreeFloat(&quot;__ttbt__localVariableIndex_1&quot;)"/>
  54. <property Opr="const float 2"/>
  55. </node>
  56. <node class="Sequence" id="15">
  57. <node class="Action" id="16">
  58. <property Method="Self.red::RedBehaviacTree::playTimeLineWait(&quot;eA7XAVIzCNNA&quot;,&quot;13&quot;)"/>
  59. <property ResultOption="BT_SUCCESS"/>
  60. </node>
  61. <node class="Action" id="17">
  62. <property Method="Self.red::RedBehaviacTree::getTimeLineState(&quot;13&quot;)"/>
  63. <property ResultOption="BT_INVALID"/>
  64. </node>
  65. </node>
  66. <node class="Noop" id="18"/>
  67. </node>
  68. <node class="Assignment" id="21">
  69. <property CastRight="false"/>
  70. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  71. <property Opr="Self.red::RedBehaviacTree::getFunStringVar(&quot;当前阶段&quot;)"/>
  72. </node>
  73. <node class="Assignment" id="22">
  74. <property CastRight="true"/>
  75. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  76. <property Opr="Self.red::RedBehaviacTree::stringToFloat(string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  77. </node>
  78. <node class="Action" id="23">
  79. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariables(&quot;__ttbt__localVariableIndex_2&quot;,float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
  80. <property ResultOption="BT_SUCCESS"/>
  81. </node>
  82. <node class="IfElse" id="19">
  83. <node class="Condition" id="20">
  84. <property Operator="Equal"/>
  85. <property Opl="Self.red::RedBehaviacTree::getLocalTreeFloat(&quot;__ttbt__localVariableIndex_2&quot;)"/>
  86. <property Opr="const float 3"/>
  87. </node>
  88. <node class="Sequence" id="24">
  89. <node class="Action" id="25">
  90. <property Method="Self.red::RedBehaviacTree::playTimeLineWait(&quot;JlxaG7PUWuAV&quot;,&quot;16&quot;)"/>
  91. <property ResultOption="BT_SUCCESS"/>
  92. </node>
  93. <node class="Action" id="26">
  94. <property Method="Self.red::RedBehaviacTree::getTimeLineState(&quot;16&quot;)"/>
  95. <property ResultOption="BT_INVALID"/>
  96. </node>
  97. </node>
  98. <node class="Noop" id="27"/>
  99. </node>
  100. <node class="Assignment" id="30">
  101. <property CastRight="false"/>
  102. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  103. <property Opr="Self.red::RedBehaviacTree::getFunStringVar(&quot;当前阶段&quot;)"/>
  104. </node>
  105. <node class="Assignment" id="31">
  106. <property CastRight="true"/>
  107. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  108. <property Opr="Self.red::RedBehaviacTree::stringToFloat(string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  109. </node>
  110. <node class="Action" id="32">
  111. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariables(&quot;__ttbt__localVariableIndex_3&quot;,float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
  112. <property ResultOption="BT_SUCCESS"/>
  113. </node>
  114. <node class="IfElse" id="28">
  115. <node class="Condition" id="29">
  116. <property Operator="Equal"/>
  117. <property Opl="Self.red::RedBehaviacTree::getLocalTreeFloat(&quot;__ttbt__localVariableIndex_3&quot;)"/>
  118. <property Opr="const float 4"/>
  119. </node>
  120. <node class="Sequence" id="33">
  121. <node class="Action" id="34">
  122. <property Method="Self.red::RedBehaviacTree::playTimeLineWait(&quot;rnFckxwjeuwN&quot;,&quot;19&quot;)"/>
  123. <property ResultOption="BT_SUCCESS"/>
  124. </node>
  125. <node class="Action" id="35">
  126. <property Method="Self.red::RedBehaviacTree::getTimeLineState(&quot;19&quot;)"/>
  127. <property ResultOption="BT_INVALID"/>
  128. </node>
  129. </node>
  130. <node class="Noop" id="36"/>
  131. </node>
  132. <node class="Assignment" id="39">
  133. <property CastRight="false"/>
  134. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  135. <property Opr="Self.red::RedBehaviacTree::getFunStringVar(&quot;当前阶段&quot;)"/>
  136. </node>
  137. <node class="Assignment" id="40">
  138. <property CastRight="true"/>
  139. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  140. <property Opr="Self.red::RedBehaviacTree::stringToFloat(string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  141. </node>
  142. <node class="Action" id="41">
  143. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariables(&quot;__ttbt__localVariableIndex_4&quot;,float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
  144. <property ResultOption="BT_SUCCESS"/>
  145. </node>
  146. <node class="IfElse" id="37">
  147. <node class="Condition" id="38">
  148. <property Operator="Equal"/>
  149. <property Opl="Self.red::RedBehaviacTree::getLocalTreeFloat(&quot;__ttbt__localVariableIndex_4&quot;)"/>
  150. <property Opr="const float 5"/>
  151. </node>
  152. <node class="Sequence" id="42">
  153. <node class="Action" id="43">
  154. <property Method="Self.red::RedBehaviacTree::playTimeLineWait(&quot;2hEPsuC5iE51&quot;,&quot;22&quot;)"/>
  155. <property ResultOption="BT_SUCCESS"/>
  156. </node>
  157. <node class="Action" id="44">
  158. <property Method="Self.red::RedBehaviacTree::getTimeLineState(&quot;22&quot;)"/>
  159. <property ResultOption="BT_INVALID"/>
  160. </node>
  161. </node>
  162. <node class="Noop" id="45"/>
  163. </node>
  164. <node class="Assignment" id="48">
  165. <property CastRight="false"/>
  166. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  167. <property Opr="Self.red::RedBehaviacTree::getFunStringVar(&quot;当前阶段&quot;)"/>
  168. </node>
  169. <node class="Assignment" id="49">
  170. <property CastRight="true"/>
  171. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  172. <property Opr="Self.red::RedBehaviacTree::stringToFloat(string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  173. </node>
  174. <node class="Action" id="50">
  175. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariables(&quot;__ttbt__localVariableIndex_5&quot;,float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
  176. <property ResultOption="BT_SUCCESS"/>
  177. </node>
  178. <node class="IfElse" id="46">
  179. <node class="Condition" id="47">
  180. <property Operator="Less"/>
  181. <property Opl="Self.red::RedBehaviacTree::getLocalTreeFloat(&quot;__ttbt__localVariableIndex_5&quot;)"/>
  182. <property Opr="const float 5"/>
  183. </node>
  184. <node class="Sequence" id="51">
  185. <node class="Assignment" id="54">
  186. <property CastRight="false"/>
  187. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  188. <property Opr="Self.red::RedBehaviacTree::getFunStringVar(&quot;当前阶段&quot;)"/>
  189. </node>
  190. <node class="Assignment" id="55">
  191. <property CastRight="true"/>
  192. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  193. <property Opr="Self.red::RedBehaviacTree::stringToFloat(string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  194. </node>
  195. <node class="Action" id="56">
  196. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariables(&quot;__ttbt__localVariableIndex_6&quot;,float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
  197. <property ResultOption="BT_SUCCESS"/>
  198. </node>
  199. <node class="Compute" id="53">
  200. <property Operator="Add"/>
  201. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  202. <property Opr1="Self.red::RedBehaviacTree::getLocalTreeFloat(&quot;__ttbt__localVariableIndex_6&quot;)"/>
  203. <property Opr2="const float 1"/>
  204. </node>
  205. <node class="Action" id="57">
  206. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariables(&quot;__ttbt__localVariableIndex_7&quot;,float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
  207. <property ResultOption="BT_SUCCESS"/>
  208. </node>
  209. <node class="Action" id="52">
  210. <property Method="Self.red::RedBehaviacTree::clearFunLocalMap()"/>
  211. <property ResultOption="BT_SUCCESS"/>
  212. </node>
  213. <node class="Assignment" id="58">
  214. <property CastRight="true"/>
  215. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  216. <property Opr="Self.red::RedBehaviacTree::getLocalTreeFloat(&quot;__ttbt__localVariableIndex_7&quot;)"/>
  217. </node>
  218. <node class="Assignment" id="59">
  219. <property CastRight="false"/>
  220. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  221. <property Opr="Self.red::RedBehaviacTree::floatToString(float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
  222. </node>
  223. <node class="Action" id="60">
  224. <property Method="Self.red::RedBehaviacTree::addFunLocalStringToMap(&quot;当前阶段&quot;,string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  225. <property ResultOption="BT_SUCCESS"/>
  226. </node>
  227. <node class="Action" id="61">
  228. <property Method="Self.red::RedBehaviacTree::customFunc(&quot;5Z5gmEjTGvGr&quot;,&quot;Fgn4mgKt4rtR&quot;)"/>
  229. <property ResultOption="BT_SUCCESS"/>
  230. </node>
  231. <node class="Action" id="62">
  232. <property Method="Self.red::RedBehaviacTree::getTreeState()"/>
  233. <property ResultOption="BT_INVALID"/>
  234. </node>
  235. </node>
  236. <node class="Noop" id="63"/>
  237. </node>
  238. </node>
  239. </behavior>