summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Content
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI/Framework/Content')
-rw-r--r--src/SMAPI/Framework/Content/TilesheetReference.cs33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/Content/TilesheetReference.cs b/src/SMAPI/Framework/Content/TilesheetReference.cs
new file mode 100644
index 00000000..2ea38430
--- /dev/null
+++ b/src/SMAPI/Framework/Content/TilesheetReference.cs
@@ -0,0 +1,33 @@
+namespace StardewModdingAPI.Framework.Content
+{
+ /// <summary>Basic metadata about a vanilla tilesheet.</summary>
+ internal class TilesheetReference
+ {
+ /*********
+ ** Accessors
+ *********/
+ /// <summary>The tilesheet's index in the list.</summary>
+ public readonly int Index;
+
+ /// <summary>The tilesheet's unique ID in the map.</summary>
+ public readonly string Id;
+
+ /// <summary>The asset path for the tilesheet texture.</summary>
+ public readonly string ImageSource;
+
+
+ /*********
+ ** Public methods
+ *********/
+ /// <summary>Construct an instance.</summary>
+ /// <param name="index">The tilesheet's index in the list.</param>
+ /// <param name="id">The tilesheet's unique ID in the map.</param>
+ /// <param name="imageSource">The asset path for the tilesheet texture.</param>
+ public TilesheetReference(int index, string id, string imageSource)
+ {
+ this.Index = index;
+ this.Id = id;
+ this.ImageSource = imageSource;
+ }
+ }
+}