diff options
Diffstat (limited to 'ecs/src/component.rs')
-rw-r--r-- | ecs/src/component.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ecs/src/component.rs b/ecs/src/component.rs index 513b31a..14d3b54 100644 --- a/ecs/src/component.rs +++ b/ecs/src/component.rs @@ -187,7 +187,7 @@ pub struct Metadata impl Metadata { - pub fn of<ComponentT: Component + ?Sized>(component: &ComponentT) -> Self + pub fn get<ComponentT: Component + ?Sized>(component: &ComponentT) -> Self { Self { id: component.self_id(), |