Changes

Jump to navigation Jump to search
891 bytes added ,  13:20, 26 September 2016
Line 76: Line 76:     
Note that using MonoBehaviors from other mods requires setting the Namespace attribute and the Assembly attribute so the game knows where to find the classes, e.g. <MyCustomComponent Namespace=”MyMod.Behaviours.” Assembly=”MyMod”>.
 
Note that using MonoBehaviors from other mods requires setting the Namespace attribute and the Assembly attribute so the game knows where to find the classes, e.g. <MyCustomComponent Namespace=”MyMod.Behaviours.” Assembly=”MyMod”>.
 +
 +
=== Replacements/upgrading ===
 +
The root tag can use the UpgradeFrom and UpgradeTo to control which furniture can be replaced with your furniture and which furniture your furniture can be replaced with. The attribute should have a comma separated list of furniture, e.g.
 +
<pre><Root Base="Server Rack" Thumbnail="BigServerRackThumb.png" UpgradeFrom="Server Rack, Tower Server, Small Server, Medium Server" UpgradeTo="Server Rack, Tower Server"></pre>
 +
 +
== Limitations ==
 +
Replacing wall furniture is currently not supported. Note that the game will be able to destroy tables if you're replacing something on a table with something that is not on a table, e.g. small server and server rack, but not the other way around, i.e. the game won't build new tables automatically, so you should be careful in differentiating between "UpgradeFrom" and "UpgradeTo", as these will not always be the same.
 +
 
==== Furniture ====
 
==== Furniture ====
 
This component will always be present in a furniture. Common variables to edit would be:
 
This component will always be present in a furniture. Common variables to edit would be:

Navigation menu