Commit c6a1bf0
authored
Add
# 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
- Add
[clear](https://doc.rust-lang.org/std/collections/struct.HashMap.html#method.clear)
method.
---
## Changelog
### Added
- `EntityMap::clear`.EntityMap::clear (#9291)1 parent c0510c8 commit c6a1bf0
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
109 | 114 | | |
110 | 115 | | |
111 | 116 | | |
| |||
0 commit comments