async buildLevel(data, extra = {}) {
        const engine = this._engine;
        this.log('loading level');
        engine.stopDoomLoop();
        await engine.buildLevel(data, extra);
        this.log('data successfuly loaded and parsed');
        engine.startDoomLoop();
        this.log('doom loop started');
        this.enterLevel();
    }
/**
     * loads a level and starts the doomloop.
     * @param data {object} level name
     * @param extra {object} extra json data to be loaded as tilesets and blueprints
     * @return {Promise<void>}
     */
loads a level and starts the doomloop.
@param data {object} level name
@param extra {object} extra json data to be loaded as tilesets and blueprints
@return {Promise}
loads a level and starts the doomloop . @param data { object } level name @param extra { object } extra json data to be loaded as tilesets and blueprints @return { Promise }
async buildLevel(data, extra = {}) {
        const engine = this._engine;
        this.log('loading level');
        engine.stopDoomLoop();
        await engine.buildLevel(data, extra);
        this.log('data successfuly loaded and parsed');
        engine.startDoomLoop();
        this.log('doom loop started');
        this.enterLevel();
    }
async buildLevel ( data , extra = { } ) { const engine = this . _engine ; this . log ( 'loading level' ) ; engine . stopDoomLoop ( ) ; await engine . buildLevel ( data , extra ) ; this . log ( 'data successfuly loaded and parsed' ) ; engine . startDoomLoop ( ) ; this . log ( 'doom loop started' ) ; this . enterLevel ( ) ; }
loads a level and starts the doomloop.
loads a level and starts the doomloop .