diff options
Diffstat (limited to 'ecs-macros/src/lib.rs')
-rw-r--r-- | ecs-macros/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ecs-macros/src/lib.rs b/ecs-macros/src/lib.rs index 21e8053..3d0de6d 100644 --- a/ecs-macros/src/lib.rs +++ b/ecs-macros/src/lib.rs @@ -56,9 +56,13 @@ pub fn component_derive(input: TokenStream) -> TokenStream #where_clause { type Component = Self; + type RefMut<'component> = #ecs_path::system::ComponentRefMut<'component, Self>; + type Ref<'component> = + #ecs_path::system::ComponentRef<'component, Self>; + fn id(&self) -> #ecs_path::component::Id { #ecs_path::component::Id::of::<Self>() |