IAnimationFrame.cs 665 B

1234567891011121314151617181920212223
  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. using System;
  5. namespace MonoGame.Extended.Animations;
  6. /// <summary>
  7. /// Defines the interface for an animation frame, specifying the frame index and its duration.
  8. /// </summary>
  9. public interface IAnimationFrame
  10. {
  11. /// <summary>
  12. /// Gets the frame index represented by this animation frame.
  13. /// </summary>
  14. int FrameIndex { get; }
  15. /// <summary>
  16. /// Gets the total duration this frame should be displayed during an animation.
  17. /// </summary>
  18. TimeSpan Duration { get; }
  19. }