decline-cookies / anvil-unity-dots

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

Adding ECB Internal helper functions #257

Closed jkeon closed 1 year ago

jkeon commented 1 year ago

Adding some assembly injections to be able to access the internals of EntityCommandBuffer and EntityCommandBuffer.ParallelWriter

What is the current behaviour?

We can't access some of the internals.

What is the new behaviour?

We now can access the internals.

  1. EntityCommandBuffer.DidPlayback

    • Allows us to know if a given EntityCommandBuffer has been played back either manually or via the EntityCommandBufferSystem
  2. EntityCommandBuffer.ParallelWriter.SetThreadIndex

    • Allows us to set the thread index the writer points to so that it writes the correct ThreadChain

What issues does this resolve?

What PRs does this depend on?

Does this introduce a breaking change?