diff options
author | HampusM <hampus@hampusmat.com> | 2025-09-13 19:24:29 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2025-09-13 19:24:29 +0200 |
commit | 6e7abf273d758bf15c1ba3e331e370b2bea3f8e2 (patch) | |
tree | d13ad55858583e0546632aeeb0b7336677378621 /ecs/src/event | |
parent | 1bf48462393099d971b7a8613bd945d863d97273 (diff) |
Diffstat (limited to 'ecs/src/event')
-rw-r--r-- | ecs/src/event/component.rs | 22 |
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); |