diff options
author | HampusM <hampus@hampusmat.com> | 2024-08-10 18:50:45 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-08-10 20:56:39 +0200 |
commit | 93f764e1003bb6f35b56b7b91a73ae0ca80282c9 (patch) | |
tree | 1765bd3ba2e61783e3477211eb84550726e0b7d9 /ecs/src/component.rs | |
parent | b4be1c1e9a7e69a86a5aa9be6699847edc2c8d0f (diff) |
refactor(ecs): create archetype lookup entries on-the-go
Diffstat (limited to 'ecs/src/component.rs')
-rw-r--r-- | ecs/src/component.rs | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/ecs/src/component.rs b/ecs/src/component.rs index 057b5ff..67ae453 100644 --- a/ecs/src/component.rs +++ b/ecs/src/component.rs @@ -6,7 +6,7 @@ use seq_macro::seq; use crate::lock::WriteGuard; use crate::system::{ComponentRefMut, Input as SystemInput}; use crate::type_name::TypeName; -use crate::{EntityComponent, WorldData}; +use crate::EntityComponent; pub mod local; @@ -36,12 +36,6 @@ pub trait Component: SystemInput + Any + TypeName { false } - - fn prepare(_world_data: &WorldData) - where - Self: Sized, - { - } } impl dyn Component @@ -150,8 +144,6 @@ pub trait Sequence fn from_components<'component>( components: impl Iterator<Item = &'component EntityComponent>, ) -> Self::Refs<'component>; - - fn prepare(_world_data: &WorldData); } /// [`Component`] metadata. @@ -262,13 +254,6 @@ macro_rules! inner { Comp~I::RefMut::from_optional_component(comp_~I), )*) } - - fn prepare(world_data: &WorldData) - { - #( - Comp~I::prepare(world_data); - )* - } } }); }; |