@adatechnology/game-interactables 0.4.0 → 0.5.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/dist/index.d.ts +3 -1
- package/dist/index.global.js +1 -0
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
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;
|