eo-typewriterjs / TCheckpoint
Type Alias: TCheckpoint
ts
type TCheckpoint = object;Defined in: core/player/types/checkpoint.type.ts:13
Description
A snapshot of the typewriter state at a specific point in the compiled event list. Used for fast random-access seeking without replaying from the beginning every time.
eventIndex is the index of the first event that has NOT yet been applied - i.e. reducing from this state starting at eventIndex will reproduce any later time.
Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
time | readonly | number | core/player/types/checkpoint.type.ts:14 |
eventIndex | readonly | number | core/player/types/checkpoint.type.ts:15 |
state | readonly | TTypewriterState | core/player/types/checkpoint.type.ts:16 |