diff options
author | HampusM <hampus@hampusmat.com> | 2025-09-10 15:35:26 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2025-09-10 15:35:26 +0200 |
commit | ce1bade2c21cc3129fa8bc2b4bc67bc4dc2c25c3 (patch) | |
tree | b1c947e7736b69b4fbf16521bc9705450525f61c /ecs/src/event | |
parent | f5ee3b13a45b58b482a48c97ea6e67b587f1cc52 (diff) |
refactor(ecs): remove component added & removed events
Diffstat (limited to 'ecs/src/event')
-rw-r--r-- | ecs/src/event/component.rs | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/ecs/src/event/component.rs b/ecs/src/event/component.rs index ef09480..b96f23b 100644 --- a/ecs/src/event/component.rs +++ b/ecs/src/event/component.rs @@ -1,18 +1,15 @@ //! Component events. -use std::convert::Infallible; -use std::fmt::Debug; - -use crate::Component; - -/// 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) The target component is removed from a entity. -/// b) A entity with the target component is despawned. -#[derive(Debug, Component)] -pub struct Removed(Infallible); +// 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); + +// 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); |