pub trait SystemFn<R, Q>where
R: ResourceSet<'static>,
Q: QuerySet,{
// Required method
fn run(
&mut self,
commands: &mut CommandBuffer,
world: &mut SubWorld<'_>,
resources: &mut <R as ResourceSet<'static>>::Result,
queries: &mut Q,
);
}
Expand description
A function which can provide the body of a system.
Required Methods§
Sourcefn run(
&mut self,
commands: &mut CommandBuffer,
world: &mut SubWorld<'_>,
resources: &mut <R as ResourceSet<'static>>::Result,
queries: &mut Q,
)
fn run( &mut self, commands: &mut CommandBuffer, world: &mut SubWorld<'_>, resources: &mut <R as ResourceSet<'static>>::Result, queries: &mut Q, )
Runs the system body.