TNamedAnimationCurve.generated.cs 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. using System.Runtime.InteropServices;
  4. namespace BansheeEngine
  5. {
  6. /** @addtogroup Animation
  7. * @{
  8. */
  9. /// <summary>An animation curve and its name.</summary>
  10. [StructLayout(LayoutKind.Sequential), SerializeObject]
  11. public partial struct NamedFloatCurve
  12. {
  13. /// <summary>Initializes the struct with default values.</summary>
  14. public static NamedFloatCurve Default()
  15. {
  16. NamedFloatCurve value = new NamedFloatCurve();
  17. value.name = "";
  18. value.flags = (AnimationCurveFlags)0;
  19. value.curve = null;
  20. return value;
  21. }
  22. /// <summary>Constructs a new named animation curve.</summary>
  23. /// <param name="name">Name of the curve.</param>
  24. /// <param name="curve">Curve containing the animation data.</param>
  25. public NamedFloatCurve(string name, AnimationCurve curve)
  26. {
  27. this.name = name;
  28. this.flags = (AnimationCurveFlags)0;
  29. this.curve = curve;
  30. }
  31. /// <summary>Constructs a new named animation curve.</summary>
  32. /// <param name="name">Name of the curve.</param>
  33. /// <param name="flags">Flags that describe the animation curve.</param>
  34. /// <param name="curve">Curve containing the animation data.</param>
  35. public NamedFloatCurve(string name, AnimationCurveFlags flags, AnimationCurve curve)
  36. {
  37. this.name = name;
  38. this.flags = (AnimationCurveFlags)0;
  39. this.curve = curve;
  40. }
  41. /// <summary>Name of the curve.</summary>
  42. public string name;
  43. /// <summary>Flags that describe the animation curve.</summary>
  44. public AnimationCurveFlags flags;
  45. /// <summary>Actual curve containing animation data.</summary>
  46. public AnimationCurve curve;
  47. }
  48. /** @} */
  49. /** @addtogroup Animation
  50. * @{
  51. */
  52. /// <summary>An animation curve and its name.</summary>
  53. [StructLayout(LayoutKind.Sequential), SerializeObject]
  54. public partial struct NamedVector3Curve
  55. {
  56. /// <summary>Initializes the struct with default values.</summary>
  57. public static NamedVector3Curve Default()
  58. {
  59. NamedVector3Curve value = new NamedVector3Curve();
  60. value.name = "";
  61. value.flags = (AnimationCurveFlags)0;
  62. value.curve = null;
  63. return value;
  64. }
  65. /// <summary>Constructs a new named animation curve.</summary>
  66. /// <param name="name">Name of the curve.</param>
  67. /// <param name="curve">Curve containing the animation data.</param>
  68. public NamedVector3Curve(string name, Vector3Curve curve)
  69. {
  70. this.name = name;
  71. this.flags = (AnimationCurveFlags)0;
  72. this.curve = curve;
  73. }
  74. /// <summary>Constructs a new named animation curve.</summary>
  75. /// <param name="name">Name of the curve.</param>
  76. /// <param name="flags">Flags that describe the animation curve.</param>
  77. /// <param name="curve">Curve containing the animation data.</param>
  78. public NamedVector3Curve(string name, AnimationCurveFlags flags, Vector3Curve curve)
  79. {
  80. this.name = name;
  81. this.flags = (AnimationCurveFlags)0;
  82. this.curve = curve;
  83. }
  84. /// <summary>Name of the curve.</summary>
  85. public string name;
  86. /// <summary>Flags that describe the animation curve.</summary>
  87. public AnimationCurveFlags flags;
  88. /// <summary>Actual curve containing animation data.</summary>
  89. public Vector3Curve curve;
  90. }
  91. /** @} */
  92. /** @addtogroup Animation
  93. * @{
  94. */
  95. /// <summary>An animation curve and its name.</summary>
  96. [StructLayout(LayoutKind.Sequential), SerializeObject]
  97. public partial struct NamedQuaternionCurve
  98. {
  99. /// <summary>Initializes the struct with default values.</summary>
  100. public static NamedQuaternionCurve Default()
  101. {
  102. NamedQuaternionCurve value = new NamedQuaternionCurve();
  103. value.name = "";
  104. value.flags = (AnimationCurveFlags)0;
  105. value.curve = null;
  106. return value;
  107. }
  108. /// <summary>Constructs a new named animation curve.</summary>
  109. /// <param name="name">Name of the curve.</param>
  110. /// <param name="curve">Curve containing the animation data.</param>
  111. public NamedQuaternionCurve(string name, QuaternionCurve curve)
  112. {
  113. this.name = name;
  114. this.flags = (AnimationCurveFlags)0;
  115. this.curve = curve;
  116. }
  117. /// <summary>Constructs a new named animation curve.</summary>
  118. /// <param name="name">Name of the curve.</param>
  119. /// <param name="flags">Flags that describe the animation curve.</param>
  120. /// <param name="curve">Curve containing the animation data.</param>
  121. public NamedQuaternionCurve(string name, AnimationCurveFlags flags, QuaternionCurve curve)
  122. {
  123. this.name = name;
  124. this.flags = (AnimationCurveFlags)0;
  125. this.curve = curve;
  126. }
  127. /// <summary>Name of the curve.</summary>
  128. public string name;
  129. /// <summary>Flags that describe the animation curve.</summary>
  130. public AnimationCurveFlags flags;
  131. /// <summary>Actual curve containing animation data.</summary>
  132. public QuaternionCurve curve;
  133. }
  134. /** @} */
  135. /** @addtogroup Animation
  136. * @{
  137. */
  138. /// <summary>An animation curve and its name.</summary>
  139. [StructLayout(LayoutKind.Sequential), SerializeObject]
  140. public partial struct NamedIntegerCurve
  141. {
  142. /// <summary>Initializes the struct with default values.</summary>
  143. public static NamedIntegerCurve Default()
  144. {
  145. NamedIntegerCurve value = new NamedIntegerCurve();
  146. value.name = "";
  147. value.flags = (AnimationCurveFlags)0;
  148. value.curve = null;
  149. return value;
  150. }
  151. /// <summary>Constructs a new named animation curve.</summary>
  152. /// <param name="name">Name of the curve.</param>
  153. /// <param name="curve">Curve containing the animation data.</param>
  154. public NamedIntegerCurve(string name, IntegerCurve curve)
  155. {
  156. this.name = name;
  157. this.flags = (AnimationCurveFlags)0;
  158. this.curve = curve;
  159. }
  160. /// <summary>Constructs a new named animation curve.</summary>
  161. /// <param name="name">Name of the curve.</param>
  162. /// <param name="flags">Flags that describe the animation curve.</param>
  163. /// <param name="curve">Curve containing the animation data.</param>
  164. public NamedIntegerCurve(string name, AnimationCurveFlags flags, IntegerCurve curve)
  165. {
  166. this.name = name;
  167. this.flags = (AnimationCurveFlags)0;
  168. this.curve = curve;
  169. }
  170. /// <summary>Name of the curve.</summary>
  171. public string name;
  172. /// <summary>Flags that describe the animation curve.</summary>
  173. public AnimationCurveFlags flags;
  174. /// <summary>Actual curve containing animation data.</summary>
  175. public IntegerCurve curve;
  176. }
  177. /** @} */
  178. }