summaryrefslogtreecommitdiff
path: root/ecs/src/component.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-11-16 19:11:25 +0100
committerHampusM <hampus@hampusmat.com>2024-11-16 19:11:25 +0100
commit7feb816799cdcc03163045ad2bf005fe191cfc0e (patch)
treed01e4fe5fcbd323a927078f6d33a6d64fb23a2ec /ecs/src/component.rs
parent3e33964aa800376e4c60e71c735b8eef7788c4e5 (diff)
refactor(ecs): rename component::Metadata of function to get
Diffstat (limited to 'ecs/src/component.rs')
-rw-r--r--ecs/src/component.rs2
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(),