diff options
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);  | 
