DeleteAction
MMO.core.history · 1 symbol · generated 30 Sep 2026
DeleteAction
history.js:194- Namespace
MMO.core.history- Extends
- Action
Index
| constructor(target, api, doFn, undoFn, data) | ||
| execute() async | Delete the entity, then run the local action. | |
| undo() async | Re-create the entity that was deleted, then roll the local action back. |
Methods3
constructor(target, api, doFn, undoFn, data)
history.js:195| target | ||
| api | ||
| doFn | ||
| undoFn | ||
| data |
execute()
asynchistory.js:209Delete the entity, then run the local action.
| returns | Promise<boolean> | false when the action had already run |
| throws | server's error when it refused the delete |
undo()
asynchistory.js:227Re-create the entity that was deleted, 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 insert |