MMOframework
Pourquoi l'IA Playground Bibliothèques Documentation Rechercher Agence
FR EN
Index

DeleteAction

MMO.core.history · 1 symbole · générée le 27 Oct 2026

class

DeleteAction

history.js:194
class MMO.core.history.DeleteAction extends MMO.core.history.Action
Espace de noms
MMO.core.history
Étend
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.

Méthodes3

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()
retournePromise<boolean>false when the action had already run
lèveserver'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.
retournePromise<boolean>false when the action was not in effect
lèveserver's error when it refused the insert