summaryrefslogtreecommitdiff
path: root/ecs/src/system.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ecs/src/system.rs')
-rw-r--r--ecs/src/system.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/ecs/src/system.rs b/ecs/src/system.rs
index f266095..992fd69 100644
--- a/ecs/src/system.rs
+++ b/ecs/src/system.rs
@@ -49,7 +49,7 @@ macro_rules! impl_system {
for Func
where
Func: Fn(#(TParam~I,)*) + Copy + RefUnwindSafe + UnwindSafe + 'static,
- #(TParam~I: Param<'world, Flags = NoInitParamFlag>,)*
+ #(TParam~I: Param<'world, Input = ()>,)*
{
type Input = Infallible;
@@ -156,7 +156,6 @@ type TypeErasedRunFn = dyn Fn(&dyn Any, &World) + RefUnwindSafe + UnwindSafe;
pub trait Param<'world>
{
type Input;
- type Flags;
fn initialize<SystemImpl>(
system: &mut impl System<'world, SystemImpl>,
@@ -169,8 +168,6 @@ pub trait Param<'world>
) -> Self;
}
-pub struct NoInitParamFlag {}
-
/// A type which can be used as input to a [`System`].
pub trait Input: 'static {}