diff options
author | HampusM <hampus@hampusmat.com> | 2024-02-29 19:01:10 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2024-02-29 19:53:36 +0100 |
commit | bd627c91819ea98e551b29027de6eaaccbe45ed6 (patch) | |
tree | 8d315e355cec3b5e63e46fe53f88b9259eafb3c1 /ecs/src/system/stateful.rs | |
parent | 21c582507ae2dc9d264c80719e39ac47d3b0122b (diff) |
feat(ecs): allow up to 15 system parameters
Diffstat (limited to 'ecs/src/system/stateful.rs')
-rw-r--r-- | ecs/src/system/stateful.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ecs/src/system/stateful.rs b/ecs/src/system/stateful.rs index 54f9807..7b136cf 100644 --- a/ecs/src/system/stateful.rs +++ b/ecs/src/system/stateful.rs @@ -25,7 +25,7 @@ pub struct Stateful<Func> macro_rules! impl_system { ($c: tt) => { - seq!(I in 0..=$c { + seq!(I in 0..$c { impl<'world, Func, #(TParam~I,)*> System<fn(&'world (), #(TParam~I,)*)> for Stateful<Func> where @@ -150,6 +150,6 @@ macro_rules! impl_system { }; } -seq!(C in 0..4 { +seq!(C in 1..16 { impl_system!(C); }); |