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.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/src/lib.rs b/engine/src/lib.rs
index 6d7c213..c87f7f7 100644
--- a/engine/src/lib.rs
+++ b/engine/src/lib.rs
@@ -3,7 +3,7 @@
use ecs::component::Sequence as ComponentSequence;
use ecs::entity::Uid as EntityUid;
-use ecs::event::component::ComponentToAddedEvent;
+use ecs::event::component::TypeTransformComponentsToAddedEvents;
use ecs::event::{Event, Sequence as EventSequence};
use ecs::extension::Extension;
use ecs::sole::Sole;
@@ -77,7 +77,7 @@ impl Engine
pub fn spawn<Comps>(&mut self, components: Comps) -> EntityUid
where
- Comps: ComponentSequence + TupleReduce<ComponentToAddedEvent>,
+ Comps: ComponentSequence + TupleReduce<TypeTransformComponentsToAddedEvents>,
Comps::Out: EventSequence,
{
self.world.create_entity(components)