AnimationCurves.generated.cs 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. using System.Runtime.InteropServices;
  4. namespace BansheeEngine
  5. {
  6. /** @addtogroup Animation
  7. * @{
  8. */
  9. /// <summary>A set of animation curves representing translation/rotation/scale and generic animation.</summary>
  10. [ShowInInspector]
  11. public partial class AnimationCurves : ScriptObject
  12. {
  13. private AnimationCurves(bool __dummy0) { }
  14. public AnimationCurves()
  15. {
  16. Internal_AnimationCurves(this);
  17. }
  18. /// <summary>Curves for animating scene object's position.</summary>
  19. [ShowInInspector]
  20. public NamedVector3Curve[] Position
  21. {
  22. get { return Internal_getPositionCurves(mCachedPtr); }
  23. set { Internal_setPositionCurves(mCachedPtr, value); }
  24. }
  25. /// <summary>Curves for animating scene object's rotation.</summary>
  26. [ShowInInspector]
  27. public NamedQuaternionCurve[] Rotation
  28. {
  29. get { return Internal_getRotationCurves(mCachedPtr); }
  30. set { Internal_setRotationCurves(mCachedPtr, value); }
  31. }
  32. /// <summary>Curves for animating scene object's scale.</summary>
  33. [ShowInInspector]
  34. public NamedVector3Curve[] Scale
  35. {
  36. get { return Internal_getScaleCurves(mCachedPtr); }
  37. set { Internal_setScaleCurves(mCachedPtr, value); }
  38. }
  39. /// <summary>Curves for animating generic component properties.</summary>
  40. [ShowInInspector]
  41. public NamedFloatCurve[] Generic
  42. {
  43. get { return Internal_getGenericCurves(mCachedPtr); }
  44. set { Internal_setGenericCurves(mCachedPtr, value); }
  45. }
  46. /// <summary>Registers a new curve used for animating position.</summary>
  47. /// <param name="name">
  48. /// Unique name of the curve. This name will be used mapping the curve to the relevant bone in a skeleton, if any.
  49. /// </param>
  50. /// <param name="curve">Curve to add to the clip.</param>
  51. public void AddPositionCurve(string name, Vector3Curve curve)
  52. {
  53. Internal_addPositionCurve(mCachedPtr, name, curve);
  54. }
  55. /// <summary>Registers a new curve used for animating rotation.</summary>
  56. /// <param name="name">
  57. /// Unique name of the curve. This name will be used mapping the curve to the relevant bone in a skeleton, if any.
  58. /// </param>
  59. /// <param name="curve">Curve to add to the clip.</param>
  60. public void AddRotationCurve(string name, QuaternionCurve curve)
  61. {
  62. Internal_addRotationCurve(mCachedPtr, name, curve);
  63. }
  64. /// <summary>Registers a new curve used for animating scale.</summary>
  65. /// <param name="name">
  66. /// Unique name of the curve. This name will be used mapping the curve to the relevant bone in a skeleton, if any.
  67. /// </param>
  68. /// <param name="curve">Curve to add to the clip.</param>
  69. public void AddScaleCurve(string name, Vector3Curve curve)
  70. {
  71. Internal_addScaleCurve(mCachedPtr, name, curve);
  72. }
  73. /// <summary>Registers a new curve used for generic animation.</summary>
  74. /// <param name="name">
  75. /// Unique name of the curve. This can be used for retrieving the value of the curve from animation.
  76. /// </param>
  77. /// <param name="curve">Curve to add to the clip.</param>
  78. public void AddGenericCurve(string name, AnimationCurve curve)
  79. {
  80. Internal_addGenericCurve(mCachedPtr, name, curve);
  81. }
  82. /// <summary>Removes an existing curve from the clip.</summary>
  83. public void RemovePositionCurve(string name)
  84. {
  85. Internal_removePositionCurve(mCachedPtr, name);
  86. }
  87. /// <summary>Removes an existing curve from the clip.</summary>
  88. public void RemoveRotationCurve(string name)
  89. {
  90. Internal_removeRotationCurve(mCachedPtr, name);
  91. }
  92. /// <summary>Removes an existing curve from the clip.</summary>
  93. public void RemoveScaleCurve(string name)
  94. {
  95. Internal_removeScaleCurve(mCachedPtr, name);
  96. }
  97. /// <summary>Removes an existing curve from the clip.</summary>
  98. public void RemoveGenericCurve(string name)
  99. {
  100. Internal_removeGenericCurve(mCachedPtr, name);
  101. }
  102. [MethodImpl(MethodImplOptions.InternalCall)]
  103. private static extern void Internal_AnimationCurves(AnimationCurves managedInstance);
  104. [MethodImpl(MethodImplOptions.InternalCall)]
  105. private static extern void Internal_addPositionCurve(IntPtr thisPtr, string name, Vector3Curve curve);
  106. [MethodImpl(MethodImplOptions.InternalCall)]
  107. private static extern void Internal_addRotationCurve(IntPtr thisPtr, string name, QuaternionCurve curve);
  108. [MethodImpl(MethodImplOptions.InternalCall)]
  109. private static extern void Internal_addScaleCurve(IntPtr thisPtr, string name, Vector3Curve curve);
  110. [MethodImpl(MethodImplOptions.InternalCall)]
  111. private static extern void Internal_addGenericCurve(IntPtr thisPtr, string name, AnimationCurve curve);
  112. [MethodImpl(MethodImplOptions.InternalCall)]
  113. private static extern void Internal_removePositionCurve(IntPtr thisPtr, string name);
  114. [MethodImpl(MethodImplOptions.InternalCall)]
  115. private static extern void Internal_removeRotationCurve(IntPtr thisPtr, string name);
  116. [MethodImpl(MethodImplOptions.InternalCall)]
  117. private static extern void Internal_removeScaleCurve(IntPtr thisPtr, string name);
  118. [MethodImpl(MethodImplOptions.InternalCall)]
  119. private static extern void Internal_removeGenericCurve(IntPtr thisPtr, string name);
  120. [MethodImpl(MethodImplOptions.InternalCall)]
  121. private static extern NamedVector3Curve[] Internal_getPositionCurves(IntPtr thisPtr);
  122. [MethodImpl(MethodImplOptions.InternalCall)]
  123. private static extern void Internal_setPositionCurves(IntPtr thisPtr, NamedVector3Curve[] value);
  124. [MethodImpl(MethodImplOptions.InternalCall)]
  125. private static extern NamedQuaternionCurve[] Internal_getRotationCurves(IntPtr thisPtr);
  126. [MethodImpl(MethodImplOptions.InternalCall)]
  127. private static extern void Internal_setRotationCurves(IntPtr thisPtr, NamedQuaternionCurve[] value);
  128. [MethodImpl(MethodImplOptions.InternalCall)]
  129. private static extern NamedVector3Curve[] Internal_getScaleCurves(IntPtr thisPtr);
  130. [MethodImpl(MethodImplOptions.InternalCall)]
  131. private static extern void Internal_setScaleCurves(IntPtr thisPtr, NamedVector3Curve[] value);
  132. [MethodImpl(MethodImplOptions.InternalCall)]
  133. private static extern NamedFloatCurve[] Internal_getGenericCurves(IntPtr thisPtr);
  134. [MethodImpl(MethodImplOptions.InternalCall)]
  135. private static extern void Internal_setGenericCurves(IntPtr thisPtr, NamedFloatCurve[] value);
  136. }
  137. /** @} */
  138. }