diff options
| author | HampusM <hampus@hampusmat.com> | 2026-11-29 21:30:53 +0100 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-11-29 21:30:53 +0100 |
| commit | 98d47caa57a9484d39ee4f8d145255d6f5088eac (patch) | |
| tree | d8d19178fe49ad818c53a550583e9731cbf39f9b /engine-ecs/src/pair.rs | |
| parent | c67fe276a9b005a3d158a051208735f2295b6e35 (diff) | |
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, } |
