using StardewModdingAPI.Framework.Models;
namespace StardewModdingAPI.Framework.ModLoading
{
/// Metadata for a mod.
internal class ModMetadata
{
/*********
** Accessors
*********/
/// The mod's display name.
public string DisplayName { get; }
/// The mod's full directory path.
public string DirectoryPath { get; }
/// The mod manifest.
public IManifest Manifest { get; }
/// Optional metadata about a mod version that SMAPI should assume is compatible or broken, regardless of whether it detects incompatible code.
public ModCompatibility Compatibility { get; }
/*********
** Public methods
*********/
/// Construct an instance.
/// The mod's display name.
/// The mod's full directory path.
/// The mod manifest.
/// Optional metadata about a mod version that SMAPI should assume is compatible or broken, regardless of whether it detects incompatible code.
public ModMetadata(string displayName, string directoryPath, IManifest manifest, ModCompatibility compatibility)
{
this.DisplayName = displayName;
this.DirectoryPath = directoryPath;
this.Manifest = manifest;
this.Compatibility = compatibility;
}
}
}