We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c602752 commit e71ada6Copy full SHA for e71ada6
crates/bevy_ecs/src/removal_detection.rs
@@ -16,6 +16,8 @@ use std::{
16
ops::{Deref, DerefMut},
17
};
18
19
+/// Wrapper around a [`ManualEventReader<Entity>`] so that we
20
+/// can differentiate events between components.
21
#[derive(Debug)]
22
pub struct RemovedComponentReader<T>
23
where
@@ -47,6 +49,8 @@ impl<T: Component> DerefMut for RemovedComponentReader<T> {
47
49
}
48
50
51
52
+/// Wrapper around a map of components to [`Events<Entity>`].
53
+/// So that we can find the events without naming the type directly.
54
#[derive(Default, Debug)]
55
pub struct RemovedComponentEvents {
56
event_sets: SparseSet<ComponentId, Events<Entity>>,
0 commit comments