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

InsertAction

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

class

InsertAction

history.js:149
class MMO.core.history.InsertAction extends MMO.core.history.Action
Espace de noms
MMO.core.history
Étend
Action

Index

constructor(target, api, doFn, undoFn, data)
execute() asyncCreate the entity, then run the local action with the id the server assigned it.
undo() asyncDelete the entity that was created, then roll the local action back.

Méthodes3

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

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

execute()

asynchistory.js:161

Create the entity, then run the local action with the id the server assigned it.

async execute()
retournePromise<boolean>false when the action had already run
lèveserver's error when it refused the insert

undo()

asynchistory.js:178

Delete the entity that was created, then roll the local action back.

async undo()
retournePromise<boolean>false when the action was not in effect
lèveserver's error when it refused the delete