Changes

Jump to navigation Jump to search
→‎What's new for items: + field changes in furniture data
Line 2,647: Line 2,647:     
It implements a new <samp>IInventory</samp> interface, which lets mods pass their own implementations to code which works on inventories.
 
It implements a new <samp>IInventory</samp> interface, which lets mods pass their own implementations to code which works on inventories.
 +
 +
===Field changes in furniture data===
 +
There are a few changes in [[Modding:Items#Furniture|<samp>Data/furniture</samp>]]:
 +
<ul>
 +
<li>Field index 6 is now placement restrictions and field index 7 is now display name. The display name field is no longer omitted in English.</li>
 +
<li>Added new fields:
 +
 +
{| class="wikitable"
 +
|-
 +
! index
 +
! field
 +
! effect
 +
|-
 +
| 8
 +
| sprite index
 +
| The sprite index within the spritesheet texture to draw.
 +
|-
 +
| 9
 +
| texture
 +
| ''(Optional)'' The asset name of the texture to draw. Defaults to <samp>TileSheets/furniture</samp>.
 +
|}</li>
 +
</ul>
    
===Other item changes for C# mods===
 
===Other item changes for C# mods===
translators
8,447

edits

Navigation menu