Buildings Def Mod Extensions - Vanilla-Expanded/VanillaExpandedFramework GitHub Wiki
The Buildings module adds several def mod extensions:
- Facility Extension: At the moment, just allows you to tweak the way some linkables link to each other
- Lootable Building Details: Used by LootableBuilding
- Recipe Inheritance: Allows a building to inherit recipes from another building
- Show Blueprint Extension: showd a building's blueprint when it is in ghost (placement) mode
- Studiable Building Details: Used by StudiableBuilding
- Swappable Building Details: Used by SwappableBuilding
How do I use this code?
Def Extensions are added to the <modExtensions>
tag of the ThingDef of the building you want to add them to.
If you aren't sure if the def ALREADY has an extension (for example, if you think another mod will add their own), always use XPATH (xml patching) to add an extension, as there is already a PatchOperationAddModExtension to ensure they don't collide.