File size: 549 Bytes
670a607
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import DataManager from './data/buff/DataManager.js';
import Extend from './data/buff/Extend.js';

class DataManagerPlugin extends Phaser.Plugins.BasePlugin {

    constructor(pluginManager) {
        super(pluginManager);
    }

    start() {
        var eventEmitter = this.game.events;
        eventEmitter.on('destroy', this.destroy, this);
    }

    add(parent, eventEmitter) {
        return new DataManager(parent, eventEmitter);
    }

    extend(dataManager) {
        return Extend(dataManager);
    }
}

export default DataManagerPlugin;