summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-08-21 20:19:28 +0200
committerHampusM <hampus@hampusmat.com>2024-08-21 20:19:28 +0200
commit217c32c11566ddfa09ae5790cf1ad7c9b4100a43 (patch)
treeba2a1344d58dcab23b8858f24a401732b27a99a2
parent58f29444ac234c285ce0e3a729ade2b52a303f58 (diff)
fix(engine): use new name of ComponentToAddedEvent
-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)