ActionState.xml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <Type Name="ActionState" FullName="Urho.Actions.ActionState">
  2. <TypeSignature Language="C#" Value="public abstract class ActionState" />
  3. <TypeSignature Language="ILAsm" Value=".class public auto ansi abstract beforefieldinit ActionState extends System.Object" />
  4. <AssemblyInfo>
  5. <AssemblyName>Urho</AssemblyName>
  6. <AssemblyVersion>1.0.0.0</AssemblyVersion>
  7. </AssemblyInfo>
  8. <Base>
  9. <BaseTypeName>System.Object</BaseTypeName>
  10. </Base>
  11. <Interfaces />
  12. <Docs>
  13. <summary>Encapsulates the states of a running action.</summary>
  14. <remarks>ActionStates encapsulate the running state of an Action when the <see cref="M:Urho.Action.StartAction" /> method is invoked to trigger the execution fo the action.</remarks>
  15. </Docs>
  16. <Members>
  17. <Member MemberName=".ctor">
  18. <MemberSignature Language="C#" Value="public ActionState (Urho.Actions.BaseAction action, Urho.Node target);" />
  19. <MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class Urho.Actions.BaseAction action, class Urho.Node target) cil managed" />
  20. <MemberType>Constructor</MemberType>
  21. <AssemblyInfo>
  22. <AssemblyVersion>1.0.0.0</AssemblyVersion>
  23. </AssemblyInfo>
  24. <Parameters>
  25. <Parameter Name="action" Type="Urho.Actions.BaseAction" />
  26. <Parameter Name="target" Type="Urho.Node" />
  27. </Parameters>
  28. <Docs>
  29. <param name="action">Points to the action that is triggering the creation of this state, this is the blueprint for what the action should do.</param>
  30. <param name="target">The node that this action will be operating on.</param>
  31. <summary>Creates a new action state</summary>
  32. <remarks>
  33. <para></para>
  34. </remarks>
  35. </Docs>
  36. </Member>
  37. <Member MemberName="Action">
  38. <MemberSignature Language="C#" Value="public Urho.Actions.BaseAction Action { get; protected set; }" />
  39. <MemberSignature Language="ILAsm" Value=".property instance class Urho.Actions.BaseAction Action" />
  40. <MemberType>Property</MemberType>
  41. <AssemblyInfo>
  42. <AssemblyVersion>1.0.0.0</AssemblyVersion>
  43. </AssemblyInfo>
  44. <ReturnValue>
  45. <ReturnType>Urho.Actions.BaseAction</ReturnType>
  46. </ReturnValue>
  47. <Docs>
  48. <summary>Links to the action for which this action state was created.</summary>
  49. <value>To be added.</value>
  50. <remarks>To be added.</remarks>
  51. </Docs>
  52. </Member>
  53. <Member MemberName="IsDone">
  54. <MemberSignature Language="C#" Value="public virtual bool IsDone { get; }" />
  55. <MemberSignature Language="ILAsm" Value=".property instance bool IsDone" />
  56. <MemberType>Property</MemberType>
  57. <AssemblyInfo>
  58. <AssemblyVersion>1.0.0.0</AssemblyVersion>
  59. </AssemblyInfo>
  60. <ReturnValue>
  61. <ReturnType>System.Boolean</ReturnType>
  62. </ReturnValue>
  63. <Docs>
  64. <summary>
  65. Gets a value indicating whether this instance is done.
  66. </summary>
  67. <value>
  68. <c>true</c> if this instance is done; otherwise, <c>false</c>.</value>
  69. <remarks>To be added.</remarks>
  70. </Docs>
  71. </Member>
  72. <Member MemberName="OriginalTarget">
  73. <MemberSignature Language="C#" Value="public Urho.Node OriginalTarget { get; protected set; }" />
  74. <MemberSignature Language="ILAsm" Value=".property instance class Urho.Node OriginalTarget" />
  75. <MemberType>Property</MemberType>
  76. <AssemblyInfo>
  77. <AssemblyVersion>1.0.0.0</AssemblyVersion>
  78. </AssemblyInfo>
  79. <ReturnValue>
  80. <ReturnType>Urho.Node</ReturnType>
  81. </ReturnValue>
  82. <Docs>
  83. <summary>The node that this action will be operating on.</summary>
  84. <value>
  85. <para></para>
  86. </value>
  87. <remarks>
  88. <para></para>
  89. </remarks>
  90. </Docs>
  91. </Member>
  92. <Member MemberName="Step">
  93. <MemberSignature Language="C#" Value="protected virtual void Step (float dt);" />
  94. <MemberSignature Language="ILAsm" Value=".method familyorassemblyhidebysig newslot virtual instance void Step(float32 dt) cil managed" />
  95. <MemberType>Method</MemberType>
  96. <AssemblyInfo>
  97. <AssemblyVersion>1.0.0.0</AssemblyVersion>
  98. </AssemblyInfo>
  99. <ReturnValue>
  100. <ReturnType>System.Void</ReturnType>
  101. </ReturnValue>
  102. <Parameters>
  103. <Parameter Name="dt" Type="System.Single" />
  104. </Parameters>
  105. <Docs>
  106. <param name="dt">Delta Time</param>
  107. <summary>
  108. Called every frame with it's delta time.
  109. DON'T override unless you know what you are doing.
  110. </summary>
  111. <remarks>
  112. <para />
  113. </remarks>
  114. </Docs>
  115. </Member>
  116. <Member MemberName="Stop">
  117. <MemberSignature Language="C#" Value="protected virtual void Stop ();" />
  118. <MemberSignature Language="ILAsm" Value=".method familyorassemblyhidebysig newslot virtual instance void Stop() cil managed" />
  119. <MemberType>Method</MemberType>
  120. <AssemblyInfo>
  121. <AssemblyVersion>1.0.0.0</AssemblyVersion>
  122. </AssemblyInfo>
  123. <ReturnValue>
  124. <ReturnType>System.Void</ReturnType>
  125. </ReturnValue>
  126. <Parameters />
  127. <Docs>
  128. <summary>
  129. Called after the action has finished.
  130. It will set the 'Target' to null. </summary>
  131. <remarks>You should never call this method manually. Instead, call the <see cref="M:Urho.Node.StopAction" /> method with this action state.</remarks>
  132. </Docs>
  133. </Member>
  134. <Member MemberName="Target">
  135. <MemberSignature Language="C#" Value="public Urho.Node Target { get; protected set; }" />
  136. <MemberSignature Language="ILAsm" Value=".property instance class Urho.Node Target" />
  137. <MemberType>Property</MemberType>
  138. <AssemblyInfo>
  139. <AssemblyVersion>1.0.0.0</AssemblyVersion>
  140. </AssemblyInfo>
  141. <ReturnValue>
  142. <ReturnType>Urho.Node</ReturnType>
  143. </ReturnValue>
  144. <Docs>
  145. <summary>
  146. Gets or sets the target.
  147. Will be set with the 'StartAction' method of the corresponding Action.
  148. When the 'Stop' method is called, Target will be set to null.
  149. </summary>
  150. <value>The target.</value>
  151. <remarks>To be added.</remarks>
  152. </Docs>
  153. </Member>
  154. <Member MemberName="Update">
  155. <MemberSignature Language="C#" Value="public virtual void Update (float time);" />
  156. <MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void Update(float32 time) cil managed" />
  157. <MemberType>Method</MemberType>
  158. <AssemblyInfo>
  159. <AssemblyVersion>1.0.0.0</AssemblyVersion>
  160. </AssemblyInfo>
  161. <ReturnValue>
  162. <ReturnType>System.Void</ReturnType>
  163. </ReturnValue>
  164. <Parameters>
  165. <Parameter Name="time" Type="System.Single" />
  166. </Parameters>
  167. <Docs>
  168. <param name="time">A value between 0 and 1
  169. For example:
  170. 0 means that the action just started
  171. 0.5 means that the action is in the middle
  172. 1 means that the action is over</param>
  173. <summary>
  174. Called once per frame.
  175. </summary>
  176. <remarks>
  177. <para>When you provide your own Actions, and your own action states, this is the method that will perform the actual changes to your <see cref="P:Urho.Actions.ActionState.Target" /> node.   The action should affect the state of the target node in an implementation specific way, and should be done in function of the specified dt.</para>
  178. <para></para>
  179. </remarks>
  180. </Docs>
  181. </Member>
  182. </Members>
  183. </Type>