CastleTown.component
This package holds more than this page lists. See all of its files in its world.
README.md
CastleTown
Drops a whole walkable late-16th-century Japanese castle town into the world around the entity it sits on (the town's centre is the entity's position). Add it to any plain entity; it needs no sibling components. Every field is synced: size (200 to 720 m), districts (1 to 5), density (sparse to packed), seed, keepTiers (3 to 5), look (realistic, weathered, festival, toon, ink), spawnAtGate and quality. The town is built by TownBuilder from the fields alone on every machine, so every player walks the same streets. Changing size, districts, density, seed or keepTiers rebuilds it after a short settle; changing look restyles it in place through Look, and quality changes draw distances. While the town builds in play, players stand on invisible landings under each PlayerSpawn; a stalled or interrupted build is detected and restarted, and partial towns left by a reload are swept. Methods: rebuild(), town() (plan, ground, placed, stats, or nil while building), plan(), stats(), stop(name) and status(). Pair it with one TownAtmosphere for time, weather and sound.