summaryrefslogtreecommitdiff
path: root/ecs/src/system.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2024-06-06 22:27:03 +0200
committerHampusM <hampus@hampusmat.com>2024-06-06 22:27:03 +0200
commit8adf787bca7744344b83dace7997031b07785a25 (patch)
tree4b510178e39593f08e548972f493e1856f703a15 /ecs/src/system.rs
parentcb1ff29c8c7fa77bbb4e532eaa7e45df717a58ef (diff)
refactor(ecs): rename tuple filter to tuple reduce
Diffstat (limited to 'ecs/src/system.rs')
-rw-r--r--ecs/src/system.rs8
1 files changed, 4 insertions, 4 deletions
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<InputT: Input, Tup> TupleFilterElement<Tup> for InputT
+impl<InputT: Input, Accumulator> TupleReduceElement<Accumulator> for InputT
where
- Tup: TupleWith<Self>,
+ Accumulator: TupleWith<Self>,
{
- type Tuple = Tup::With;
+ type Return = Accumulator::With;
}
#[derive(Debug)]