five-on-it / packages/missions/src/runtime / ItemEventFacts
Interface: ItemEventFacts
Defined in: packages/missions/src/runtime.ts:367
What a player did with items since the last step.
Properties
container?
optionalcontainer?:string
Defined in: packages/missions/src/runtime.ts:380
The key of the mission container it happened at, if it was one.
count?
optionalcount?:number
Defined in: packages/missions/src/runtime.ts:385
door?
optionaldoor?:number
Defined in: packages/missions/src/runtime.ts:382
The door's index in the level, for the door events.
item?
optionalitem?:string
Defined in: packages/missions/src/runtime.ts:378
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:375
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:369
The player's client id.
to?
optionalto?:string
Defined in: packages/missions/src/runtime.ts:384
The key of the mission actor items were handed over to, and how many (handed).