Module: game/persistence
Type aliases
Persistent
Ƭ Persistent<T
>: Ref
<T
> & { [DefaultValue]
: T
; [Deleted]
: boolean
; [PersistentState]
: Ref
<T
> ; [StackTrace]
: string
}
Type parameters
Name | Type |
---|---|
T | extends 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
Name | Type |
---|---|
persistent | Persistent <State > |
Returns
void
Defined in
profectus/src/game/persistence.ts:68
persistent
▸ persistent<T
>(defaultValue
): Persistent
<T
>
Type parameters
Name | Type |
---|---|
T | extends State |
Parameters
Name | Type |
---|---|
defaultValue | T | Ref <T > |
Returns
Persistent
<T
>