summaryrefslogtreecommitdiff
path: root/engine-ecs/src/pair.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-08-31 05:34:28 +0200
committerHampusM <hampus@hampusmat.com>2026-08-31 05:34:28 +0200
commit6c0db8d03888edddcd811166b1297ae185f2bfbe (patch)
treecfc27e0849884d6c76476994383b8b57befbd584 /engine-ecs/src/pair.rs
parent3c252d952fb3a639b84f2c0e63157e0d26862f28 (diff)
feat(engine-ecs): add whether component is a sole to component::Info
Diffstat (limited to 'engine-ecs/src/pair.rs')
-rw-r--r--engine-ecs/src/pair.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/engine-ecs/src/pair.rs b/engine-ecs/src/pair.rs
index 98f0257..834077c 100644
--- a/engine-ecs/src/pair.rs
+++ b/engine-ecs/src/pair.rs
@@ -46,6 +46,7 @@ impl<Relation, Target> Builder<Relation, Target>
ty: NewRelation::type_reflection(),
ty_id: TypeId::of::<NewRelation>(),
name: type_name::<NewRelation>(),
+ is_sole: false,
}),
target_metadata: self.target_metadata,
}
@@ -71,6 +72,7 @@ impl<Relation, Target> Builder<Relation, Target>
ty: NewTarget::type_reflection(),
ty_id: TypeId::of::<NewTarget>(),
name: type_name::<NewTarget>(),
+ is_sole: false,
}),
}
}
@@ -103,6 +105,7 @@ impl_multiple!(
ty: NewTarget::type_reflection(),
ty_id: TypeId::of::<NewTarget>(),
name: type_name::<NewTarget>(),
+ is_sole: false,
}),
}
}
@@ -125,6 +128,7 @@ impl_multiple!(
ty: NewRelation::type_reflection(),
ty_id: TypeId::of::<NewRelation>(),
name: type_name::<NewRelation>(),
+ is_sole: false,
}),
target_metadata: self.target_metadata,
}
@@ -770,6 +774,7 @@ pub struct MemberMetadata
pub ty: Option<&'static TypeReflection>,
pub ty_id: TypeId,
pub name: &'static str,
+ pub is_sole: bool,
}
#[macro_export]