decline-cookies / anvil-unity-dots

Unity DOTS and ECS specific additions and extensions to Anvil
MIT License
4 stars 1 forks source link

EntityQueryDescriptionExtension - Add Concat method #280

Closed mbaker3 closed 11 months ago

mbaker3 commented 11 months ago

Add the ability to concatenate/merge two EntityQueryDesc instances.

What is the current behaviour?

The developer must manually merge the parameters of two EntityQueryDesc instances if they'd like to combine them into a new EntityQueryDesc

What is the new behaviour?

Calling myEntityQueryDesc.Concat(myOtherEntityQueryDesc) returns a new EntityQueryDesc instance that represents the two combined descriptions. EntityQueryOptions on the instance are OR merged.

What issues does this resolve?

What PRs does this depend on?

Does this introduce a breaking change?