Creates a new instance of the game reset.
The currencies to reset.
Optionalextender: GameReset | GameReset[]The extender for the game reset.
OptionalonReset: ((resetContext: GameReset) => void)Function to run during reset.
Optionalcondition: boolean | ((resetContext: GameReset) => boolean)A condition that must be met for the reset to occur.
OptionalconditionA condition that must be met for the reset to occur. Can be a function or a boolean / getter.
ReadonlycurrenciesThe currencies to reset.
ReadonlyextenderThe extender for the game reset.
OptionalonFunction 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.
Staticfrom
Represents a game reset.