Profectus / game/persistence / noPersist
Function: noPersist() ​
Call Signature ​
noPersist<
T,S>(persistent):T[typeofNonPersistent]
Unwraps the non-persistent ref inside of persistent refs, to be passed to other features without duplicating values in the save data object.
Type Parameters ​
• T extends Persistent<S>
• S extends State
Parameters ​
persistent ​
T
The persistent ref to unwrap, or an object to ignore all persistent refs within
Returns ​
T[typeof NonPersistent]
Defined in ​
profectus/src/game/persistence.ts:203
Call Signature ​
noPersist<
T>(persistent):T
Unwraps the non-persistent ref inside of persistent refs, to be passed to other features without duplicating values in the save data object.
Type Parameters ​
• T extends object
Parameters ​
persistent ​
T
The persistent ref to unwrap, or an object to ignore all persistent refs within
Returns ​
T