diff options
Diffstat (limited to 'engine-ecs/src/component.rs')
| -rw-r--r-- | engine-ecs/src/component.rs | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/engine-ecs/src/component.rs b/engine-ecs/src/component.rs index 157d79c..25ec101 100644 --- a/engine-ecs/src/component.rs +++ b/engine-ecs/src/component.rs @@ -1,4 +1,4 @@ -use std::any::{type_name, Any}; +use std::any::Any; use std::fmt::Debug; use std::ops::{Deref, DerefMut}; @@ -24,7 +24,7 @@ pub mod local; pub(crate) mod storage; -pub trait Component: SystemInput + Any +pub trait Component: SystemInput + Any + IntoParts { /// Returns the ID of this component. fn id() -> Uid @@ -286,19 +286,6 @@ pub trait IntoParts fn into_parts(self) -> Parts; } -impl<ComponentT> IntoParts for ComponentT -where - ComponentT: Component, -{ - fn into_parts(self) -> Parts - { - Parts::builder() - .name(type_name::<Self>()) - .type_reflection(Self::type_reflection()) - .build(Self::id(), self) - } -} - /// The parts of a component. #[derive(Debug)] #[non_exhaustive] |
