Module: game/persistence

Type aliases

Persistent

Ƭ Persistent<T>: Ref<T> & { [DefaultValue]: T ; [Deleted]: boolean ; [PersistentState]: Ref<T> ; [StackTrace]: string }

Type parameters

NameType
Textends State = State

Defined in

profectus/src/game/persistence.ts:25


State

Ƭ State: string | number | boolean | DecimalSource | { [key: string]: State; } | { [key: number]: State; }

Defined in

profectus/src/game/persistence.ts:17

Variables

DefaultValue

Const DefaultValue: typeof DefaultValue

Defined in

profectus/src/game/persistence.ts:9


Deleted

Const Deleted: typeof Deleted

Defined in

profectus/src/game/persistence.ts:11


PersistentState

Const PersistentState: typeof PersistentState

Defined in

profectus/src/game/persistence.ts:8


StackTrace

Const StackTrace: typeof StackTrace

Defined in

profectus/src/game/persistence.ts:10

Functions

deletePersistent

deletePersistent(persistent): void

Parameters

NameType
persistentPersistent<State>

Returns

void

Defined in

profectus/src/game/persistence.ts:65


persistent

persistent<T>(defaultValue): Persistent<T>

Type parameters

NameType
Textends State

Parameters

NameType
defaultValueT | Ref<T>

Returns

Persistent<T>

Defined in

profectus/src/game/persistence.ts:42