AnimationEvent.generated.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. using System.Runtime.InteropServices;
  4. namespace BansheeEngine
  5. {
  6. /** @addtogroup Animation
  7. * @{
  8. */
  9. /// <summary>Event that is triggered when animation reaches a certain point.</summary>
  10. [StructLayout(LayoutKind.Sequential), SerializeObject]
  11. public partial struct AnimationEvent
  12. {
  13. /// <summary>Initializes the struct with default values.</summary>
  14. public static AnimationEvent Default()
  15. {
  16. AnimationEvent value = new AnimationEvent();
  17. value.name = "";
  18. value.time = 0f;
  19. return value;
  20. }
  21. /// <summary>Constructs a new animation event.</summary>
  22. /// <param name="name">Name used to identify the event when triggered.</param>
  23. /// <param name="time">Time at which to trigger the event, in seconds.</param>
  24. public AnimationEvent(string name, float time)
  25. {
  26. this.name = name;
  27. this.time = time;
  28. }
  29. /// <summary>Name used to identify the event when triggered.</summary>
  30. public string name;
  31. /// <summary>Time at which to trigger the event, in seconds.</summary>
  32. public float time;
  33. }
  34. /** @} */
  35. }