Changes

Jump to navigation Jump to search
m
Text replacement - "tt>" to "samp>"
Line 4: Line 4:     
==Raw data==
 
==Raw data==
Furniture is stored in <tt>Content\Data\Furniture.xnb</tt>, which can be [[Modding:Editing XNB files#unpacking|unpacked for editing]]. Here's the raw data as of {{version|1.5.1}} for reference:
+
Furniture is stored in <samp>Content\Data\Furniture.xnb</samp>, which can be [[Modding:Editing XNB files#unpacking|unpacked for editing]]. Here's the raw data as of {{version|1.5.1}} for reference:
    
{{collapse|Data|content=<syntaxhighlight lang="json">
 
{{collapse|Data|content=<syntaxhighlight lang="json">
Line 395: Line 395:  
|}
 
|}
   −
Values of "-1" in the <tt>Source Rectangle</tt> and <tt>Bounding Box</tt> fields correspond to the default values for the furniture type, calculated in <tt>Furniture.cs::getDefaultSourceRectForType()</tt> and <tt>Furniture.cs::getDefaultBoundingBoxForType()</tt>.  These functions use numbers that correspond to furniture type, also defined in <tt>Furniture.cs</tt>:
+
Values of "-1" in the <samp>Source Rectangle</samp> and <samp>Bounding Box</samp> fields correspond to the default values for the furniture type, calculated in <samp>Furniture.cs::getDefaultSourceRectForType()</samp> and <samp>Furniture.cs::getDefaultBoundingBoxForType()</samp>.  These functions use numbers that correspond to furniture type, also defined in <samp>Furniture.cs</samp>:
 
*chair = 0
 
*chair = 0
 
*bench = 1
 
*bench = 1
107,345

edits

Navigation menu