CurveDrawInfo.generated.cs 990 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //************** Copyright (c) 2016-2019 Marko Pintera ([email protected]). All rights reserved. *******************//
  3. using System;
  4. using System.Runtime.CompilerServices;
  5. using System.Runtime.InteropServices;
  6. using bs;
  7. namespace bs.Editor
  8. {
  9. /** @addtogroup GUIEditor
  10. * @{
  11. */
  12. /// <summary>Curve and a color to draw it in.</summary>
  13. [StructLayout(LayoutKind.Sequential), SerializeObject]
  14. public partial struct CurveDrawInfo
  15. {
  16. /// <summary>Initializes the struct with default values.</summary>
  17. public static CurveDrawInfo Default()
  18. {
  19. CurveDrawInfo value = new CurveDrawInfo();
  20. value.curve = null;
  21. value.color = Color.Default();
  22. return value;
  23. }
  24. public CurveDrawInfo(AnimationCurve curve, Color color)
  25. {
  26. this.curve = curve;
  27. this.color = color;
  28. }
  29. public AnimationCurve curve;
  30. public Color color;
  31. }
  32. /** @} */
  33. }