summaryrefslogtreecommitdiff
path: root/ecs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2025-06-07 18:52:26 +0200
committerHampusM <hampus@hampusmat.com>2025-06-07 18:52:26 +0200
commit15c6cde9b01d8d62a21d61ca620aff4ef61b12dd (patch)
treeb2e402aef1412356ce90621d10b1a200c6362b1a /ecs
parent193781bd87b78fae840e6ff854f5b93b8db42195 (diff)
refactor(ecs): remove component::Metadata
Diffstat (limited to 'ecs')
-rw-r--r--ecs/src/component.rs17
1 files changed, 0 insertions, 17 deletions
diff --git a/ecs/src/component.rs b/ecs/src/component.rs
index 222c5fe..4bf38e7 100644
--- a/ecs/src/component.rs
+++ b/ecs/src/component.rs
@@ -69,23 +69,6 @@ pub trait Sequence
fn into_parts_array(self) -> Self::PartsArray;
}
-/// [`Component`] metadata.
-#[derive(Debug, Clone)]
-#[non_exhaustive]
-pub struct Metadata
-{
- pub id: Uid,
-}
-
-impl Metadata
-{
- #[must_use]
- pub fn of<ComponentT: Component>() -> Self
- {
- Self { id: ComponentT::id() }
- }
-}
-
pub trait HandleFromEntityComponentRef<'comp>: Sized
{
type Error: Error;