From ce1bade2c21cc3129fa8bc2b4bc67bc4dc2c25c3 Mon Sep 17 00:00:00 2001 From: HampusM Date: Wed, 10 Sep 2025 15:35:26 +0200 Subject: refactor(ecs): remove component added & removed events --- ecs/src/component/storage/archetype.rs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'ecs/src/component/storage') diff --git a/ecs/src/component/storage/archetype.rs b/ecs/src/component/storage/archetype.rs index 788794a..d96632e 100644 --- a/ecs/src/component/storage/archetype.rs +++ b/ecs/src/component/storage/archetype.rs @@ -314,29 +314,18 @@ impl Entity #[derive(Debug)] pub struct EntityComponent { - id: Uid, component: Lock>, } impl EntityComponent { - pub fn new( - component: Box, - component_id: Uid, - component_name: &'static str, - ) -> Self + pub fn new(component: Box, component_name: &'static str) -> Self { Self { - id: component_id, component: Lock::new(component, component_name), } } - pub fn id(&self) -> Uid - { - self.id - } - pub fn component(&self) -> &Lock> { &self.component -- cgit v1.2.3-18-g5258