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

UIAction

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

class

UIAction

history.js:59

This action is used to encapsulate Update/Delete/Insert action and do something when the action has been executed or undoed.

class MMO.core.history.UIAction
Espace de noms
MMO.core.history

Index

constructor(action, thenFn, catchFn, args)
execute()Run the wrapped action, push it on the history, then report the outcome to the ui.
undo()Roll the wrapped action back, then report the outcome to the ui.

Méthodes3

constructor(action, thenFn, catchFn, args)

history.js:60
constructor(action, thenFn, catchFn, ...args)
action
thenFn
catchFn
...args

execute()

history.js:71

Run the wrapped action, push it on the history, then report the outcome to the ui.

execute()
retournePromise<*>whatever the then callback returns

undo()

history.js:88

Roll the wrapped action back, then report the outcome to the ui.

undo()
retournePromise<*>whatever the then callback returns