src/views/screen/components/screen-map-three/experience/world/world.js
New file @@ -0,0 +1,21 @@ 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(); } }