AnimationCurves.generated.cs 6.2 KB

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