Index

DeleteAction

MMO.core.history · 1 symbol · generated 5 Oct 2026

class

DeleteAction

history.js:194
class MMO.core.history.DeleteAction extends MMO.core.history.Action
Namespace
MMO.core.history
Extends
Action

Index

constructor(target, api, doFn, undoFn, data)
execute() asyncDelete the entity, then run the local action.
undo() asyncRe-create the entity that was deleted, then roll the local action back.

Methods3

constructor(target, api, doFn, undoFn, data)

history.js:195
constructor(target, api, doFn, undoFn, data)
target
api
doFn
undoFn
data

execute()

asynchistory.js:209

Delete the entity, then run the local action.

async execute()
returnsPromise<boolean>false when the action had already run
throwsserver's error when it refused the delete

undo()

asynchistory.js:227

Re-create the entity that was deleted, then roll the local action back.

async undo()NOTE: the entity comes back with a NEW id; anything holding the old one is stale.
returnsPromise<boolean>false when the action was not in effect
throwsserver's error when it refused the insert