removeUnusedTileSets() {
        const ts = this._tilesets;
        this._tilesets = this
            ._sprites
            .filter(s => ts.indexOf(s.getTileSet()) >= 0)
            .map(s => s.getTileSet());
    }
/**
     * Remove all tilesets that are not currently used by sprites.
     * this operation is not really optimized, and should not be called frequently
     */
Remove all tilesets that are not currently used by sprites.
this operation is not really optimized, and should not be called frequently
Remove all tilesets that are not currently used by sprites . this operation is not really optimized and should not be called frequently
removeUnusedTileSets() {
        const ts = this._tilesets;
        this._tilesets = this
            ._sprites
            .filter(s => ts.indexOf(s.getTileSet()) >= 0)
            .map(s => s.getTileSet());
    }
removeUnusedTileSets ( ) { const ts = this . _tilesets ; this . _tilesets = this . _sprites . filter ( s => ts . indexOf ( s . getTileSet ( ) ) >= 0 ) . map ( s => s . getTileSet ( ) ) ; }
Remove all tilesets that are not currently used by sprites.
Remove all tilesets that are not currently used by sprites .