summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-05-19 21:13:09 +0200
committerHampusM <hampus@hampusmat.com>2024-05-19 21:15:12 +0200
commit46dced7a770783f81c651371e0e42eebce292343 (patch)
tree437ae2a599f5094bc8bd9fa2f669bbbdd77e623f
parent9863b431950c681225f8774af244a56adbd18937 (diff)
feat(ecs-macros): add missing associated types to Component impls
-rw-r--r--ecs-macros/src/lib.rs4
1 files changed, 4 insertions, 0 deletions
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