decline-cookies / anvil-unity-dots

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

Allow systems to be ordered against TaskDriverSystems #187

Closed mbaker3 closed 1 year ago

mbaker3 commented 1 year ago

Systems and task drivers could not be ordered on other task drivers. This is because TaskDriverSystem<T> was marked internal. This PR makes TaskDriverSystem<T> public.

Note: The changes are the bare minimum required to compile again after making the types public. @jkeon feel free to suggest visibility changes of other members that should be changed. If it's a larger effort I can create an issue for it.

What is the current behaviour?

There is no way to order a system or TaskDriverSystem on another TaskDriverSystem.

What is the new behaviour?

TaskDriverSystems may be used to order against. Ex: UpdateBefore(typeof(TaskDriverSystem<MyTaskDriver>))

What issues does this resolve?

What PRs does this depend on?

Does this introduce a breaking change?