bevy/crates/bevy_ecs/src
TheRawMeatball ce752d2522 Increment last event count on next instead of iter (#2382)
# Objective

Currently, simply calling `iter` on an event reader will mark all of it's events as read, even if the returned iterator is never used

## Solution

With this, the cursor will simply move to the last unread, but available event when iter is called, and incremented by one per `next` call.


Co-authored-by: Carter Anderson <mcanders1@gmail.com>
2022-02-02 02:29:33 +00:00
..
entity Fix doc_markdown lints in bevy_ecs (#3473) 2022-01-06 00:43:37 +00:00
query Fix documentation for QueryState::iter_manual (#3644) 2022-01-13 01:50:54 +00:00
schedule Add missing closing ticks for inline examples and some cleanup (#3573) 2022-01-07 09:25:12 +00:00
storage Fix doc_markdown lints in bevy_ecs (#3473) 2022-01-06 00:43:37 +00:00
system Mark .id() methods which return an Entity as must_use (#3750) 2022-01-23 14:24:37 +00:00
world Mark .id() methods which return an Entity as must_use (#3750) 2022-01-23 14:24:37 +00:00
archetype.rs Fix doc_markdown lints in bevy_ecs (#3473) 2022-01-06 00:43:37 +00:00
bundle.rs Fix doc_markdown lints in bevy_ecs (#3473) 2022-01-06 00:43:37 +00:00
change_detection.rs default features from bevy_asset and bevy_ecs can actually be disabled (#3097) 2021-11-13 21:15:22 +00:00
component.rs Remove ComponentsError (#3716) 2022-01-21 00:12:32 +00:00
event.rs Increment last event count on next instead of iter (#2382) 2022-02-02 02:29:33 +00:00
lib.rs Mark .id() methods which return an Entity as must_use (#3750) 2022-01-23 14:24:37 +00:00
reflect.rs Add FromReflect trait to convert dynamic types to concrete types (#1395) 2021-12-26 18:49:01 +00:00