@adatechnology/game-floorplan-structure 1.1.1 → 1.2.0
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 +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.global.js +1 -1
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,6 +12,8 @@ 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
|
+
A free-standing wall: `buildStructure(plan, { roof: false })` leaves the roof out, so a plan with one exterior wall stands as a house wall does (on the strip footing, with the bond beam on it). `wallPiece` of `game-floorplan-three` builds and draws such a wall; every wall of a scene or a game is made that way.
|
|
16
|
+
|
|
15
17
|
Tall buildings: `buildTower()` builds a frame with continuous columns, a concrete core with stairs and elevator shafts, a glass curtain wall, a flat
|
|
16
18
|
roof with its membrane and the mechanical floor (`addCore`, `addCurtainWall`, `addFlatRoof`, `addMechanicalFloor` add each one to any frame spec).
|
|
17
19
|
Wind: `buildTower({ wind: { speed, terrain }, damper: true })` sizes the tower for the wind and adds a tuned mass damper (`addTunedMassDamper`, `DAMPER_DEFAULTS`)
|
package/dist/index.d.ts
CHANGED
|
@@ -326,6 +326,8 @@ interface StructureOptions {
|
|
|
326
326
|
/** Gable roofs as rafters of each side and a ridge beam (a side falls with the wall it rests on) instead of whole trusses. Default: when the detail is not `coarse`. */
|
|
327
327
|
rafterRoof?: boolean;
|
|
328
328
|
wallDetail?: WallDetail;
|
|
329
|
+
/** `false`: no roof (a free-standing wall, a garden wall). Default `true`. */
|
|
330
|
+
roof?: boolean;
|
|
329
331
|
}
|
|
330
332
|
/** What a construction builder and the tank get to see: the generated plan, its seed and the template. */
|
|
331
333
|
interface PlanContext {
|
package/dist/index.global.js
CHANGED
|
@@ -1320,7 +1320,7 @@ var GameFloorplanStructure = (() => {
|
|
|
1320
1320
|
addPorchRoofs(context);
|
|
1321
1321
|
addExteriorSteps(context);
|
|
1322
1322
|
addStairs(context);
|
|
1323
|
-
addRoof(context);
|
|
1323
|
+
if (options.roof !== false) addRoof(context);
|
|
1324
1324
|
if (refined) addDoorLintels(context);
|
|
1325
1325
|
addWaterTank(context);
|
|
1326
1326
|
addChimney(context);
|