UpdateAction
MMO.core.history · 1 symbol · generated 5 Oct 2026
UpdateAction
history.js:104- Namespace
MMO.core.history- Extends
- Action
Index
| constructor(target, api, doFn, undoFn, data) | ||
| execute() async | Save the entity, then run the local action with whatever the server sent back. | |
| undo() async | Save the entity's previous state back, then roll the local action back. |
Methods3
constructor(target, api, doFn, undoFn, data)
history.js:105| target | ||
| api | ||
| doFn | ||
| undoFn | ||
| data |
execute()
asynchistory.js:116Save the entity, then run the local action with whatever the server sent back.
| returns | Promise<boolean> | false when the action had already run |
| throws | server's error when it refused the change |
undo()
asynchistory.js:133Save the entity's previous state back, then roll the local action back.
| returns | Promise<boolean> | false when the action was not in effect |
| throws | server's error when it refused the change |