AnimationEventTrigger.cs 930 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // Copyright (c) Craftwork Games. All rights reserved.
  2. // Licensed under the MIT license.
  3. // See LICENSE file in the project root for full license information.
  4. namespace MonoGame.Extended.Animations;
  5. /// <summary>
  6. /// Specifies the trigger for an animation event.
  7. /// </summary>
  8. public enum AnimationEventTrigger
  9. {
  10. /// <summary>
  11. /// Triggered at the beginning of a frame.
  12. /// </summary>
  13. FrameBegin,
  14. /// <summary>
  15. /// Triggered at the end of a frame.
  16. /// </summary>
  17. FrameEnd,
  18. /// <summary>
  19. /// Triggered when a frame is skipped.
  20. /// </summary>
  21. FrameSkipped,
  22. /// <summary>
  23. /// Triggered when the animation loops.
  24. /// </summary>
  25. AnimationLoop,
  26. /// <summary>
  27. /// Triggered when the animation completes.
  28. /// </summary>
  29. AnimationCompleted,
  30. /// <summary>
  31. /// Triggered when the animation stops.
  32. /// </summary>
  33. AnimationStopped,
  34. }