21BByki3ZH5p.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <behavior agenttype="red::RedBehaviacTree" name="21BByki3ZH5p" version="5">
  3. <node class="Sequence" id="0">
  4. <node class="Assignment" id="1">
  5. <property CastRight="false"/>
  6. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  7. <property Opr="Self.red::RedBehaviacTree::getCoderString(&quot;P-进度起点&quot;)"/>
  8. </node>
  9. <node class="Action" id="2">
  10. <property Method="Self.red::RedBehaviacTree::setCustomDataVar(&quot;q6EM3JrZmVWa&quot;,&quot;进度起点&quot;,string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  11. <property ResultOption="BT_SUCCESS"/>
  12. </node>
  13. <node class="Assignment" id="3">
  14. <property CastRight="false"/>
  15. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  16. <property Opr="Self.red::RedBehaviacTree::getCoderString(&quot;P-进度终点&quot;)"/>
  17. </node>
  18. <node class="Action" id="4">
  19. <property Method="Self.red::RedBehaviacTree::setCustomDataVar(&quot;PZU0MBywUoZP&quot;,&quot;进度终点&quot;,string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  20. <property ResultOption="BT_SUCCESS"/>
  21. </node>
  22. <node class="Assignment" id="5">
  23. <property CastRight="false"/>
  24. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  25. <property Opr="const string &quot;40&quot;"/>
  26. </node>
  27. <node class="Action" id="6">
  28. <property Method="Self.red::RedBehaviacTree::setCustomDataVar(&quot;zzIvGPulHWkg&quot;,&quot;步次&quot;,string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  29. <property ResultOption="BT_SUCCESS"/>
  30. </node>
  31. <node class="Compute" id="7">
  32. <property Operator="Sub"/>
  33. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  34. <property Opr1="Self.red::RedBehaviacTree::getCustomFloat(&quot;进度终点&quot;)"/>
  35. <property Opr2="Self.red::RedBehaviacTree::getCustomFloat(&quot;进度起点&quot;)"/>
  36. </node>
  37. <node class="Action" id="8">
  38. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariables(&quot;__ttbt__localVariableIndex_0&quot;,float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
  39. <property ResultOption="BT_SUCCESS"/>
  40. </node>
  41. <node class="Compute" id="9">
  42. <property Operator="Div"/>
  43. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  44. <property Opr1="Self.red::RedBehaviacTree::getLocalTreeFloat(&quot;__ttbt__localVariableIndex_0&quot;)"/>
  45. <property Opr2="Self.red::RedBehaviacTree::getCustomFloat(&quot;步次&quot;)"/>
  46. </node>
  47. <node class="Action" id="10">
  48. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariables(&quot;__ttbt__localVariableIndex_1&quot;,float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
  49. <property ResultOption="BT_SUCCESS"/>
  50. </node>
  51. <node class="Assignment" id="11">
  52. <property CastRight="true"/>
  53. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  54. <property Opr="Self.red::RedBehaviacTree::getLocalTreeFloat(&quot;__ttbt__localVariableIndex_1&quot;)"/>
  55. </node>
  56. <node class="Assignment" id="12">
  57. <property CastRight="false"/>
  58. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  59. <property Opr="Self.red::RedBehaviacTree::floatToString(float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
  60. </node>
  61. <node class="Action" id="13">
  62. <property Method="Self.red::RedBehaviacTree::setCustomDataVar(&quot;HXwpPuZaa6VA&quot;,&quot;步幅&quot;,string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  63. <property ResultOption="BT_SUCCESS"/>
  64. </node>
  65. <node class="Action" id="14">
  66. <property Method="Self.red::RedBehaviacTree::clearFunLocalMap()"/>
  67. <property ResultOption="BT_SUCCESS"/>
  68. </node>
  69. <node class="Action" id="15">
  70. <property Method="Self.red::RedBehaviacTree::startLoop(&quot;zwWavCeFFEa5&quot;)"/>
  71. <property ResultOption="BT_SUCCESS"/>
  72. </node>
  73. <node class="Action" id="16">
  74. <property Method="Self.red::RedBehaviacTree::getLoopState(&quot;zwWavCeFFEa5&quot;)"/>
  75. <property ResultOption="BT_INVALID"/>
  76. </node>
  77. <node class="Assignment" id="17">
  78. <property CastRight="false"/>
  79. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  80. <property Opr="Self.red::RedBehaviacTree::getCoderString(&quot;P-进度终点&quot;)"/>
  81. </node>
  82. <node class="Action" id="18">
  83. <property Method="Self.red::RedBehaviacTree::setCustomDataVar(&quot;RU6XN6Q1IjXf&quot;,&quot;进度起点&quot;,string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  84. <property ResultOption="BT_SUCCESS"/>
  85. </node>
  86. <node class="Assignment" id="20">
  87. <property CastRight="true"/>
  88. <property Opl="int Self.red::RedBehaviacTree::temporaryVariablesInt"/>
  89. <property Opr="const float 0"/>
  90. </node>
  91. <node class="Assignment" id="19">
  92. <property CastRight="true"/>
  93. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  94. <property Opr="Self.red::RedBehaviacTree::getCustomFloat(&quot;进度起点&quot;)"/>
  95. </node>
  96. <node class="Assignment" id="21">
  97. <property CastRight="false"/>
  98. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  99. <property Opr="Self.red::RedBehaviacTree::floatFormat(float Self.red::RedBehaviacTree::temporaryVariablesFloat,int Self.red::RedBehaviacTree::temporaryVariablesInt)"/>
  100. </node>
  101. <node class="Action" id="22">
  102. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariablesString(&quot;__ttbt__localVariableIndex_2&quot;,string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  103. <property ResultOption="BT_SUCCESS"/>
  104. </node>
  105. <node class="Assignment" id="23">
  106. <property CastRight="false"/>
  107. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  108. <property Opr="Self.red::RedBehaviacTree::getLocalTreeString(&quot;__ttbt__localVariableIndex_2&quot;)"/>
  109. </node>
  110. <node class="Action" id="24">
  111. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariablesString(&quot;__ttbt__localVariableIndex_3&quot;,string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  112. <property ResultOption="BT_SUCCESS"/>
  113. </node>
  114. <node class="Assignment" id="25">
  115. <property CastRight="false"/>
  116. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  117. <property Opr="const string &quot;/&quot;"/>
  118. </node>
  119. <node class="Action" id="26">
  120. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariablesString(&quot;__ttbt__localVariableIndex_4&quot;,string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  121. <property ResultOption="BT_SUCCESS"/>
  122. </node>
  123. <node class="Assignment" id="27">
  124. <property CastRight="false"/>
  125. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  126. <property Opr="Self.red::RedBehaviacTree::getCoderString(&quot;P-进度总量&quot;)"/>
  127. </node>
  128. <node class="Action" id="28">
  129. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariablesString(&quot;__ttbt__localVariableIndex_5&quot;,string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  130. <property ResultOption="BT_SUCCESS"/>
  131. </node>
  132. <node class="Assignment" id="29">
  133. <property CastRight="false"/>
  134. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  135. <property Opr="const string &quot;&quot;"/>
  136. </node>
  137. <node class="Action" id="30">
  138. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariablesString(&quot;__ttbt__localVariableIndex_6&quot;,string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  139. <property ResultOption="BT_SUCCESS"/>
  140. </node>
  141. <node class="Assignment" id="31">
  142. <property CastRight="false"/>
  143. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  144. <property Opr="const string &quot;&quot;"/>
  145. </node>
  146. <node class="Action" id="32">
  147. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariablesString(&quot;__ttbt__localVariableIndex_7&quot;,string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  148. <property ResultOption="BT_SUCCESS"/>
  149. </node>
  150. <node class="Assignment" id="33">
  151. <property CastRight="false"/>
  152. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  153. <property Opr="Self.red::RedBehaviacTree::stringLinkMoreOperator(&quot;__ttbt__localVariableIndex_3&quot;,&quot;__ttbt__localVariableIndex_4&quot;,&quot;__ttbt__localVariableIndex_5&quot;,&quot;__ttbt__localVariableIndex_6&quot;,&quot;__ttbt__localVariableIndex_7&quot;)"/>
  154. </node>
  155. <node class="Action" id="34">
  156. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariablesString(&quot;__ttbt__localVariableIndex_8&quot;,string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  157. <property ResultOption="BT_SUCCESS"/>
  158. </node>
  159. <node class="Assignment" id="35">
  160. <property CastRight="false"/>
  161. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  162. <property Opr="Self.red::RedBehaviacTree::getLocalTreeString(&quot;__ttbt__localVariableIndex_8&quot;)"/>
  163. </node>
  164. <node class="Action" id="36">
  165. <property Method="Self.red::RedBehaviacTree::setSceneLabelTitle(&quot;6gOOrAREz3Rj&quot;,&quot;gelumYM0dB16&quot;,&quot;HzMlZ9hZS5Y8&quot;,string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  166. <property ResultOption="BT_SUCCESS"/>
  167. </node>
  168. <node class="Wait" id="37">
  169. <property Time="const float 0.01"/>
  170. </node>
  171. <node class="Assignment" id="48">
  172. <property CastRight="true"/>
  173. <property Opl="int Self.red::RedBehaviacTree::temporaryVariablesInt"/>
  174. <property Opr="const float 0"/>
  175. </node>
  176. <node class="Assignment" id="47">
  177. <property CastRight="true"/>
  178. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  179. <property Opr="Self.red::RedBehaviacTree::getCoderFloat(&quot;P-进度总量&quot;)"/>
  180. </node>
  181. <node class="Assignment" id="49">
  182. <property CastRight="false"/>
  183. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  184. <property Opr="Self.red::RedBehaviacTree::floatFormat(float Self.red::RedBehaviacTree::temporaryVariablesFloat,int Self.red::RedBehaviacTree::temporaryVariablesInt)"/>
  185. </node>
  186. <node class="Action" id="50">
  187. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariablesString(&quot;__ttbt__localVariableIndex_12&quot;,string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  188. <property ResultOption="BT_SUCCESS"/>
  189. </node>
  190. <node class="Assignment" id="40">
  191. <property CastRight="true"/>
  192. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  193. <property Opr="Self.red::RedBehaviacTree::getCustomFloat(&quot;进度起点&quot;)"/>
  194. </node>
  195. <node class="Action" id="41">
  196. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariables(&quot;__ttbt__localVariableIndex_9&quot;,float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
  197. <property ResultOption="BT_SUCCESS"/>
  198. </node>
  199. <node class="Assignment" id="42">
  200. <property CastRight="false"/>
  201. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  202. <property Opr="Self.red::RedBehaviacTree::numRandOperator(&quot;__ttbt__localVariableIndex_9&quot;)"/>
  203. </node>
  204. <node class="Action" id="43">
  205. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariablesString(&quot;__ttbt__localVariableIndex_10&quot;,string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  206. <property ResultOption="BT_SUCCESS"/>
  207. </node>
  208. <node class="Assignment" id="44">
  209. <property CastRight="false"/>
  210. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  211. <property Opr="Self.red::RedBehaviacTree::getLocalTreeString(&quot;__ttbt__localVariableIndex_10&quot;)"/>
  212. </node>
  213. <node class="Assignment" id="45">
  214. <property CastRight="true"/>
  215. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  216. <property Opr="Self.red::RedBehaviacTree::stringToFloat(string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  217. </node>
  218. <node class="Action" id="46">
  219. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariables(&quot;__ttbt__localVariableIndex_11&quot;,float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
  220. <property ResultOption="BT_SUCCESS"/>
  221. </node>
  222. <node class="Assignment" id="51">
  223. <property CastRight="false"/>
  224. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  225. <property Opr="Self.red::RedBehaviacTree::getLocalTreeString(&quot;__ttbt__localVariableIndex_12&quot;)"/>
  226. </node>
  227. <node class="Assignment" id="52">
  228. <property CastRight="true"/>
  229. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  230. <property Opr="Self.red::RedBehaviacTree::stringToFloat(string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  231. </node>
  232. <node class="Action" id="53">
  233. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariables(&quot;__ttbt__localVariableIndex_13&quot;,float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
  234. <property ResultOption="BT_SUCCESS"/>
  235. </node>
  236. <node class="IfElse" id="38">
  237. <node class="Condition" id="39">
  238. <property Operator="Equal"/>
  239. <property Opl="Self.red::RedBehaviacTree::getLocalTreeFloat(&quot;__ttbt__localVariableIndex_11&quot;)"/>
  240. <property Opr="Self.red::RedBehaviacTree::getLocalTreeFloat(&quot;__ttbt__localVariableIndex_13&quot;)"/>
  241. </node>
  242. <node class="Sequence" id="54">
  243. <node class="Action" id="55">
  244. <property Method="Self.red::RedBehaviacTree::playSubredTimeLineWait(&quot;zh3oRX25QRrT&quot;,&quot;gelumYM0dB16&quot;,&quot;1&quot;)"/>
  245. <property ResultOption="BT_SUCCESS"/>
  246. </node>
  247. <node class="Action" id="56">
  248. <property Method="Self.red::RedBehaviacTree::getSubredTimeLineState(&quot;gelumYM0dB16&quot;,&quot;1&quot;)"/>
  249. <property ResultOption="BT_INVALID"/>
  250. </node>
  251. <node class="Action" id="57">
  252. <property Method="Self.red::RedBehaviacTree::playTimeLine(&quot;ldSaPqAmIYMl&quot;,&quot;11&quot;)"/>
  253. <property ResultOption="BT_SUCCESS"/>
  254. </node>
  255. </node>
  256. <node class="Noop" id="58"/>
  257. </node>
  258. </node>
  259. </behavior>