namespace MonoGame.Extended.Tilemaps
{
///
/// Represents a single frame in a tile animation.
///
public readonly struct TilemapTileAnimationFrame
{
///
/// Gets the local tile ID for this frame.
///
public int TileId { get; }
///
/// Gets the duration of this frame in seconds.
///
public float Duration { get; }
///
/// Initializes a new instance of the struct.
///
/// The local tile ID for this frame.
/// The duration of this frame in seconds.
public TilemapTileAnimationFrame(int tileId, float duration)
{
TileId = tileId;
Duration = duration;
}
}
}