Changes

Jump to navigation Jump to search
→‎Providing an API: update for SMAPI 3.17.0 release
Line 51: Line 51:  
</syntaxhighlight>
 
</syntaxhighlight>
 
</li>
 
</li>
<li>{{SMAPI upcoming|3.17.0|content=''Or'' Override <samp>GetApi(IModInfo mod)</samp> to provide one instance per mod. This will be called once for each mod that requests an API.
+
<li>''Or'' Override <samp>GetApi(IModInfo mod)</samp> to provide one instance per mod. This will be called once for each mod that requests an API.
    
Note that this info is provided for informational purposes only (e.g. to log errors). Denying API access to specific mods is strongly discouraged and may be considered abusive.
 
Note that this info is provided for informational purposes only (e.g. to log errors). Denying API access to specific mods is strongly discouraged and may be considered abusive.
Line 59: Line 59:  
       return new YourModApi(mod.Manifest);
 
       return new YourModApi(mod.Manifest);
 
   }
 
   }
</syntaxhighlight>}}
+
</syntaxhighlight>
 
</li>
 
</li>
 
</ul>
 
</ul>
translators
8,403

edits

Navigation menu