agentVerse / ui /src /phaser3-rex-plugins /plugins /eventpromise-plugin.js
AgentVerse's picture
first commit
670a607
raw
history blame
405 Bytes
import { WaitEvent, WaitComplete, Delay } from './eventpromise.js'
class EventPromisePlugin extends Phaser.Plugins.BasePlugin {
constructor(pluginManager) {
super(pluginManager);
}
}
var methods = {
waitEvent: WaitEvent,
waitComplete: WaitComplete,
delay: Delay,
}
// mixin
Object.assign(
EventPromisePlugin.prototype,
methods
);
export default EventPromisePlugin;