diff options
Diffstat (limited to 'ecs-macros')
-rw-r--r-- | ecs-macros/src/lib.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ecs-macros/src/lib.rs b/ecs-macros/src/lib.rs index e37d6a4..6fe343f 100644 --- a/ecs-macros/src/lib.rs +++ b/ecs-macros/src/lib.rs @@ -25,6 +25,14 @@ pub fn component_derive(input: TokenStream) -> TokenStream } impl ecs::system::Input for #item_ident {} + + impl ecs::type_name::TypeName for #item_ident + { + fn type_name(&self) -> &'static str + { + std::any::type_name::<Self>() + } + } } .into() } |