summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Content/TilesheetReference.cs
blob: 2ea38430ea687689355dfdc75bb23e81b8039a2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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;
        }
    }
}