BaseAction.xml 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <Type Name="BaseAction" FullName="Urho.Actions.BaseAction">
  2. <TypeSignature Language="C#" Value="public abstract class BaseAction" />
  3. <TypeSignature Language="ILAsm" Value=".class public auto ansi abstract beforefieldinit BaseAction 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>Base class for actions in Urho.</summary>
  14. <remarks>
  15. <para>In general, you will be using one of the concrete implementations of BaseAction that provide a lot of functionality.</para>
  16. <para>
  17. </para>
  18. <para>Actions are stateless, when you subclass this class, you should never keep any writable state.  Your subclass should merely act as a blueprint for what the action should do.</para>
  19. <para>
  20. </para>
  21. <para>When you create own actions, you need to override the <see cref="M:Urho.Actions.BaseAction.StartAction" /> method to return an <see cref="T:Urho.Actions.ActionState" /> subclass which is in chage of driving the action over time.</para>
  22. </remarks>
  23. </Docs>
  24. <Members>
  25. <Member MemberName=".ctor">
  26. <MemberSignature Language="C#" Value="protected BaseAction ();" />
  27. <MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor() cil managed" />
  28. <MemberType>Constructor</MemberType>
  29. <AssemblyInfo>
  30. <AssemblyVersion>1.0.0.0</AssemblyVersion>
  31. </AssemblyInfo>
  32. <Parameters />
  33. <Docs>
  34. <summary>Base constructor</summary>
  35. <remarks>To be added.</remarks>
  36. </Docs>
  37. </Member>
  38. <Member MemberName="StartAction">
  39. <MemberSignature Language="C#" Value="protected virtual Urho.Actions.ActionState StartAction (Urho.Node target);" />
  40. <MemberSignature Language="ILAsm" Value=".method familyorassemblyhidebysig newslot virtual instance class Urho.Actions.ActionState StartAction(class Urho.Node target) cil managed" />
  41. <MemberType>Method</MemberType>
  42. <AssemblyInfo>
  43. <AssemblyVersion>1.0.0.0</AssemblyVersion>
  44. </AssemblyInfo>
  45. <ReturnValue>
  46. <ReturnType>Urho.Actions.ActionState</ReturnType>
  47. </ReturnValue>
  48. <Parameters>
  49. <Parameter Name="target" Type="Urho.Node" />
  50. </Parameters>
  51. <Docs>
  52. <param name="target">
  53. <para>The new <see cref="T:Urho.Actions.ActionState" /> that encapsulates the state and provides the implementation to perform your action.</para>
  54. </param>
  55. <summary>Creates the action state for this action, called on demand from the framework to start executing the recipe.</summary>
  56. <returns>The new <see cref="T:Urho.Actions.ActionState" /> that encapsulates the state and provides the implementation to perform your action.</returns>
  57. <remarks>New action that will perform the inverse of this action</remarks>
  58. </Docs>
  59. </Member>
  60. <Member MemberName="Tag">
  61. <MemberSignature Language="C#" Value="public int Tag { get; set; }" />
  62. <MemberSignature Language="ILAsm" Value=".property instance int32 Tag" />
  63. <MemberType>Property</MemberType>
  64. <AssemblyInfo>
  65. <AssemblyVersion>1.0.0.0</AssemblyVersion>
  66. </AssemblyInfo>
  67. <ReturnValue>
  68. <ReturnType>System.Int32</ReturnType>
  69. </ReturnValue>
  70. <Docs>
  71. <summary>Tag used to easily reference an action from code using a code.</summary>
  72. <value>
  73. <para>
  74. </para>
  75. </value>
  76. <remarks>
  77. <para>
  78. </para>
  79. </remarks>
  80. </Docs>
  81. </Member>
  82. </Members>
  83. </Type>