import EventEmitter from '../utils/eventEmitter'; import Enviroment from './enviroment'; import Map from './map'; export default class World extends EventEmitter { constructor(experience) { super(); this.experience = experience; this.scene = this.experience.scene; this.enviroment = new Enviroment(this.experience); this.map = new Map(this.experience); } update() { this.enviroment.update(); } destroy() { this.enviroment.destroy(); this.map.destroy(); } }