Replace Manifest and Version with interfaces for public access
Pathoschild opened this issue · 1 comments
Introduce a new IManifest
field on the mod class, and deprecate Manifest
and Version
for public access in favour of IManifest
and ISemanticVersion
.
Done in the develop
branch for the upcoming SMAPI 1.5 release:
Manifest
is now deprecated in favour ofIManifest
. Mods that referencethis.Manifest
should usethis.ModManifest
instead.Version
is now deprecated in favour ofISemanticVersion
. Mods that referenceConstants.Version
should useConstants.ApiVersion
instead, and mods the construct their own versions should usenew SemanticVersion(…)
.
These changes are backwards compatible (with some hacks under the hood to make that possible).