Buildings Comp Classes - Vanilla-Expanded/VanillaExpandedFramework GitHub Wiki
The Furniture module of the framework has several comp classes that can be added to any Building to provide special behaviours:
- Bouncing Arrow: Displays a bouncing arrow over the building
- Configurable Spawner: A slightly more configurable version of the base game spawner
- Custom Cause Hediff AoE: Roughly based off of CompCauseHediff_AoE, however it's changed to fit our needs, as well as making it possible to modify if further with subclasses
- Customizable Graphic: Allows the building graphic to be customizable via menu
- Extended Schedule: A more configurable version of base game's CompSchedule
- Jammed Airlock: Adds doors that need to be unjammed by colonists to be opened
- Mountable on Wall: Adds buildings that need to be over a wall, without them needing to be wall attachments like wall lights
- Random Building Graphic: Allows random building graphics, even for Graphic_Multi.
- Rock Spawner: Simple code for an auto-drill that just selects rocks from the biome it is in.
- Select Building Behind: Adds a command button (called gizmos in the code) to the Building that allows the player to deselect it and select another building that is in the same tile.
- Spawn Other Building When Powered: A comp class to detect whether this Building is powered (and flicked ON) and then spawn a different Building on top of it.
- Stats When Powered: A comp class to have a building change stats when powered
- Throw Mote: A comp class to make the building throw motes
They are all comp classes, so you just add them in XML in the <comps>
tag. Check any of the examples to see.