Buildings Classes - Vanilla-Expanded/VanillaExpandedFramework GitHub Wiki

<- Back

The Buildings module of Vanilla Expanded Framework adds several classes inheriting from the base game Building class:

  • LootableBuilding: creates lootable buildings that use base game IOpenable interface, which automatically handles the gizmo, the workgivers, the jobdrivers, etc
  • LootableBuilding_Custom: creates lootable buildings that don't use base game IOpenable interface
  • StudiableBuilding: creates buildings that colonists can investigate and study
  • SwappableBuilding: creates buildings that can be swapped via code into another building

How do I use this code?

Classes can just be specified by placing it in the <thingClass> tag of the ThingDef:

<thingClass>VEF.Buildings.LootableBuilding</thingClass>
⚠️ **GitHub.com Fallback** ⚠️