diff options
Diffstat (limited to 'ecs/src/extension.rs')
-rw-r--r-- | ecs/src/extension.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ecs/src/extension.rs b/ecs/src/extension.rs index 99320cb..a945d89 100644 --- a/ecs/src/extension.rs +++ b/ecs/src/extension.rs @@ -1,5 +1,5 @@ use crate::component::Sequence as ComponentSequence; -use crate::event::component::ComponentToAddedEvent; +use crate::event::component::TypeTransformComponentsToAddedEvents; use crate::event::{Event, Sequence as EventSequence}; use crate::sole::Sole; use crate::system::System; @@ -40,7 +40,7 @@ impl<'world> Collector<'world> /// Adds a entity to the [`World`]. pub fn add_entity<Comps>(&mut self, components: Comps) where - Comps: ComponentSequence + TupleReduce<ComponentToAddedEvent>, + Comps: ComponentSequence + TupleReduce<TypeTransformComponentsToAddedEvents>, Comps::Out: EventSequence, { self.world.create_entity(components); |