From bd627c91819ea98e551b29027de6eaaccbe45ed6 Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 29 Feb 2024 19:01:10 +0100 Subject: feat(ecs): allow up to 15 system parameters --- ecs/src/system.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ecs/src/system.rs') diff --git a/ecs/src/system.rs b/ecs/src/system.rs index cbf004f..a49edda 100644 --- a/ecs/src/system.rs +++ b/ecs/src/system.rs @@ -37,7 +37,7 @@ pub trait System: 'static macro_rules! impl_system { ($c: tt) => { - seq!(I in 0..=$c { + seq!(I in 0..$c { impl<'world, Func, #(TParam~I,)*> System for Func where @@ -104,7 +104,7 @@ macro_rules! impl_system { }; } -seq!(C in 0..=4 { +seq!(C in 1..16 { impl_system!(C); }); -- cgit v1.2.3-18-g5258