diff options
author | HampusM <hampus@hampusmat.com> | 2024-11-16 19:11:25 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-11-16 19:11:25 +0100 |
commit | 7feb816799cdcc03163045ad2bf005fe191cfc0e (patch) | |
tree | d01e4fe5fcbd323a927078f6d33a6d64fb23a2ec /ecs/src/component | |
parent | 3e33964aa800376e4c60e71c735b8eef7788c4e5 (diff) |
refactor(ecs): rename component::Metadata of function to get
Diffstat (limited to 'ecs/src/component')
-rw-r--r-- | ecs/src/component/storage.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ecs/src/component/storage.rs b/ecs/src/component/storage.rs index c407192..ffd682e 100644 --- a/ecs/src/component/storage.rs +++ b/ecs/src/component/storage.rs @@ -105,14 +105,14 @@ impl Storage let archetype_id = ArchetypeId::from_components_metadata( &components .iter() - .map(|component| ComponentMetadata::of(&**component)) + .map(|component| ComponentMetadata::get(&**component)) .collect::<Vec<_>>(), ); let comp_ids_set = create_non_opt_component_id_set( components .iter() - .map(|component| ComponentMetadata::of(&**component)), + .map(|component| ComponentMetadata::get(&**component)), ); let archetype_index = |