summaryrefslogtreecommitdiff
path: root/engine/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'engine/src/lib.rs')
-rw-r--r--engine/src/lib.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/engine/src/lib.rs b/engine/src/lib.rs
index bd954be..6d7fa1e 100644
--- a/engine/src/lib.rs
+++ b/engine/src/lib.rs
@@ -2,6 +2,7 @@
#![allow(clippy::needless_pass_by_value)]
use ecs::component::Sequence as ComponentSequence;
+use ecs::entity::Uid as EntityUid;
use ecs::event::Event;
use ecs::extension::Extension;
use ecs::sole::Sole;
@@ -76,11 +77,11 @@ impl Engine
Self { world }
}
- pub fn spawn<Comps>(&mut self, components: Comps)
+ pub fn spawn<Comps>(&mut self, components: Comps) -> EntityUid
where
Comps: ComponentSequence,
{
- self.world.create_entity(components);
+ self.world.create_entity(components)
}
pub fn register_system<'this, SystemImpl>(