-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add EntityMap::clear
#9291
Add EntityMap::clear
#9291
Conversation
instead of adding all methods of |
It will require adding |
@mockersf what if we move |
@Shatur this code is fine (and well-motivated!), but the questions raised above are sensible. What's your preferred way to proceed:
I think my preference is for 1, but I'll defer to you here. |
I would go with 1, it's a very small change. |
Objective
If you use
EntityMap
to map entities over network (https://github.com/lifescapegame/bevy_replicon) you need to reset it sometimes, but keep allocated memory for reuse.Solution
Changelog
Added
EntityMap::clear
.