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.
Alright this time we have some more systems examples, and I went ahead and added the
observer
system setup to theWorld
, 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.