A game framework written with osu! in mind.
1// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
2// See the LICENCE file in the repository root for full licence text.
3
4namespace osu.Framework.Graphics.Animations
5{
6 /// <summary>
7 /// An animation with well-defined frames.
8 /// </summary>
9 public interface IFramedAnimation : IAnimation
10 {
11 /// <summary>
12 /// The number of frames this animation has.
13 /// </summary>
14 int FrameCount { get; }
15
16 /// <summary>
17 /// The currently visible frame's index.
18 /// </summary>
19 int CurrentFrameIndex { get; }
20
21 /// <summary>
22 /// Displays the frame with the given zero-based frame index.
23 /// </summary>
24 /// <param name="frameIndex">The zero-based index of the frame to display.</param>
25 void GotoFrame(int frameIndex);
26 }
27}