summaryrefslogtreecommitdiff
path: root/ecs/src/entity/obtainer.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-05-21 17:55:20 +0200
committerHampusM <hampus@hampusmat.com>2026-05-21 17:55:20 +0200
commit8022e8998290b067b8aa0cb9cba8ba410826bdab (patch)
tree7171e79ce530e03079046ee8fd12167160c45480 /ecs/src/entity/obtainer.rs
parent412cee02c252f91bcf0b70a3f5cc5fca6d2b4c62 (diff)
chore: rename ecs* crates to engine-ecs*
Diffstat (limited to 'ecs/src/entity/obtainer.rs')
-rw-r--r--ecs/src/entity/obtainer.rs29
1 files changed, 0 insertions, 29 deletions
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<EntityHandle<'_>>
- {
- self.world.get_entity(entity_id)
- }
-}