diff options
Diffstat (limited to 'engine-ecs/src/pair.rs')
| -rw-r--r-- | engine-ecs/src/pair.rs | 5 |
1 files changed, 5 insertions, 0 deletions
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<Relation, Target> Builder<Relation, Target> ty: NewRelation::type_reflection(), ty_id: TypeId::of::<NewRelation>(), name: NewRelation::name(), + type_name: type_name::<NewRelation>(), is_sole: false, }), target_metadata: self.target_metadata, @@ -75,6 +76,7 @@ impl<Relation, Target> Builder<Relation, Target> ty: NewTarget::type_reflection(), ty_id: TypeId::of::<NewTarget>(), name: NewTarget::name(), + type_name: type_name::<NewTarget>(), is_sole: false, }), } @@ -108,6 +110,7 @@ impl_multiple!( ty: NewTarget::type_reflection(), ty_id: TypeId::of::<NewTarget>(), name: NewTarget::name(), + type_name: type_name::<NewTarget>(), is_sole: false, }), } @@ -131,6 +134,7 @@ impl_multiple!( ty: NewRelation::type_reflection(), ty_id: TypeId::of::<NewRelation>(), name: NewRelation::name(), + type_name: type_name::<NewRelation>(), 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, } |
