summaryrefslogtreecommitdiff
path: root/ecs-macros/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ecs-macros/src/lib.rs')
-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