| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206 |
- using System;
- using System.Runtime.CompilerServices;
- using System.Runtime.InteropServices;
- namespace BansheeEngine
- {
- /** @addtogroup Animation
- * @{
- */
- /// <summary>An animation curve and its name.</summary>
- [StructLayout(LayoutKind.Sequential), SerializeObject]
- public partial struct NamedFloatCurve
- {
- /// <summary>Initializes the struct with default values.</summary>
- public static NamedFloatCurve Default()
- {
- NamedFloatCurve value = new NamedFloatCurve();
- value.name = "";
- value.flags = (AnimationCurveFlags)0;
- value.curve = null;
- return value;
- }
- /// <summary>Constructs a new named animation curve.</summary>
- /// <param name="name">Name of the curve.</param>
- /// <param name="curve">Curve containing the animation data.</param>
- public NamedFloatCurve(string name, AnimationCurve curve)
- {
- this.name = name;
- this.flags = (AnimationCurveFlags)0;
- this.curve = curve;
- }
- /// <summary>Constructs a new named animation curve.</summary>
- /// <param name="name">Name of the curve.</param>
- /// <param name="flags">Flags that describe the animation curve.</param>
- /// <param name="curve">Curve containing the animation data.</param>
- public NamedFloatCurve(string name, AnimationCurveFlags flags, AnimationCurve curve)
- {
- this.name = name;
- this.flags = (AnimationCurveFlags)0;
- this.curve = curve;
- }
- /// <summary>Name of the curve.</summary>
- public string name;
- /// <summary>Flags that describe the animation curve.</summary>
- public AnimationCurveFlags flags;
- /// <summary>Actual curve containing animation data.</summary>
- public AnimationCurve curve;
- }
- /** @} */
- /** @addtogroup Animation
- * @{
- */
- /// <summary>An animation curve and its name.</summary>
- [StructLayout(LayoutKind.Sequential), SerializeObject]
- public partial struct NamedVector3Curve
- {
- /// <summary>Initializes the struct with default values.</summary>
- public static NamedVector3Curve Default()
- {
- NamedVector3Curve value = new NamedVector3Curve();
- value.name = "";
- value.flags = (AnimationCurveFlags)0;
- value.curve = null;
- return value;
- }
- /// <summary>Constructs a new named animation curve.</summary>
- /// <param name="name">Name of the curve.</param>
- /// <param name="curve">Curve containing the animation data.</param>
- public NamedVector3Curve(string name, Vector3Curve curve)
- {
- this.name = name;
- this.flags = (AnimationCurveFlags)0;
- this.curve = curve;
- }
- /// <summary>Constructs a new named animation curve.</summary>
- /// <param name="name">Name of the curve.</param>
- /// <param name="flags">Flags that describe the animation curve.</param>
- /// <param name="curve">Curve containing the animation data.</param>
- public NamedVector3Curve(string name, AnimationCurveFlags flags, Vector3Curve curve)
- {
- this.name = name;
- this.flags = (AnimationCurveFlags)0;
- this.curve = curve;
- }
- /// <summary>Name of the curve.</summary>
- public string name;
- /// <summary>Flags that describe the animation curve.</summary>
- public AnimationCurveFlags flags;
- /// <summary>Actual curve containing animation data.</summary>
- public Vector3Curve curve;
- }
- /** @} */
- /** @addtogroup Animation
- * @{
- */
- /// <summary>An animation curve and its name.</summary>
- [StructLayout(LayoutKind.Sequential), SerializeObject]
- public partial struct NamedQuaternionCurve
- {
- /// <summary>Initializes the struct with default values.</summary>
- public static NamedQuaternionCurve Default()
- {
- NamedQuaternionCurve value = new NamedQuaternionCurve();
- value.name = "";
- value.flags = (AnimationCurveFlags)0;
- value.curve = null;
- return value;
- }
- /// <summary>Constructs a new named animation curve.</summary>
- /// <param name="name">Name of the curve.</param>
- /// <param name="curve">Curve containing the animation data.</param>
- public NamedQuaternionCurve(string name, QuaternionCurve curve)
- {
- this.name = name;
- this.flags = (AnimationCurveFlags)0;
- this.curve = curve;
- }
- /// <summary>Constructs a new named animation curve.</summary>
- /// <param name="name">Name of the curve.</param>
- /// <param name="flags">Flags that describe the animation curve.</param>
- /// <param name="curve">Curve containing the animation data.</param>
- public NamedQuaternionCurve(string name, AnimationCurveFlags flags, QuaternionCurve curve)
- {
- this.name = name;
- this.flags = (AnimationCurveFlags)0;
- this.curve = curve;
- }
- /// <summary>Name of the curve.</summary>
- public string name;
- /// <summary>Flags that describe the animation curve.</summary>
- public AnimationCurveFlags flags;
- /// <summary>Actual curve containing animation data.</summary>
- public QuaternionCurve curve;
- }
- /** @} */
- /** @addtogroup Animation
- * @{
- */
- /// <summary>An animation curve and its name.</summary>
- [StructLayout(LayoutKind.Sequential), SerializeObject]
- public partial struct NamedIntegerCurve
- {
- /// <summary>Initializes the struct with default values.</summary>
- public static NamedIntegerCurve Default()
- {
- NamedIntegerCurve value = new NamedIntegerCurve();
- value.name = "";
- value.flags = (AnimationCurveFlags)0;
- value.curve = null;
- return value;
- }
- /// <summary>Constructs a new named animation curve.</summary>
- /// <param name="name">Name of the curve.</param>
- /// <param name="curve">Curve containing the animation data.</param>
- public NamedIntegerCurve(string name, IntegerCurve curve)
- {
- this.name = name;
- this.flags = (AnimationCurveFlags)0;
- this.curve = curve;
- }
- /// <summary>Constructs a new named animation curve.</summary>
- /// <param name="name">Name of the curve.</param>
- /// <param name="flags">Flags that describe the animation curve.</param>
- /// <param name="curve">Curve containing the animation data.</param>
- public NamedIntegerCurve(string name, AnimationCurveFlags flags, IntegerCurve curve)
- {
- this.name = name;
- this.flags = (AnimationCurveFlags)0;
- this.curve = curve;
- }
- /// <summary>Name of the curve.</summary>
- public string name;
- /// <summary>Flags that describe the animation curve.</summary>
- public AnimationCurveFlags flags;
- /// <summary>Actual curve containing animation data.</summary>
- public IntegerCurve curve;
- }
- /** @} */
- }
|