diff options
author | HampusM <hampus@hampusmat.com> | 2025-08-26 16:43:40 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2025-09-11 18:24:48 +0200 |
commit | 09981e0173a2427264e432226804292c91e1f920 (patch) | |
tree | 70112b6cda98a55da625ec9f6762927f00affe91 /ecs/src/event/component.rs | |
parent | ce1bade2c21cc3129fa8bc2b4bc67bc4dc2c25c3 (diff) |
feat(ecs): add component changed event
Diffstat (limited to 'ecs/src/event/component.rs')
-rw-r--r-- | ecs/src/event/component.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ecs/src/event/component.rs b/ecs/src/event/component.rs index b96f23b..1bc39b1 100644 --- a/ecs/src/event/component.rs +++ b/ecs/src/event/component.rs @@ -1,5 +1,9 @@ //! Component events. +use std::convert::Infallible; + +use crate::Component; + // TODO: Implement // /// Pair relation for events emitted when: // /// a) A entity with the target component is spawned. @@ -13,3 +17,6 @@ // /// b) A entity with the target component is despawned. // #[derive(Debug, Component)] // pub struct Removed(Infallible); + +#[derive(Debug, Component)] +pub struct OnChanged(Infallible); |