bevy/crates/bevy_ecs/src
Hennadii Chernyshchyk c6a1bf063b
Add EntityMap::clear (#9291)
# 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`.
2023-07-31 22:02:16 +00:00
..
entity Add EntityMap::clear (#9291) 2023-07-31 22:02:16 +00:00
query Fix safety invariants for WorldQuery::fetch and simplify cloning (#8246) 2023-07-25 21:16:22 +00:00
reflect Fix typos throughout the project (#9090) 2023-07-10 00:11:51 +00:00
schedule delete code deprecated in 0.11 (#9128) 2023-07-13 23:35:06 +00:00
storage Fix typos throughout the project (#9090) 2023-07-10 00:11:51 +00:00
system replace parens with square brackets when referencing _mut on Query docs #9200 (#9223) 2023-07-20 21:41:07 +00:00
world delete code deprecated in 0.11 (#9128) 2023-07-13 23:35:06 +00:00
archetype.rs Fix typo in Archetypes documentation (#8990) 2023-06-28 19:33:18 +00:00
bundle.rs Document every public item in bevy_ecs (#8731) 2023-06-10 23:23:48 +00:00
change_detection.rs add MutUntyped::map_unchanged (#9194) 2023-07-23 01:17:31 +00:00
component.rs Derive Eq, PartialEq for Tick (#9020) 2023-07-04 19:08:51 +00:00
event.rs Derive debug for ManualEventIterator (#9293) 2023-07-30 15:30:52 +00:00
lib.rs Add the Has world query to bevy_ecs::prelude (#9204) 2023-07-19 11:54:40 +00:00
removal_detection.rs Simplify the ComponentIdFor type (#8845) 2023-06-15 12:57:47 +00:00