{"size": 506, "ext": "js", "max_stars_repo_path": "client/Model/UI/WorldmapMenu.js", "max_stars_repo_name": "hephaistionn/AgeOfCivilization3", "max_stars_repo_stars_event_min_datetime": "2017-02-14T12:23:10.000Z", "max_stars_repo_stars_event_max_datetime": "2017-02-14T12:23:10.000Z", "max_issues_repo_path": "client/Model/UI/WorldmapMenu.js", "max_issues_repo_name": "hephaistionn/AgeOfCivilization3", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "client/Model/UI/WorldmapMenu.js", "max_forks_repo_name": "hephaistionn/AgeOfCivilization3", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.0833333333, "max_line_length": 60, "alphanum_fraction": 0.6027667984}
const ee = require('../../services/eventEmitter');
const stateManager = require('../../services/stateManager');

class WorldmapMenu {

    constructor(config) {
        this.constructMode = false;
        this.updated = false;
        this._id = 0;
    }

    goCity() {
        ee.emit('screen', 'ScreenWorldmap');
    }

    back() {
        const model = stateManager.loadCurrentCity();
        ee.emit('openScreen', 'ScreenCity', model);
    }

}

WorldmapMenu.ui = true;
module.exports = WorldmapMenu;