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