Mq98XlZZop07.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <behavior agenttype="red::RedBehaviacTree" name="Mq98XlZZop07" version="5">
  3. <node class="Sequence" id="0">
  4. <node class="IfElse" id="1">
  5. <node class="Condition" id="2">
  6. <property Operator="Less"/>
  7. <property Opl="Self.red::RedBehaviacTree::getCustomFloat(&quot;步次&quot;)"/>
  8. <property Opr="Self.red::RedBehaviacTree::getLoopTimes()"/>
  9. </node>
  10. <node class="Action" id="3">
  11. <property Method="Self.red::RedBehaviacTree::onLoopEnd()"/>
  12. <property ResultOption="BT_SUCCESS"/>
  13. </node>
  14. <node class="Sequence" id="4">
  15. <node class="Wait" id="5">
  16. <property Time="const float 0.01"/>
  17. </node>
  18. <node class="Compute" id="6">
  19. <property Operator="Add"/>
  20. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  21. <property Opr1="Self.red::RedBehaviacTree::getCustomFloat(&quot;进度起点&quot;)"/>
  22. <property Opr2="Self.red::RedBehaviacTree::getCustomFloat(&quot;步幅&quot;)"/>
  23. </node>
  24. <node class="Action" id="7">
  25. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariables(&quot;__ttbt__localVariableIndex_0&quot;,float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
  26. <property ResultOption="BT_SUCCESS"/>
  27. </node>
  28. <node class="Assignment" id="8">
  29. <property CastRight="true"/>
  30. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  31. <property Opr="Self.red::RedBehaviacTree::getLocalTreeFloat(&quot;__ttbt__localVariableIndex_0&quot;)"/>
  32. </node>
  33. <node class="Assignment" id="9">
  34. <property CastRight="false"/>
  35. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  36. <property Opr="Self.red::RedBehaviacTree::floatToString(float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
  37. </node>
  38. <node class="Action" id="10">
  39. <property Method="Self.red::RedBehaviacTree::setCustomDataVar(&quot;DDxfptcb7dxk&quot;,&quot;进度起点&quot;,string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  40. <property ResultOption="BT_SUCCESS"/>
  41. </node>
  42. <node class="Compute" id="11">
  43. <property Operator="Div"/>
  44. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  45. <property Opr1="Self.red::RedBehaviacTree::getCustomFloat(&quot;进度起点&quot;)"/>
  46. <property Opr2="Self.red::RedBehaviacTree::getCustomFloat(&quot;进度总量&quot;)"/>
  47. </node>
  48. <node class="Action" id="12">
  49. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariables(&quot;__ttbt__localVariableIndex_1&quot;,float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
  50. <property ResultOption="BT_SUCCESS"/>
  51. </node>
  52. <node class="Compute" id="13">
  53. <property Operator="Mul"/>
  54. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  55. <property Opr1="Self.red::RedBehaviacTree::getLocalTreeFloat(&quot;__ttbt__localVariableIndex_1&quot;)"/>
  56. <property Opr2="const float 100"/>
  57. </node>
  58. <node class="Action" id="14">
  59. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariables(&quot;__ttbt__localVariableIndex_2&quot;,float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
  60. <property ResultOption="BT_SUCCESS"/>
  61. </node>
  62. <node class="Assignment" id="15">
  63. <property CastRight="true"/>
  64. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  65. <property Opr="Self.red::RedBehaviacTree::getLocalTreeFloat(&quot;__ttbt__localVariableIndex_2&quot;)"/>
  66. </node>
  67. <node class="Action" id="16">
  68. <property Method="Self.red::RedBehaviacTree::redProgressBar(&quot;73wEcRMIkaxN&quot;,&quot;PDvXtuZ9hXBL&quot;,float Self.red::RedBehaviacTree::temporaryVariablesFloat)"/>
  69. <property ResultOption="BT_SUCCESS"/>
  70. </node>
  71. <node class="Assignment" id="18">
  72. <property CastRight="true"/>
  73. <property Opl="int Self.red::RedBehaviacTree::temporaryVariablesInt"/>
  74. <property Opr="const float 0"/>
  75. </node>
  76. <node class="Assignment" id="17">
  77. <property CastRight="true"/>
  78. <property Opl="float Self.red::RedBehaviacTree::temporaryVariablesFloat"/>
  79. <property Opr="Self.red::RedBehaviacTree::getCustomFloat(&quot;进度起点&quot;)"/>
  80. </node>
  81. <node class="Assignment" id="19">
  82. <property CastRight="false"/>
  83. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  84. <property Opr="Self.red::RedBehaviacTree::floatFormat(float Self.red::RedBehaviacTree::temporaryVariablesFloat,int Self.red::RedBehaviacTree::temporaryVariablesInt)"/>
  85. </node>
  86. <node class="Action" id="20">
  87. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariablesString(&quot;__ttbt__localVariableIndex_3&quot;,string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  88. <property ResultOption="BT_SUCCESS"/>
  89. </node>
  90. <node class="Assignment" id="21">
  91. <property CastRight="false"/>
  92. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  93. <property Opr="Self.red::RedBehaviacTree::getLocalTreeString(&quot;__ttbt__localVariableIndex_3&quot;)"/>
  94. </node>
  95. <node class="Action" id="22">
  96. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariablesString(&quot;__ttbt__localVariableIndex_4&quot;,string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  97. <property ResultOption="BT_SUCCESS"/>
  98. </node>
  99. <node class="Assignment" id="23">
  100. <property CastRight="false"/>
  101. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  102. <property Opr="const string &quot;/&quot;"/>
  103. </node>
  104. <node class="Action" id="24">
  105. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariablesString(&quot;__ttbt__localVariableIndex_5&quot;,string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  106. <property ResultOption="BT_SUCCESS"/>
  107. </node>
  108. <node class="Assignment" id="25">
  109. <property CastRight="false"/>
  110. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  111. <property Opr="Self.red::RedBehaviacTree::getCustomString(&quot;进度总量&quot;)"/>
  112. </node>
  113. <node class="Action" id="26">
  114. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariablesString(&quot;__ttbt__localVariableIndex_6&quot;,string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  115. <property ResultOption="BT_SUCCESS"/>
  116. </node>
  117. <node class="Assignment" id="27">
  118. <property CastRight="false"/>
  119. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  120. <property Opr="const string &quot;&quot;"/>
  121. </node>
  122. <node class="Action" id="28">
  123. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariablesString(&quot;__ttbt__localVariableIndex_7&quot;,string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  124. <property ResultOption="BT_SUCCESS"/>
  125. </node>
  126. <node class="Assignment" id="29">
  127. <property CastRight="false"/>
  128. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  129. <property Opr="const string &quot;&quot;"/>
  130. </node>
  131. <node class="Action" id="30">
  132. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariablesString(&quot;__ttbt__localVariableIndex_8&quot;,string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  133. <property ResultOption="BT_SUCCESS"/>
  134. </node>
  135. <node class="Assignment" id="31">
  136. <property CastRight="false"/>
  137. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  138. <property Opr="Self.red::RedBehaviacTree::stringLinkMoreOperator(&quot;__ttbt__localVariableIndex_4&quot;,&quot;__ttbt__localVariableIndex_5&quot;,&quot;__ttbt__localVariableIndex_6&quot;,&quot;__ttbt__localVariableIndex_7&quot;,&quot;__ttbt__localVariableIndex_8&quot;)"/>
  139. </node>
  140. <node class="Action" id="32">
  141. <property Method="Self.red::RedBehaviacTree::storageTemporaryVariablesString(&quot;__ttbt__localVariableIndex_9&quot;,string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  142. <property ResultOption="BT_SUCCESS"/>
  143. </node>
  144. <node class="Assignment" id="33">
  145. <property CastRight="false"/>
  146. <property Opl="string Self.red::RedBehaviacTree::temporaryVariablesString"/>
  147. <property Opr="Self.red::RedBehaviacTree::getLocalTreeString(&quot;__ttbt__localVariableIndex_9&quot;)"/>
  148. </node>
  149. <node class="Action" id="34">
  150. <property Method="Self.red::RedBehaviacTree::setLabelTitle(&quot;BkkePG2uhp6l&quot;,&quot;WtpF9xImbjQP&quot;,string Self.red::RedBehaviacTree::temporaryVariablesString)"/>
  151. <property ResultOption="BT_SUCCESS"/>
  152. </node>
  153. </node>
  154. </node>
  155. </node>
  156. </behavior>