phaser4-rex-plugins
Version:
13 lines (10 loc) • 410 B
JavaScript
import ExpBar from './ExpBar.js';
import ObjectFactory from '../ObjectFactory.js';
import SetValue from '../../../plugins/utils/object/SetValue.js';
ObjectFactory.register('expBar', function (config) {
var gameObject = new ExpBar(this.scene, config);
this.scene.add.existing(gameObject);
return gameObject;
});
SetValue(window, 'RexPlugins.UI.ExpBar', ExpBar);
export default ExpBar;