import{_ as e,c as t,o as a,a as r}from"./app.54d5a277.js";const g='{"title":"Module: game/persistence","description":"","frontmatter":{},"headers":[{"level":2,"title":"Type aliases","slug":"type-aliases"},{"level":3,"title":"Persistent","slug":"persistent"},{"level":3,"title":"PersistentRef","slug":"persistentref"},{"level":3,"title":"State","slug":"state"},{"level":2,"title":"Variables","slug":"variables"},{"level":3,"title":"DefaultValue","slug":"defaultvalue"},{"level":3,"title":"PersistentState","slug":"persistentstate"},{"level":2,"title":"Functions","slug":"functions"},{"level":3,"title":"makePersistent","slug":"makepersistent"},{"level":3,"title":"persistent","slug":"persistent-1"}],"relativePath":"api/modules/game/persistence.md"}',s={},d=r('

Module: game/persistence

Type aliases

Persistent

\u01AC Persistent<T>: Object

Type parameters

NameType
Textends State = State

Type declaration

NameType
[DefaultValue]T
[PersistentState]Ref<T>

Defined in

profectus/src/game/persistence.ts:23


PersistentRef

\u01AC PersistentRef<T>: Ref<T> & Persistent<T>

Type parameters

NameType
Textends State = State

Defined in

profectus/src/game/persistence.ts:27


State

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

Defined in

profectus/src/game/persistence.ts:15

Variables

DefaultValue

\u2022 Const DefaultValue: typeof DefaultValue

Defined in

profectus/src/game/persistence.ts:9


PersistentState

\u2022 Const PersistentState: typeof PersistentState

Defined in

profectus/src/game/persistence.ts:8

Functions

makePersistent

\u25B8 makePersistent<T>(obj, defaultValue): asserts obj is Persistent<T>

Type parameters

NameType
Textends State

Parameters

NameType
objunknown
defaultValueT

Returns

asserts obj is Persistent<T>

Defined in

profectus/src/game/persistence.ts:39


persistent

\u25B8 persistent<T>(defaultValue): PersistentRef<T>

Type parameters

NameType
Textends State

Parameters

NameType
defaultValueT | Ref<T>

Returns

PersistentRef<T>

Defined in

profectus/src/game/persistence.ts:29

',54),n=[d];function i(l,c,o,h,p,f){return a(),t("div",null,n)}var b=e(s,[["render",i]]);export{g as __pageData,b as default};