From 09981e0173a2427264e432226804292c91e1f920 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 26 Aug 2025 16:43:40 +0200 Subject: feat(ecs): add component changed event --- ecs/src/event/component.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ecs/src/event/component.rs') 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); -- cgit v1.2.3-18-g5258