aboutsummaryrefslogtreecommitdiff
path: root/features/settings/locationSettingHolder.js
blob: 14256d37d81acd420c621144d20208e53075a009 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class LocationSettingHolder {
    constructor() {
        this.data = [];
    }

    addLocationSetting(setting){
        this.data.push(setting)
    }

    getData(){
        return this.data
    }
}

if(!global.LocationSettingHolder){
    global.LocationSettingHolder = new LocationSettingHolder();
    
    register("gameUnload", ()=>{
        global.LocationSettingHolder = undefined
    })
}

export default global.LocationSettingHolder;