From 8adf787bca7744344b83dace7997031b07785a25 Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 6 Jun 2024 22:27:03 +0200 Subject: refactor(ecs): rename tuple filter to tuple reduce --- ecs/src/system.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ecs/src/system.rs') diff --git a/ecs/src/system.rs b/ecs/src/system.rs index 3c44148..6846a16 100644 --- a/ecs/src/system.rs +++ b/ecs/src/system.rs @@ -11,7 +11,7 @@ use seq_macro::seq; use crate::component::{Component, FromOptionalComponent}; use crate::lock::WriteGuard; use crate::system::util::check_params_are_compatible; -use crate::tuple::{FilterElement as TupleFilterElement, With as TupleWith}; +use crate::tuple::{ReduceElement as TupleReduceElement, With as TupleWith}; use crate::WorldData; pub mod stateful; @@ -186,11 +186,11 @@ pub struct NoInitParamFlag {} /// A type which can be used as input to a [`System`]. pub trait Input: 'static {} -impl TupleFilterElement for InputT +impl TupleReduceElement for InputT where - Tup: TupleWith, + Accumulator: TupleWith, { - type Tuple = Tup::With; + type Return = Accumulator::With; } #[derive(Debug)] -- cgit v1.2.3-18-g5258