PurpleKingdomGames / indigo

An FP game engine for Scala.
https://indigoengine.io/
MIT License
630 stars 58 forks source link

SUF.mapLayers is now awkward #737

Open davesmith00000 opened 4 months ago

davesmith00000 commented 4 months ago

mapLayers was introduce to SceneUpdateFragment so that you can ...map over the layers... and modify common attributes.

With the recent changes, you are now mapping over LayerEntrys and the Layer ADT, which is far less convenient.

This is probably a more subtle problem than it seems, for instance if you make a mapContentLayers method, should it map over top level content layers or nested ones too?