diff options
author | HampusM <hampus@hampusmat.com> | 2025-06-07 18:52:26 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2025-06-07 18:52:26 +0200 |
commit | 15c6cde9b01d8d62a21d61ca620aff4ef61b12dd (patch) | |
tree | b2e402aef1412356ce90621d10b1a200c6362b1a | |
parent | 193781bd87b78fae840e6ff854f5b93b8db42195 (diff) |
refactor(ecs): remove component::Metadata
-rw-r--r-- | ecs/src/component.rs | 17 |
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; |