In-game tools · interface
UndoStack
Explained in In-game tools.
interface UndoStackimport type { UndoStack } from '@driftengine/tools';Methods
push
push(command: Command): void| Parameter | Type | Description |
|---|---|---|
command | Command |
undo
undo(): booleanredo
redo(): booleancanUndo
canUndo(): booleancanRedo
canRedo(): booleanundoLabel
undoLabel(): string | nullredoLabel
redoLabel(): string | nullclear
clear(): void