summaryrefslogtreecommitdiff
path: root/ecs/src/event
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2025-09-13 19:24:29 +0200
committerHampusM <hampus@hampusmat.com>2025-09-13 19:24:29 +0200
commit6e7abf273d758bf15c1ba3e331e370b2bea3f8e2 (patch)
treed13ad55858583e0546632aeeb0b7336677378621 /ecs/src/event
parent1bf48462393099d971b7a8613bd945d863d97273 (diff)
feat(ecs): re-implement component added & removed eventsHEADmaster
Diffstat (limited to 'ecs/src/event')
-rw-r--r--ecs/src/event/component.rs22
1 files changed, 10 insertions, 12 deletions
diff --git a/ecs/src/event/component.rs b/ecs/src/event/component.rs
index 421c369..e8b9559 100644
--- a/ecs/src/event/component.rs
+++ b/ecs/src/event/component.rs
@@ -4,19 +4,17 @@ use std::convert::Infallible;
use crate::Component;
-// TODO: Implement
-// /// Pair relation for events emitted when:
-// /// a) A entity with the target component is spawned.
-// /// b) The target component is added to a entity.
-// #[derive(Debug, Component)]
-// pub struct Added(Infallible);
+/// Pair relation for events emitted when:
+/// a) A entity with the target component is spawned.
+/// b) The target component is added to a entity.
+#[derive(Debug, Component)]
+pub struct Added(Infallible);
-// TODO: Implement
-// /// 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);
+/// 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);
#[derive(Debug, Component)]
pub struct Changed(Infallible);