Skip to content

Profectus / features/reset / Reset

Interface: Reset ​

An object that represents a reset mechanic, which resets progress back to its initial state.

Properties ​

onReset? ​

optional onReset: VoidFunction

A function that is called when the reset is performed.

Defined in ​

profectus/src/features/reset.ts:35


reset ​

reset: VoidFunction

Trigger the reset.

Defined in ​

profectus/src/features/reset.ts:37


thingsToReset ​

thingsToReset: MaybeRef<unknown[]>

List of things to reset. Can include objects which will be recursed over for persistent values.

Defined in ​

profectus/src/features/reset.ts:33


type ​

type: typeof ResetType

A symbol that helps identify features of the same type.

Defined in ​

profectus/src/features/reset.ts:39