Skip to content
On this page

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


State

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

Defined in

profectus/src/game/persistence.ts:20

Variables

DefaultValue

Const DefaultValue: typeof DefaultValue

Defined in

profectus/src/game/persistence.ts:12


Deleted

Const Deleted: typeof Deleted

Defined in

profectus/src/game/persistence.ts:14


PersistentState

Const PersistentState: typeof PersistentState

Defined in

profectus/src/game/persistence.ts:11


StackTrace

Const StackTrace: typeof StackTrace

Defined in

profectus/src/game/persistence.ts:13

Functions

deletePersistent

deletePersistent(persistent): void

Parameters

NameType
persistentPersistent<State>

Returns

void


persistent

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

Type parameters

NameType
Textends State

Parameters

NameType
defaultValueT | Ref<T>

Returns

Persistent<T>