From 98d47caa57a9484d39ee4f8d145255d6f5088eac Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 29 Nov 2026 21:30:53 +0100 Subject: feat(engine-ecs): add component type name to component::Info --- engine-ecs/src/pair.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'engine-ecs/src/pair.rs') diff --git a/engine-ecs/src/pair.rs b/engine-ecs/src/pair.rs index 296e9cc..a6066e1 100644 --- a/engine-ecs/src/pair.rs +++ b/engine-ecs/src/pair.rs @@ -49,6 +49,7 @@ impl Builder ty: NewRelation::type_reflection(), ty_id: TypeId::of::(), name: NewRelation::name(), + type_name: type_name::(), is_sole: false, }), target_metadata: self.target_metadata, @@ -75,6 +76,7 @@ impl Builder ty: NewTarget::type_reflection(), ty_id: TypeId::of::(), name: NewTarget::name(), + type_name: type_name::(), is_sole: false, }), } @@ -108,6 +110,7 @@ impl_multiple!( ty: NewTarget::type_reflection(), ty_id: TypeId::of::(), name: NewTarget::name(), + type_name: type_name::(), is_sole: false, }), } @@ -131,6 +134,7 @@ impl_multiple!( ty: NewRelation::type_reflection(), ty_id: TypeId::of::(), name: NewRelation::name(), + type_name: type_name::(), is_sole: false, }), target_metadata: self.target_metadata, @@ -786,6 +790,7 @@ pub struct MemberMetadata pub ty: Option<&'static TypeReflection>, pub ty_id: TypeId, pub name: Cow<'static, str>, + pub type_name: &'static str, pub is_sole: bool, } -- cgit v1.2.3-18-g5258