@adatechnology/game-floorplan 0.6.1 → 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.
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. */
@@ -2420,6 +2420,8 @@ var GameFloorplan = (() => {
2420
2420
  [DEFERRED_QUEUE_ID.DESTRUCTION_PREFIT]: { priority: 40, phase: "idle", minEveryFrames: 30 }
2421
2421
  };
2422
2422
  var MUST_DRAIN_QUEUE_IDS = /* @__PURE__ */ new Set([DEFERRED_QUEUE_ID.DESTRUCTION_EVENTS, DEFERRED_QUEUE_ID.BREACH_CUT]);
2423
+ var BODY_FOAM_SURFACES = ["hands", "arms", "torso", "hair", "mouth"];
2424
+ var WASH_SURFACES = [...BODY_FOAM_SURFACES, "brush"];
2423
2425
  var WARNED_KEY = /* @__PURE__ */ Symbol.for("@adatechnology/game-contracts.warned");
2424
2426
  var warnedKeys = () => {
2425
2427
  const holder = globalThis;