decline-cookies / anvil-unity-dots

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

Adding a Safety Check for Task Driver Systems writing to Driver Streams #231

Closed jkeon closed 1 year ago

jkeon commented 1 year ago

There could be an issue where TaskDriver Systems get configured to write to a Task Driver data stream. In the event that there is more than one TaskDriver, the System job will only actually write to the first Task Driver that exists. This will lead to data loss or false responses in the first Task Driver.

What is the current behaviour?

There is nothing to prevent this error, so you could shoot yourself in the foot.

What is the new behaviour?

A check runs to make sure that this doesn't happen and throws and exception.

What issues does this resolve?

What PRs does this depend on?

Does this introduce a breaking change?

Tag-Alongs