@adatechnology/game-floorplan 0.6.2 → 0.7.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +4 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -100,6 +100,10 @@ interface FurnitureDef {
100
100
  * plain body is moulded plastic. The drawing's metal, wood, glass and cloth keep their own.
101
101
  */
102
102
  material?: string;
103
+ /** What the whole piece weighs, kg (a washing machine 70, not the weight of its drawn shell): its parts share it by their own weight. Left out, the parts weigh what their material and size say. */
104
+ massKg?: number;
105
+ /** What a drawn part is made of, by its id (`<key>_<n>` as the drawing records it), where the drawing's paint says otherwise: a TV's screen is the dark `metal_0` pane and is glass. */
106
+ partMaterials?: Readonly<Record<string, string>>;
103
107
  /** Hangs a wall cabinet over the counter (y 1.55 to 2.15 m): it blocks a window unless the fill dropped the cabinet. */
104
108
  overhead?: boolean;
105
109
  /** Depth in front of the item that its doors or drawers sweep, with the reach to use them (metres): the fill keeps it clear of walls and of other items, even for a low item. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adatechnology/game-floorplan",
3
- "version": "0.6.2",
3
+ "version": "0.7.0",
4
4
  "license": "MIT",
5
5
  "description": "Procedural floor plans and lots engine: rooms, walls, doors, windows, recorded slots, seeded item fill, placement rules, perimeter, gates, paths, ground cover, multi-floor stairs and a colour-harmony palette. Knows nothing about any particular furniture or game.",
6
6
  "keywords": [