Changes

→‎Other API changes: + PerScreen<T>(null)
Line 139: Line 139:  
| <samp>IContentPack.GetActualAssetKey</samp>
 
| <samp>IContentPack.GetActualAssetKey</samp>
 
| Use <samp>ModContent.GetInternalAssetName</samp>, and remove the <samp>ContentSource</samp> parameter. This returns an <samp>IAssetName</samp> value; you can update your code to use that, or get the string value using its <samp>Name</samp> property.
 
| Use <samp>ModContent.GetInternalAssetName</samp>, and remove the <samp>ContentSource</samp> parameter. This returns an <samp>IAssetName</samp> value; you can update your code to use that, or get the string value using its <samp>Name</samp> property.
 +
|-
 +
| <samp>PerScreen&lt;T&gt;(null)</samp>
 +
| Passing null into the constructor is deprecated. You should call <code>PerScreen&lt;T&gt;()</code> to use the default value.
 
|}
 
|}
  
translators
8,404

edits