Skip to content

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

Interface: MissionFacts ​

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

What the host knows on one step.

Properties ​

actors ​

actors: ReadonlyMap<string, ActorFacts>

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

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:555

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:553

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:557

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:539

Every mission's container the host has spawned, by the actor's key.


deviceEvents? ​

optional deviceEvents?: readonly DeviceEventFacts[]

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

The devices (and vehicle actors) worked since the last step, in order.


doors? ​

optional doors?: ReadonlyMap<string, DoorFacts>

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

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:535

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:543

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:565

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:545

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:547

Every NPC actor the host has spawned (a person, a guard, a civilian), by the actor's key.


objects? ​

optional objects?: ReadonlyMap<string, ObjectFacts>

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

Every device the host has put down for an object actor, by the actor's key.


phone? ​

optional phone?: readonly PhoneInputFacts[]

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

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:563

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


pickups? ​

optional pickups?: ReadonlyMap<string, PickupFacts>

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

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:531

Every connected player.


props? ​

optional props?: ReadonlyMap<string, PropFacts>

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

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:549

Every mission's terminal the host has spawned, by the actor's key.


tick ​

tick: number

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

The simulation's tick.


weather? ​

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

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

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