SMAPI - Stardew Modding API

SMAPI - Stardew Modding API

971k Downloads

Replace Manifest and Version with interfaces for public access

Pathoschild opened this issue · 1 comments

commented

Introduce a new IManifest field on the mod class, and deprecate Manifest and Version for public access in favour of IManifest and ISemanticVersion.

commented

Done in the develop branch for the upcoming SMAPI 1.5 release:

  • Manifest is now deprecated in favour of IManifest. Mods that reference this.Manifest should use this.ModManifest instead.
  • Version is now deprecated in favour of ISemanticVersion. Mods that reference Constants.Version should use Constants.ApiVersion instead, and mods the construct their own versions should use new SemanticVersion(…).

These changes are backwards compatible (with some hacks under the hood to make that possible).