summaryrefslogtreecommitdiff
path: root/ecs/src/event/component.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ecs/src/event/component.rs')
-rw-r--r--ecs/src/event/component.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/ecs/src/event/component.rs b/ecs/src/event/component.rs
index 4628cb1..62e7c4d 100644
--- a/ecs/src/event/component.rs
+++ b/ecs/src/event/component.rs
@@ -97,20 +97,22 @@ where
}
}
+#[must_use]
pub fn create_added_id(component_id: ComponentId) -> Id
{
Id::new::<Added<ComponentForId>, _>(Some(component_id))
}
+#[must_use]
pub fn create_removed_id(component_id: ComponentId) -> Id
{
Id::new::<Removed<ComponentForId>, _>(Some(component_id))
}
-pub struct ComponentToAddedEvent;
+pub struct TypeTransformComponentsToAddedEvents;
impl<ComponentT: Component, Accumulator>
- TupleReduceElement<Accumulator, ComponentToAddedEvent> for ComponentT
+ TupleReduceElement<Accumulator, TypeTransformComponentsToAddedEvents> for ComponentT
where
Accumulator: TupleWith<Added<Self>>,
{