Skip to content

five-on-it / packages/missions/src/phone / PhoneState

Interface: PhoneState ​

Defined in: packages/missions/src/phone.ts:139

One player's phone: its entries, the conversation and the screen open, the waypoint.

Properties ​

apps ​

apps: object[]

Defined in: packages/missions/src/phone.ts:156

id ​

id: string

name ​

name: string

run ​

run: number


calls ​

calls: object[]

Defined in: packages/missions/src/phone.ts:157

contact ​

contact: string

dir ​

dir: CallDir

n ​

n: number

name ​

name: string


camera ​

camera: object

Defined in: packages/missions/src/phone.ts:162

The camera: photos taken, and what the last one says.

note? ​

optional note?: PhotoNote

shots ​

shots: number


contacts ​

contacts: object[]

Defined in: packages/missions/src/phone.ts:140

dialogue? ​

optional dialogue?: object

dialogue.id ​

id: string

dialogue.run ​

run: number

id ​

id: string

name ​

name: string


messages ​

messages: object[]

Defined in: packages/missions/src/phone.ts:141

choices ​

choices: readonly Reply[]

from ​

from: string

id? ​

optional id?: string

The mission's id for it (message:<id>.read).

n ​

n: number

name ​

name: string

note? ​

optional note?: string

read ​

read: boolean

replied? ​

optional replied?: string

run ​

run: number

starts? ​

optional starts?: string

The mission it offers (a mission that starts on a message), until it is read (then taken: takenOffers).

text ​

text: string


next ​

next: number

Defined in: packages/missions/src/phone.ts:164

The number the next message or call takes.


screen? ​

optional screen?: Screen

Defined in: packages/missions/src/phone.ts:159


talk? ​

optional talk?: Talk

Defined in: packages/missions/src/phone.ts:158


waypoint? ​

optional waypoint?: object

Defined in: packages/missions/src/phone.ts:160

label? ​

optional label?: string

x ​

x: number

z ​

z: number