kits.module
README.md
kits
This module defines the contract for building kits used by city.building. It contains pure data and functions, making it safe for game runtime modules like cityGen.buildingDraw and cityGen.buildingStand to require. It specifies material slots and roles for kit pieces, provides utility functions for color packing and data literalization, and includes a comprehensive check function to validate a kit against the contract. The cityGen.kitBuild module, an edit-time tool, is responsible for building the kit data module that this module then reads.