Trait bevy_ecs::system::System [−][src]
An ECS system that can be added to a Schedule
Systems are functions with all arguments implementing SystemParam.
Systems are added to an application using AppBuilder::add_system(my_system.system())
or similar methods, and will generally run once per pass of the main loop.
Systems are executed in parallel, in opportunistic order; data access is managed automatically. It’s possible to specify explicit execution order between specific systems, see SystemDescriptor.
Associated Types
Loading content...Required methods
fn name(&self) -> Cow<'static, str>
[src]
fn id(&self) -> SystemId
[src]
fn new_archetype(&mut self, archetype: &Archetype)
[src]
fn component_access(&self) -> &Access<ComponentId>
[src]
fn archetype_component_access(&self) -> &Access<ArchetypeComponentId>
[src]
fn is_send(&self) -> bool
[src]
unsafe fn run_unsafe(&mut self, input: Self::In, world: &World) -> Self::Out
[src]
Safety
This might access World and Resources in an unsafe manner. This should only be called in one
of the following contexts: 1. This system is the only system running on the given World
across all threads 2. This system only runs in parallel with other systems that do not
conflict with the archetype_component_access()
fn apply_buffers(&mut self, world: &mut World)
[src]
fn initialize(&mut self, _world: &mut World)
[src]
fn check_change_tick(&mut self, change_tick: u32)
[src]
Provided methods
Loading content...Implementors
impl System for RunOnce
[src]
type In = ()
type Out = ShouldRun
fn name(&self) -> Cow<'static, str>
[src]
fn id(&self) -> SystemId
[src]
fn new_archetype(&mut self, _archetype: &Archetype)
[src]
fn component_access(&self) -> &Access<ComponentId>
[src]
fn archetype_component_access(&self) -> &Access<ArchetypeComponentId>
[src]
fn is_send(&self) -> bool
[src]
unsafe fn run_unsafe(&mut self, _input: Self::In, _world: &World) -> Self::Out
[src]
fn apply_buffers(&mut self, _world: &mut World)
[src]
fn initialize(&mut self, _world: &mut World)
[src]
fn check_change_tick(&mut self, _change_tick: u32)
[src]
impl<In, Out, Param, Marker, F> System for FunctionSystem<In, Out, Param, Marker, F> where
In: 'static,
Out: 'static,
Param: SystemParam + 'static,
Marker: 'static,
F: SystemParamFunction<In, Out, Param, Marker> + Send + Sync + 'static,
[src]
In: 'static,
Out: 'static,
Param: SystemParam + 'static,
Marker: 'static,
F: SystemParamFunction<In, Out, Param, Marker> + Send + Sync + 'static,