Changes

→‎Deprecated interfaces: update for SMAPI 2.0
Line 27: Line 27:     
==Deprecated interfaces==
 
==Deprecated interfaces==
 +
<!--
 
These are currently deprecated:
 
These are currently deprecated:
   Line 38: Line 39:  
| 1.0
 
| 1.0
 
| <tt>Config</tt> class
 
| <tt>Config</tt> class
| ''info''
+
| ''pending removal''
 
| see [[#Mod configuration|mod configuration]].
 
| see [[#Mod configuration|mod configuration]].
|-
  −
| 1.0
  −
| <tt>Mod.BaseConfigPath</tt>
  −
| ''info''
  −
| see [[#Mod configuration|mod configuration]].
  −
|-
  −
| 1.0
  −
| <tt>Mod.PathOnDisk</tt>
  −
| ''info''
  −
| see [[#Mod configuration|mod configuration]] or use <tt>this.Helper.DirectoryPath</tt>.
  −
|-
  −
| 1.0
  −
| <tt>Mod.PerSaveConfigFolder</tt>
  −
| ''info''
  −
| use [[Modding:Creating a SMAPI mod#Configuration|per-save JSON files]] instead.
  −
|-
  −
| 1.0
  −
| <tt>Mod.PerSaveConfigPath</tt>
  −
| ''info''
  −
| use [[Modding:Creating a SMAPI mod#Configuration|per-save JSON files]] instead.
  −
|-
  −
| 1.0
  −
| <tt>Mod.Entry(object[])</tt>
  −
| ''info''
  −
| see [[#Mod entry method|mod entry method]].
  −
|-
  −
| 1.1
  −
| <tt>Log</tt> class
  −
| ''info''
  −
| use the <tt>this.Monitor.Log</tt> mod method.
  −
|-
  −
| 1.6
  −
| <tt>PlayerEvents.FarmerChanged</tt>
  −
| ''info''
  −
| serves no purpose.
  −
|-
  −
| 1.6
  −
| <tt>PlayerEvents.LoadedGame</tt>
  −
| ''info''
  −
| use <tt>SaveEvents.AfterLoad</tt>.
  −
|-
  −
| 1.6
  −
| <tt>TimeEvents.OnNewDay</tt>
  −
| ''info''
  −
| unreliable and don't do what you think; use <tt>TimeEvents.AfterDayChanged</tt> or <tt>SaveEvents.BeforeSave</tt> instead.
  −
|-
  −
| 1.9
  −
| <tt>Command</tt> class
  −
| ''info''
  −
| use <tt>this.Helper.ConsoleCommands</tt>.
  −
|-
  −
| 1.10
  −
| <tt>GameEvents.Initialize</tt><br /><tt>GameEvents.LoadContent</tt>
  −
| ''info''
  −
| move any code into your <tt>Entry</tt> method.
  −
|-
  −
| 1.13
  −
| <tt>GameEvents.GameLoaded</tt><br /><tt>GameEvents.FirstUpdateTick</tt>
  −
| ''info''
  −
| move any code into your <tt>Entry</tt> method.
  −
|-
  −
| 1.14
  −
| <tt>TimeEvents.DayOfMonthChanged</tt><br /><tt>TimeEvents.SeasonOfYearChanged</tt><br /><tt>TimeEvents.YearOfGameChanged</tt>
  −
| ''info''
  −
| unreliable and don't do what you think; use <tt>TimeEvents.AfterDayChanged</tt> or <tt>SaveEvents.BeforeSave</tt> instead.
   
|}
 
|}
 +
-->
   −
These have been removed:
+
These interfaces have been removed:
    
{| class="wikitable"
 
{| class="wikitable"
Line 175: Line 112:  
| <tt>Constants.Version</tt>
 
| <tt>Constants.Version</tt>
 
| use <tt>Constants.ApiVersion</tt> <small>(changes type from <tt>Version</tt> to <tt>ISemanticVersion</tt>)</small>.
 
| use <tt>Constants.ApiVersion</tt> <small>(changes type from <tt>Version</tt> to <tt>ISemanticVersion</tt>)</small>.
 +
|-
 +
| 1.0
 +
| 2.0
 +
| <tt>Config</tt> class
 +
| see [[#Mod configuration|mod configuration]].
 +
|-
 +
| 1.0
 +
| 2.0
 +
| <tt>Mod.BaseConfigPath</tt>
 +
| see [[#Mod configuration|mod configuration]].
 +
|-
 +
| 1.0
 +
| 2.0
 +
| <tt>Mod.PathOnDisk</tt>
 +
| see [[#Mod configuration|mod configuration]] or use <tt>this.Helper.DirectoryPath</tt>.
 +
|-
 +
| 1.0
 +
| 2.0
 +
| <tt>Mod.PerSaveConfigFolder</tt>
 +
| use [[Modding:Creating a SMAPI mod#Configuration|per-save JSON files]] instead.
 +
|-
 +
| 1.0
 +
| 2.0
 +
| <tt>Mod.PerSaveConfigPath</tt>
 +
| use [[Modding:Creating a SMAPI mod#Configuration|per-save JSON files]] instead.
 +
|-
 +
| 1.0
 +
| 2.0
 +
| <tt>Mod.Entry(object[])</tt>
 +
| see [[#Mod entry method|mod entry method]].
 +
|-
 +
| 1.1
 +
| 2.0
 +
| <tt>Log</tt> class
 +
| use the <tt>this.Monitor.Log</tt> mod method.
 +
|-
 +
| 1.6
 +
| 2.0
 +
| <tt>PlayerEvents.FarmerChanged</tt>
 +
| serves no purpose.
 +
|-
 +
| 1.6
 +
| 2.0
 +
| <tt>PlayerEvents.LoadedGame</tt>
 +
| use <tt>SaveEvents.AfterLoad</tt>.
 +
|-
 +
| 1.6
 +
| 2.0
 +
| <tt>TimeEvents.OnNewDay</tt>
 +
| unreliable and don't do what you think; use <tt>TimeEvents.AfterDayChanged</tt> or <tt>SaveEvents.BeforeSave</tt> instead.
 +
|-
 +
| 1.9
 +
| 2.0
 +
| <tt>Command</tt> class
 +
| use <tt>this.Helper.ConsoleCommands</tt>.
 +
|-
 +
| 1.10
 +
| 2.0
 +
| <tt>GameEvents.Initialize</tt><br /><tt>GameEvents.LoadContent</tt>
 +
| move any code into your <tt>Entry</tt> method.
 +
|-
 +
| 1.13
 +
| 2.0
 +
| <tt>GameEvents.GameLoaded</tt><br /><tt>GameEvents.FirstUpdateTick</tt>
 +
| move any code into your <tt>Entry</tt> method.
 +
|-
 +
| 1.14
 +
| 2.0
 +
| <tt>TimeEvents.DayOfMonthChanged</tt><br /><tt>TimeEvents.SeasonOfYearChanged</tt><br /><tt>TimeEvents.YearOfGameChanged</tt>
 +
| unreliable and don't do what you think; use <tt>TimeEvents.AfterDayChanged</tt> or <tt>SaveEvents.BeforeSave</tt> instead.
 
|}
 
|}
  
translators
8,404

edits