five-on-it / packages/missions/src/runtime / MissionFacts
Interface: MissionFacts
Defined in: packages/missions/src/runtime.ts:464
What the host knows on one step.
Properties
actors
actors:
ReadonlyMap<string,ActorFacts>
Defined in: packages/missions/src/runtime.ts:470
Every mission vehicle the host has spawned, by the key of its spawn command.
alert?
optionalalert?:number
Defined in: packages/missions/src/runtime.ts:492
The compound's alert: the rank of the highest phase of the room's guards (0 when absent).
cameras?
optionalcameras?:ReadonlyMap<string,CameraFacts>
Defined in: packages/missions/src/runtime.ts:490
Every camera the host has bound to a camera actor, by the actor's key.
clock?
optionalclock?:number
Defined in: packages/missions/src/runtime.ts:494
The time of day by the room clock (minutes after midnight, with their fraction; noon when absent).
containers?
optionalcontainers?:ReadonlyMap<string,ContainerFacts>
Defined in: packages/missions/src/runtime.ts:476
Every mission's container the host has spawned, by the actor's key.
doors?
optionaldoors?:ReadonlyMap<string,DoorFacts>
Defined in: packages/missions/src/runtime.ts:478
Every door the host has bound to a mission's door actor, by the actor's key.
enemies?
optionalenemies?:ReadonlyMap<string, readonlyEnemyFacts[]>
Defined in: packages/missions/src/runtime.ts:472
Every member of every group the host has spawned (the fallen too), by the group's key, in spawn order.
garages?
optionalgarages?:ReadonlyMap<string,GarageFacts>
Defined in: packages/missions/src/runtime.ts:480
Every garage the host has bound to a mission's garage actor, by the actor's key.
hits?
optionalhits?: readonlyHitFacts[]
Defined in: packages/missions/src/runtime.ts:502
The hits players landed on the missions' actors since the last step, in order (a run credits its seats for them).
itemEvents?
optionalitemEvents?: readonlyItemEventFacts[]
Defined in: packages/missions/src/runtime.ts:482
What the players did with items since the last step, in order.
npcs?
optionalnpcs?:ReadonlyMap<string,NpcFacts>
Defined in: packages/missions/src/runtime.ts:484
Every NPC actor the host has spawned (a person, a guard, a civilian), by the actor's key.
phone?
optionalphone?: readonlyPhoneInputFacts[]
Defined in: packages/missions/src/runtime.ts:488
What the players asked of their phones (and of the contacts, terminals and keypads in the world) since the last step, in order.
photos?
optionalphotos?: readonlyPhotoFacts[]
Defined in: packages/missions/src/runtime.ts:500
The photographs the players took since the last step, in order.
pickups?
optionalpickups?:ReadonlyMap<string,PickupFacts>
Defined in: packages/missions/src/runtime.ts:474
Every mission's items on the ground the host has laid out, by the actor's key.
players
players: readonly
PlayerFacts[]
Defined in: packages/missions/src/runtime.ts:468
Every connected player.
props?
optionalprops?:ReadonlyMap<string,PropFacts>
Defined in: packages/missions/src/runtime.ts:498
Every light piece the host has bound to a prop actor, by the actor's key.
terminals?
optionalterminals?:ReadonlyMap<string,Point>
Defined in: packages/missions/src/runtime.ts:486
Every mission's terminal the host has spawned, by the actor's key.
tick
tick:
number
Defined in: packages/missions/src/runtime.ts:466
The simulation's tick.
weather?
optionalweather?:"clear"|"overcast"|"rain"|"storm"|"fog"|"snow"
Defined in: packages/missions/src/runtime.ts:496
The weather's kind now (clear when absent).