Show navigation
Nod-Krai's kits
Nod-Krai's structures are not Mondstadt's or Inazuma's, so each of its two kits is a generator of its own, built over the engine's shared architecture parts rather than over any region's kit. Both live in the world package, beside the region's data, since the engine knows no place; they take their numbers as options, so the region's fitted values are supplied as data.
How it works
flowchart TD OPT[Dieselpunk options: boxes, pipe runs, smokestacks] --> DK[createDieselpunkGeometry] DK --> BX[createBoxesGeometry: sheds, plates, cranes] DK --> PW[createPipeworkGeometry: one cylinder per run] DK --> SS[createLatheStackGeometry per smokestack, moved to its foot] BX --> MG[mergeGeometryParts] PW --> MG SS --> MG MG --> DG[One indexed geometry for one material] SC[Stone circle options: count, radius, stone size] --> SCK[createStoneCircleGeometry] SCK --> ST[One box per stone, turned across the radius] ST --> MG2[mergeGeometryParts]
- The dieselpunk kit merges three kinds of part.
createDieselpunkGeometrytakes a structure's boxes, whichcreateBoxesGeometrybuilds into sheds, plates and cranes, its pipe runs and its smokestacks. Each smokestack is a stack of sections fromcreateLatheStackGeometry, moved to its foot. Every part is indexed so thatmergeGeometryPartscan join them into one geometry for one material; a faceted stack is not indexed and would drop out of the merge, so the kit builds them round. - Pipework is a cylinder per run.
createPipeworkGeometrystands one cylinder of the given radius between each run's two ends. Each cylinder is turned from the vertical onto its run and moved to the run's midpoint, so a run may point in any direction. - The Frostmoon kit stands a ring of stones.
createStoneCircleGeometryplaces each stone at an even angle about the origin, its height standing on the ground and its thickness lying across the radius, so every stone faces the ring's centre.
Key files
| File | Role |
|---|---|
packages/genshin-world/src/services/nod-krai/createDieselpunkGeometry.ts | The dieselpunk structure, merged from its boxes, pipes and stacks |
packages/genshin-world/src/services/nod-krai/createPipeworkGeometry.ts | Pipework as one cylinder per run |
packages/genshin-world/src/services/nod-krai/createStoneCircleGeometry.ts | The Frostmoon Scions' ring of standing stones |
packages/genshin-world/src/models/nod-krai/DieselpunkOptions.ts | The dieselpunk structure's options |
packages/genshin-world/src/data/regions/nod-krai.json | Nasha Town's dieselpunk works, at a provisional place |
Scroll to top