Index

UIAction

MMO.core.history · 1 symbol · generated 30 Sep 2026

class

UIAction

history.js:59

This action is used to encapsulate Update/Delete/Insert action and do something when the action has been executed or undoed.

class MMO.core.history.UIAction
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
constructor(action, thenFn, catchFn, ...args)
action
thenFn
catchFn
...args

execute()

history.js:71

Run the wrapped action, push it on the history, then report the outcome to the ui.

execute()
returnsPromise<*>whatever the then callback returns

undo()

history.js:88

Roll the wrapped action back, then report the outcome to the ui.

undo()
returnsPromise<*>whatever the then callback returns