five-on-it / apps/level-editor/src/scripts/blocks/substation
apps/level-editor/src/scripts/blocks/substation
Marks a node of the editor scene as a substation: a box of transformers powering a district, the middle of its base on the ground at the node's origin, never scaled, turned with yaw only. Destroyed, the district within radius metres of it goes dark (its street lamps, its traffic lights, its cameras) for seconds. Nothing of it is placed as a mesh: the server spawns it as a device and the game draws it. The library's block:substation carries it: place instances of that mesh for npm run level:export to read.