diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-01-06 00:29:39 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-01-06 00:29:39 -0500 |
commit | c5be446701d4e24a03d8464e9b080ce74d158223 (patch) | |
tree | 7815e861c2f5cedc211023067fab654565eaa67f /src/SMAPI/Framework/Content | |
parent | 04c6733adae9ce568aefb5d9dee6101097e994c5 (diff) | |
download | SMAPI-c5be446701d4e24a03d8464e9b080ce74d158223.tar.gz SMAPI-c5be446701d4e24a03d8464e9b080ce74d158223.tar.bz2 SMAPI-c5be446701d4e24a03d8464e9b080ce74d158223.zip |
rework vanilla tilesheet checking to avoid keeping a copy of the vanilla maps in memory
Diffstat (limited to 'src/SMAPI/Framework/Content')
-rw-r--r-- | src/SMAPI/Framework/Content/TilesheetReference.cs | 33 |
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; + } + } +} |