From 46dced7a770783f81c651371e0e42eebce292343 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 19 May 2024 21:13:09 +0200 Subject: feat(ecs-macros): add missing associated types to Component impls --- ecs-macros/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ecs-macros/src/lib.rs') diff --git a/ecs-macros/src/lib.rs b/ecs-macros/src/lib.rs index 21a2c38..2fd2c52 100644 --- a/ecs-macros/src/lib.rs +++ b/ecs-macros/src/lib.rs @@ -61,6 +61,10 @@ pub fn component_derive(input: TokenStream) -> TokenStream impl #impl_generics #ecs_path::component::Component for #item_ident #type_generics #where_clause { + type Component = Self; + type RefMut<'component> = + #ecs_path::system::ComponentRefMut<'component, Self>; + fn drop_last(&self) -> bool { #drop_last -- cgit v1.2.3-18-g5258