summaryrefslogtreecommitdiff
path: root/src/SMAPI.Toolkit/Framework/Clients/Wiki/WikiModList.cs
blob: 245480783f23d69b588958a2f7cff784ab7734e5 (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.Toolkit.Framework.Clients.Wiki
{
    /// <summary>Metadata from the wiki's mod compatibility list.</summary>
    public class WikiModList
    {
        /*********
        ** Accessors
        *********/
        /// <summary>The stable game version.</summary>
        public string? StableVersion { get; }

        /// <summary>The beta game version (if any).</summary>
        public string? BetaVersion { get; }

        /// <summary>The mods on the wiki.</summary>
        public WikiModEntry[] Mods { get; }


        /*********
        ** Public methods
        *********/
        /// <summary>Construct an instance.</summary>
        /// <param name="stableVersion">The stable game version.</param>
        /// <param name="betaVersion">The beta game version (if any).</param>
        /// <param name="mods">The mods on the wiki.</param>
        public WikiModList(string? stableVersion, string? betaVersion, WikiModEntry[] mods)
        {
            this.StableVersion = stableVersion;
            this.BetaVersion = betaVersion;
            this.Mods = mods;
        }
    }
}