prime31 / zig-flecs

52 stars 9 forks source link

More Examples... #12

Closed foxnne closed 2 years ago

foxnne commented 2 years ago

Alright this time we have some more systems examples, and I went ahead and added the observer system setup to the World, with the matching events.

One issue popped up, and that's the debug print of the entity name when it was actually deleted. It seems to make sense that the entity is gone by the time this event is called, but the Flecs example has it this way. I assume we need to make sure the iterator's entity function still works the frame the entity is deleted. I'll look into it.