diff options
author | HampusM <hampus@hampusmat.com> | 2024-08-21 20:19:28 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-08-21 20:19:28 +0200 |
commit | 217c32c11566ddfa09ae5790cf1ad7c9b4100a43 (patch) | |
tree | ba2a1344d58dcab23b8858f24a401732b27a99a2 /engine/src/lib.rs | |
parent | 58f29444ac234c285ce0e3a729ade2b52a303f58 (diff) |
fix(engine): use new name of ComponentToAddedEvent
Diffstat (limited to 'engine/src/lib.rs')
-rw-r--r-- | engine/src/lib.rs | 4 |
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) |