@adatechnology/game-interactables 0.4.0 → 0.5.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
@@ -566,9 +566,11 @@ interface Interactable {
566
566
  verb: string;
567
567
  /** Localized thing the verb applies to, e.g. "the fridge" / "a geladeira" (falls back to the object type name). Named `noun` because `object` is the owning object's id. */
568
568
  noun: string;
569
- /** False when the interaction cannot be used right now (see `reason`). `world.target` skips these unless `includeUnavailable`. */
570
569
  /** Hands the thing taken needs (an item inside a piece of furniture: 1, the other hand stays free), as a destruction part taken by hand. Only on `take` of a contained item. */
571
570
  hands?: CarryHands;
571
+ /** The catalogue id of the item a `take` of a contained stack hands over (`jeans`), for the host to put it in the hand. Only on `take` of a contained item. */
572
+ itemType?: string;
573
+ /** False when the interaction cannot be used right now (see `reason`). `world.target` skips these unless `includeUnavailable`. */
572
574
  available: boolean;
573
575
  /** Locale key explaining why it is unavailable (`requires_open`, `no_power`, `locked`, `already_lit`, `needs_ignition`, `turn_on_first`); `world.t(reason)` is the text. */
574
576
  reason?: string;
@@ -1268,6 +1268,7 @@ var GameInteractables = (() => {
1268
1268
  verb,
1269
1269
  noun,
1270
1270
  hands: 1,
1271
+ itemType: stack.type,
1271
1272
  available: true,
1272
1273
  act: (actor) => takeAt(o.id, c.id, slot, actor ?? DEFAULT_ACTOR)
1273
1274
  };