Changes

Jump to navigation Jump to search
→‎Major changes: reorder, + Manifest version format
Line 37: Line 37:     
==Major changes==
 
==Major changes==
 +
===API changes===
 +
{| class="wikitable"
 +
|-
 +
! old API
 +
! →
 +
! new API
 +
! conversion notes
 +
|-
 +
| <tt>helper.CreateTransitionalContentPack</tt>
 +
| →
 +
| <tt>helper.CreateTemporaryContentPack</tt>
 +
| Identical usage. (This was a temporary method for the transition to [[Modding:Content packs|SMAPI content packs]], but a few mods have permanent use cases for it.)
 +
|-
 +
| <tt>SemanticVersion.Build</tt>
 +
| →
 +
| <tt>SemanticVersion.PrereleaseTag</tt>
 +
| Identical usage.
 +
|}
 +
 
===Event changes===
 
===Event changes===
 
The former events will be removed in SMAPI 3.0. Here's how to convert them to the new events under <tt>this.Helper.Events</tt>. This list only shows equivalent events in SMAPI 3.0; see [[Modding:Modder Guide/APIs/Events|''events'' in the modder guide]] for a full list.
 
The former events will be removed in SMAPI 3.0. Here's how to convert them to the new events under <tt>this.Helper.Events</tt>. This list only shows equivalent events in SMAPI 3.0; see [[Modding:Modder Guide/APIs/Events|''events'' in the modder guide]] for a full list.
Line 230: Line 249:  
|}
 
|}
   −
===API changes===
+
===Manifest version format===
{| class="wikitable"
+
The [[Modding:Modder Guide/APIs/Manifest|<tt>manifest.json</tt>]] no longer allows versions in this form:
|-
+
<source lang="js">
! old API
+
"Version": {
! →
+
  "MajorVersion": 1,
! new API
+
  "MinorVersion": 0,
! conversion notes
+
  "PatchVersion": 0,
|-
+
  "Build": "beta"
| <tt>helper.CreateTransitionalContentPack</tt>
+
}
| →
+
</source>
| <tt>helper.CreateTemporaryContentPack</tt>
+
 
| Identical usage. (This was a temporary method for the transition to [[Modding:Content packs|SMAPI content packs]], but a few mods have permanent use cases for it.)
+
Versions should be written in the standard string form instead:
|-
+
<source lang="js">
| <tt>SemanticVersion.Build</tt>
+
"Version": "1.0.0-beta"
| →
+
</source>
| <tt>SemanticVersion.PrereleaseTag</tt>
  −
| Identical usage.
  −
|}
      
[[Category:Modding]]
 
[[Category:Modding]]
translators
8,403

edits

Navigation menu