prime31 / Nez

Nez is a free 2D focused framework that works with MonoGame and FNA
MIT License
1.76k stars 357 forks source link

Allow LoadTmxMap to use NezContentManager for loading textures. #803

Closed adtennant closed 1 month ago

adtennant commented 1 month ago

I use this in my game because I do some preprocessing of the TMX maps and textures upfront in the content pipeline

However it feels like it's a general useful addition since at the very least it optimises the case where you have several maps/tiles loaded which share a tileset image as the ContentManager will only load it once.

I've opted to make this optional outside of NezContentManager.LoadTiledMap so as to avoid introducing a breaking change.