You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To make it possible the first entity added in the removed linked list must have its index changed to any value (usize::MAX for example).
We can then use the fact that if entities[index].index() == index this entity is alive.
The text was updated successfully, but these errors were encountered:
I found myself wanting this when trying to build a generalized viewer of my entire World for debugging/development purposes. (Just ended up manually iterating over all the different entities types available.)
To make it possible the first entity added in the removed linked list must have its index changed to any value (
usize::MAX
for example).We can then use the fact that if
entities[index].index() == index
this entity is alive.The text was updated successfully, but these errors were encountered: