UIAction
MMO.core.history · 1 symbol · generated 30 Sep 2026
UIAction
history.js:59This action is used to encapsulate Update/Delete/Insert action and do something when the action has been executed or undoed.
- Namespace
MMO.core.history
Index
| constructor(action, thenFn, catchFn, args) | ||
| execute() | Run the wrapped action, push it on the history, then report the outcome to the ui. | |
| undo() | Roll the wrapped action back, then report the outcome to the ui. |
Methods3
constructor(action, thenFn, catchFn, args)
history.js:60| action | ||
| thenFn | ||
| catchFn | ||
| ...args |
execute()
history.js:71Run the wrapped action, push it on the history, then report the outcome to the ui.
| returns | Promise<*> | whatever the then callback returns |
undo()
history.js:88Roll the wrapped action back, then report the outcome to the ui.
| returns | Promise<*> | whatever the then callback returns |