summaryrefslogtreecommitdiff
path: root/ecs-macros/src
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2025-04-10 17:39:21 +0200
committerHampusM <hampus@hampusmat.com>2025-04-10 17:39:38 +0200
commit7d25c21cdf4b46cdab680f11110fb23676c6141b (patch)
treecc953dbbb5cc4f2da36b9b5ad7c569ee0aa5fcd7 /ecs-macros/src
parent3ba82dd26869dad69f686d38bb70caefeaa25bfc (diff)
feat(ecs): re-add support for component events
Diffstat (limited to 'ecs-macros/src')
-rw-r--r--ecs-macros/src/lib.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/ecs-macros/src/lib.rs b/ecs-macros/src/lib.rs
index 5aa4405..647469b 100644
--- a/ecs-macros/src/lib.rs
+++ b/ecs-macros/src/lib.rs
@@ -110,10 +110,6 @@ pub fn component_derive(input: TokenStream) -> TokenStream
use ::std::collections::HashMap;
use #ecs_path::component::Component;
- use #ecs_path::event::component::{
- Removed as ComponentRemovedEvent,
- Kind as ComponentEventKind,
- };
use #ecs_path::component::{
Handle as ComponentHandle,
HandleMut as ComponentHandleMut
@@ -140,18 +136,6 @@ pub fn component_derive(input: TokenStream) -> TokenStream
{
std::any::type_name::<Self>()
}
-
- fn get_event_uid(&self, event_kind: ComponentEventKind) -> Uid
- {
- match event_kind {
- ComponentEventKind::Removed => ComponentRemovedEvent::<Self>::id(),
- _ => {
- panic!(
- "Support for event kind {event_kind:?} not implemented!"
- );
- }
- }
- }
}
impl #impl_generics SystemInput for #item_ident #type_generics