I realized that external tilesets are loaded for each map separately and there is no way to cache them since in your implementation tilesets contain information about first gid. I propose changing Tileset references in ExternalTileset to ITiIeset and make ExternalTileset not propagate the FirstGid property but instead offset the gid in this[int gid].
Also will fork this repo and apply the second change I mentioned (without a PR) because I need this feature for GlobalGameJam which is starting "soon".
I realized that external tilesets are loaded for each map separately and there is no way to cache them since in your implementation tilesets contain information about first gid. I propose changing
Tilesetreferences in ExternalTileset toITiIesetand makeExternalTilesetnot propagate theFirstGidproperty but instead offset the gid inthis[int gid].Also will fork this repo and apply the second change I mentioned (without a PR) because I need this feature for GlobalGameJam which is starting "soon".