Avokadoen / ecez

A WIP ecs API for Zig!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New return type to modify entity components

Avokadoen opened this issue · comments

new system return type which should allow setComponent and removeComponent to be called on the current entity invocation

TODO:

  • suggested API
  • how should it interact with multi-threading
  • how should iterating handle this (should probably "just work?" 🙏)

Problematic case: removing or adding component so that it will be moved to an archetype yet to be looped over in the same query. How do we track that these should be skipped?