From 8022e8998290b067b8aa0cb9cba8ba410826bdab Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 21 May 2026 17:55:20 +0200 Subject: chore: rename ecs* crates to engine-ecs* --- ecs/src/entity/obtainer.rs | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 ecs/src/entity/obtainer.rs (limited to 'ecs/src/entity/obtainer.rs') diff --git a/ecs/src/entity/obtainer.rs b/ecs/src/entity/obtainer.rs deleted file mode 100644 index 6c2ea96..0000000 --- a/ecs/src/entity/obtainer.rs +++ /dev/null @@ -1,29 +0,0 @@ -use crate::entity::Handle as EntityHandle; -use crate::system::{Metadata as SystemMetadata, Param as SystemParam}; -use crate::uid::Uid; -use crate::World; - -#[derive(Debug)] -pub struct Obtainer<'world> -{ - world: &'world World, -} - -impl<'world> SystemParam<'world> for Obtainer<'world> -{ - type Input = (); - - fn new(world: &'world World, _system_metadata: &SystemMetadata) -> Self - { - Self { world } - } -} - -impl Obtainer<'_> -{ - #[must_use] - pub fn get_entity(&self, entity_id: Uid) -> Option> - { - self.world.get_entity(entity_id) - } -} -- cgit v1.2.3-18-g5258