Skip to content

five-on-it / packages/missions/src/runtime / ItemEventFacts

Interface: ItemEventFacts ​

Defined in: packages/missions/src/runtime.ts:355

What a player did with items since the last step.

Properties ​

container? ​

optional container?: string

Defined in: packages/missions/src/runtime.ts:368

The key of the mission container it happened at, if it was one.


count? ​

optional count?: number

Defined in: packages/missions/src/runtime.ts:373


door? ​

optional door?: number

Defined in: packages/missions/src/runtime.ts:370

The door's index in the level, for the door events.


item? ​

optional item?: string

Defined in: packages/missions/src/runtime.ts:366

The item's id, for the item events.


kind ​

kind: "opened" | "dropped" | "picked" | "given" | "bought" | "handed" | "doorOpened" | "doorClosed"

Defined in: packages/missions/src/runtime.ts:363

Picked up (off the ground or out of a container), dropped, given (into a container) or bought (at a shop) an item; handed items over to a person (a handOver); opened a container; opened or shut a door.


player ​

player: number

Defined in: packages/missions/src/runtime.ts:357

The player's client id.


to? ​

optional to?: string

Defined in: packages/missions/src/runtime.ts:372

The key of the mission actor items were handed over to, and how many (handed).