bevy/crates/bevy_ecs/src
ira 9481a2c8a7 Optimise EventReader::clear() and improve documentation (#7471)
# Objective

Clearing the reader doesn't require iterating the events. Updating the `last_event_count` of the reader is enough.

I rewrote part of the documentation as some of it was incorrect or harder to understand than necessary.

## Changelog

Added `ManualEventReader::clear()`

Co-authored-by: devil-ira <justthecooldude@gmail.com>
2023-02-03 01:03:56 +00:00
..
entity Make EntityRef::new unsafe (#7222) 2023-01-16 22:10:51 +00:00
query Basic adaptive batching for parallel query iteration (#4777) 2023-01-20 08:47:20 +00:00
schedule Fix minor typos in code and docs (#7378) 2023-01-27 12:12:53 +00:00
schedule_v3 Fix minor typos in code and docs (#7378) 2023-01-27 12:12:53 +00:00
storage Add World::clear_resources & World::clear_all (#3212) 2023-01-17 04:20:42 +00:00
system Speed up CommandQueue by storing commands more densely (#6391) 2023-01-28 01:15:51 +00:00
world Fix unsoundness in EntityMut::world_scope (#7387) 2023-01-29 00:10:45 +00:00
archetype.rs Fix minor typos in code and docs (#7378) 2023-01-27 12:12:53 +00:00
bundle.rs Fix beta clippy lints (#7154) 2023-01-11 09:51:22 +00:00
change_detection.rs Add a method for converting MutUntyped -> Mut<T> (#7113) 2023-01-11 17:47:54 +00:00
component.rs Added resource_id and changed init_resource and init_non_send_resource to return ComponentId (#7284) 2023-01-20 19:08:04 +00:00
event.rs Optimise EventReader::clear() and improve documentation (#7471) 2023-02-03 01:03:56 +00:00
lib.rs Add Ref to the prelude (#7392) 2023-01-28 09:28:47 +00:00
reflect.rs add UnsafeWorldCell abstraction (#6404) 2023-01-27 00:12:13 +00:00