@adatechnology/game-floorplan-structure 1.0.5 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/dist/index.d.ts +679 -3
- package/dist/index.global.js +5808 -183
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +1444 -104
- package/dist/index.js.map +1 -1
- package/package.json +7 -10
package/README.md
CHANGED
|
@@ -12,4 +12,11 @@ plan.structure.parts // the parts that carry load, each with role, material, box
|
|
|
12
12
|
plan.structure.supports // what each part rests on, down to 'ground'
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
+
Tall buildings: `buildTower()` builds a frame with continuous columns, a concrete core with stairs and elevator shafts, a glass curtain wall, a flat
|
|
16
|
+
roof with its membrane and the mechanical floor (`addCore`, `addCurtainWall`, `addFlatRoof`, `addMechanicalFloor` add each one to any frame spec).
|
|
17
|
+
Wind: `buildTower({ wind: { speed, terrain }, damper: true })` sizes the tower for the wind and adds a tuned mass damper (`addTunedMassDamper`, `DAMPER_DEFAULTS`)
|
|
18
|
+
on the mechanical floor; both are off by default. The world needs `createDestruction({ wind: {} })`.
|
|
19
|
+
|
|
20
|
+
Skyscrapers: `buildSkyscraper({ storeys, height, bay, facade, ... }, preset)` turns a handful of numbers (`SKYSCRAPER_DEFAULTS`: 40 storeys, 3.6 m, 12 m bays, curtain wall, a plant floor every 20, a damper above 150 m, city wind, piles to the sand under soft clay) into the tower: columns and beams sized by the load, the core sized by the height (walls never thicker than a third of the storey, bars closer on the tall ones), a relay plant floor every N storeys (`mechanicalEvery`), a curtain wall or a punched masonry facade (`facade: 'punched'`, `addPunchedFacade`), and piles for the load and the soil (`pilesFor`, `PILE_DEFAULTS`). `skyscraperLayout` gives just the numbers, and `towerPlate` / `towerFloors` / `exteriorWindows` the room-level plan of the same layout, which `game-floorplan-commercial` (`office_tower`) and `game-floorplan-residential` (`residential_tower`) fill with rooms. Every number is an option of the layout or a field of the preset.
|
|
21
|
+
|
|
15
22
|
See `.claude/skills/game-floorplan-structure/SKILL.md` for the API and `MIGRATION.md` for the names the Visor de casas 3D used.
|