Index

UpdateAction

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

class

UpdateAction

history.js:104
class MMO.core.history.UpdateAction extends MMO.core.history.Action
Namespace
MMO.core.history
Extends
Action

Index

constructor(target, api, doFn, undoFn, data)
execute() asyncSave the entity, then run the local action with whatever the server sent back.
undo() asyncSave the entity's previous state back, then roll the local action back.

Methods3

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

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

execute()

asynchistory.js:116

Save the entity, then run the local action with whatever the server sent back.

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

undo()

asynchistory.js:133

Save the entity's previous state back, then roll the local action back.

async undo()
returnsPromise<boolean>false when the action was not in effect
throwsserver's error when it refused the change