phaser4-rex-plugins
Version:
22 lines (17 loc) • 426 B
JavaScript
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;