summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Content
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-01-08 21:18:15 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-01-08 21:18:15 -0500
commitbdb7b04b3edecdf7dfa665d8b5a50a1bbff62699 (patch)
tree7249d86910ce37a93a82db8322fade5465445dc4 /src/SMAPI/Framework/Content
parent04c6733adae9ce568aefb5d9dee6101097e994c5 (diff)
parentdf25368300e1254bc6eb2a1c7aa371bfeb289dff (diff)
downloadSMAPI-bdb7b04b3edecdf7dfa665d8b5a50a1bbff62699.tar.gz
SMAPI-bdb7b04b3edecdf7dfa665d8b5a50a1bbff62699.tar.bz2
SMAPI-bdb7b04b3edecdf7dfa665d8b5a50a1bbff62699.zip
Merge branch 'develop' into stable
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;
+ }
+ }
+}