Actions
Overview
'myaction'
'myaction something'
'myaction one two three'class MyAction extends Monogatari.Action {
static matchString ([action]) {
return action === 'myaction';
}
constructor ([myaction, ...args]) {
super ();
}
apply () {
// Do something
}
revert () {
// Do something
}
}
MyAction.id = 'MyAction';Last updated
Was this helpful?