Skip to content

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? ​

optional alert?: 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? ​

optional cameras?: 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? ​

optional clock?: 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? ​

optional containers?: 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? ​

optional doors?: 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? ​

optional enemies?: ReadonlyMap<string, readonly EnemyFacts[]>

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? ​

optional garages?: 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? ​

optional hits?: readonly HitFacts[]

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? ​

optional itemEvents?: readonly ItemEventFacts[]

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

What the players did with items since the last step, in order.


npcs? ​

optional npcs?: 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? ​

optional phone?: readonly PhoneInputFacts[]

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? ​

optional photos?: readonly PhotoFacts[]

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

The photographs the players took since the last step, in order.


pickups? ​

optional pickups?: 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? ​

optional props?: 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? ​

optional terminals?: 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? ​

optional weather?: "clear" | "overcast" | "rain" | "storm" | "fog" | "snow"

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

The weather's kind now (clear when absent).