summaryrefslogtreecommitdiff
path: root/ecs/src/event/component.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2025-08-06 14:14:58 +0200
committerHampusM <hampus@hampusmat.com>2025-08-06 14:14:58 +0200
commit2d1cf05abb72699d38a7c7db7e131922252e1fc1 (patch)
tree98158913fa3d1482358a21426bcbbf4312afe02f /ecs/src/event/component.rs
parent43cbd47900d23801c584def1b7877fdea700c23a (diff)
revert(ecs): make component removals not queryable
This reverts commit 43cbd47900d23801c584def1b7877fdea700c23a.
Diffstat (limited to 'ecs/src/event/component.rs')
-rw-r--r--ecs/src/event/component.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/ecs/src/event/component.rs b/ecs/src/event/component.rs
index 72a78a3..ef09480 100644
--- a/ecs/src/event/component.rs
+++ b/ecs/src/event/component.rs
@@ -10,3 +10,9 @@ use crate::Component;
/// b) The target component is added to a entity.
#[derive(Debug, Component)]
pub struct Added(Infallible);
+
+/// Pair relation for events emitted when:
+/// a) The target component is removed from a entity.
+/// b) A entity with the target component is despawned.
+#[derive(Debug, Component)]
+pub struct Removed(Infallible);