namespace StardewModdingAPI.Framework.Models { /// Indicates which mod can read the content pack represented by the containing manifest. internal class ManifestContentPackFor : IManifestContentPackFor { /********* ** Accessors *********/ /// The unique ID of the mod which can read this content pack. public string UniqueID { get; } /// The minimum required version (if any). public ISemanticVersion MinimumVersion { get; } /********* ** Public methods *********/ /// Construct an instance. /// The toolkit instance. public ManifestContentPackFor(Toolkit.Serialisation.Models.ManifestContentPackFor contentPackFor) { this.UniqueID = contentPackFor.UniqueID; this.MinimumVersion = contentPackFor.MinimumVersion != null ? new SemanticVersion(contentPackFor.MinimumVersion) : null; } /// Construct an instance. /// The unique ID of the mod which can read this content pack. /// The minimum required version (if any). public ManifestContentPackFor(string uniqueID, ISemanticVersion minimumVersion = null) { this.UniqueID = uniqueID; this.MinimumVersion = minimumVersion; } } }