Creates a new instance of the game reset.
The currencies to reset.
Optional
extender: GameReset | GameReset[]The extender for the game reset.
Optional
onReset: ((resetContext: GameReset) => void)Function to run during reset.
Optional
condition: boolean | ((resetContext: GameReset) => boolean)A condition that must be met for the reset to occur.
Optional
conditionA condition that must be met for the reset to occur. Can be a function or a boolean / getter.
Readonly
currenciesThe currencies to reset.
Readonly
extenderThe extender for the game reset.
Optional
onFunction to run after reset is called but BEFORE the currencies are reset
The reset context that the reset is called in.
Resets the extenders (if any), then runs onReset and resets the currencies and upgrades.
Whether to force the reset. Defaults to false
.
Whether to force the reset of the extenders. Defaults to true
.
The set of cached symbols to prevent infinite loops.
Static
from
Represents a game reset.