decline-cookies / anvil-unity-dots

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

Allow EntityCommandBuffers to be required on Task Driver Jobs #261

Closed mbaker3 closed 1 year ago

mbaker3 commented 1 year ago

Task driver jobs can now "Require" an ECB for their job and fulfill off the jobData.

Tag Along

What is the current behaviour?

Developers must manually override the Schedule delegate to acquire and pass in an EntityCommandBuffer when desired in the job.

What is the new behaviour?

Developers may now use the same "Require"/"Fulfill" API that they do for all other job dependencies.

What issues does this resolve?

What PRs does this depend on?

Does this introduce a breaking change?

mbaker3 commented 1 year ago

We might want to support an ECB that isn't governed by a EntityCommandBufferSystem but we can add that support if and when we need it.

Yea, that'll have to be some sort of other interface in that case. Or maybe we can get away with duck typing 🤷