TangentRef.generated.cs 846 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. using System.Runtime.InteropServices;
  4. namespace BansheeEngine
  5. {
  6. /** @addtogroup Animation
  7. * @{
  8. */
  9. /// <summary>
  10. /// Structure containing a reference to a keyframe tangent, as a keyframe reference and type of the tangent.
  11. /// </summary>
  12. [StructLayout(LayoutKind.Sequential), SerializeObject]
  13. public partial struct TangentRef
  14. {
  15. /// <summary>Initializes the struct with default values.</summary>
  16. public static TangentRef Default()
  17. {
  18. TangentRef value = new TangentRef();
  19. value.keyframeRef = new KeyframeRef();
  20. value.type = TangentType.In;
  21. return value;
  22. }
  23. public TangentRef(KeyframeRef keyframeRef, TangentType type)
  24. {
  25. this.keyframeRef = keyframeRef;
  26. this.type = type;
  27. }
  28. public KeyframeRef keyframeRef;
  29. public TangentType type;
  30. }
  31. /** @} */
  32. }