using xTile.Dimensions;
namespace StardewModdingAPI.Framework.Content
{
/// Basic metadata about a vanilla tilesheet.
internal class TilesheetReference
{
/*********
** Accessors
*********/
/// The tilesheet's index in the list.
public readonly int Index;
/// The tilesheet's unique ID in the map.
public readonly string Id;
/// The asset path for the tilesheet texture.
public readonly string ImageSource;
/// The number of tiles in the tilesheet.
public readonly Size SheetSize;
/// The size of each tile in pixels.
public readonly Size TileSize;
/*********
** Public methods
*********/
/// Construct an instance.
/// The tilesheet's index in the list.
/// The tilesheet's unique ID in the map.
/// The asset path for the tilesheet texture.
/// The number of tiles in the tilesheet.
/// The size of each tile in pixels.
public TilesheetReference(int index, string id, string imageSource, Size sheetSize, Size tileSize)
{
this.Index = index;
this.Id = id;
this.ImageSource = imageSource;
this.SheetSize = sheetSize;
this.TileSize = tileSize;
}
}
}