[Question] em.isActive(entityId)
See original GitHub issue@junkdog implementing the testcases for the debugger I’m running into some engine behavior I can’t find any documentation on.
After entity deleteFromWorld
is issued, until deletion is finalized by the batchprocessor
, em.isActive(entityId)
returns true
. Does this mean all interactions with the entity (except for deletion) are considered legal? Or should the method return false
right after deleteFromWorld
?
I ask since it seems like an artifact from how the engine works and not so much intended (see EntityTransmuter#isValid
for example, it will block transmutations which will block componentmappers from triggering create/delete). But for some reason it treats deleted-finalized entities differently and throw an exception.
Edit: DelayedComponentRemoval
suggests component read is intended for that group until all subscriptions have been notified.
Issue Analytics
- State:
- Created 4 years ago
- Comments:20 (8 by maintainers)
I asked https://talktotransformer.com/
Question answered. Feel free to create a new ticket for any insights gained during this discussion! Closing.