phaser4-rex-plugins
Version:
24 lines (18 loc) • 591 B
JavaScript
import JSONEventSheets from './jsoneventsheets.js';
import CommandExecutor from './commandexecutor.js';
class JSONEventSheetsPlugin extends Phaser.Plugins.BasePlugin {
constructor(pluginManager) {
super(pluginManager);
}
start() {
var eventEmitter = this.game.events;
eventEmitter.on('destroy', this.destroy, this);
}
add(config) {
return new JSONEventSheets(config);
}
addCommandExecutor(scene, config) {
return new CommandExecutor(scene, config);
}
}
export default JSONEventSheetsPlugin;