[−][src]Trait bevy_ecs::prelude::System
An ECS system that can be added to a Schedule
Associated Types
Loading content...Required methods
pub fn name(&self) -> Cow<'static, str>
[src]
pub fn id(&self) -> SystemId
[src]
pub fn update(&mut self, world: &World)
[src]
pub fn archetype_component_access(&self) -> &TypeAccess<ArchetypeComponent>
[src]
pub fn resource_access(&self) -> &TypeAccess<TypeId>
[src]
pub fn thread_local_execution(&self) -> ThreadLocalExecution
[src]
pub unsafe fn run_unsafe(
&mut self,
input: Self::In,
world: &World,
resources: &Resources
) -> Option<Self::Out>
[src]
&mut self,
input: Self::In,
world: &World,
resources: &Resources
) -> Option<Self::Out>
Safety
This might access World and Resources in an unsafe manner. This should only be called in one of the following contexts:
- This system is the only system running on the given World and Resources across all threads
- This system only runs in parallel with other systems that do not conflict with the
archetype_component_access()
orresource_access()
pub fn run_thread_local(&mut self, world: &mut World, resources: &mut Resources)
[src]
pub fn initialize(&mut self, _world: &mut World, _resources: &mut Resources)
[src]
Provided methods
pub fn run(
&mut self,
input: Self::In,
world: &mut World,
resources: &mut Resources
) -> Option<Self::Out>
[src]
&mut self,
input: Self::In,
world: &mut World,
resources: &mut Resources
) -> Option<Self::Out>
Implementors
impl System for RunOnce
[src]
type In = ()
type Out = ShouldRun
pub fn name(&self) -> Cow<'static, str>
[src]
pub fn id(&self) -> SystemId
[src]
pub fn update(&mut self, _world: &World)
[src]
pub fn archetype_component_access(&self) -> &TypeAccess<ArchetypeComponent>
[src]
pub fn resource_access(&self) -> &TypeAccess<TypeId>
[src]
pub fn thread_local_execution(&self) -> ThreadLocalExecution
[src]
pub unsafe fn run_unsafe(
&mut self,
_input: Self::In,
_world: &World,
_resources: &Resources
) -> Option<Self::Out>
[src]
&mut self,
_input: Self::In,
_world: &World,
_resources: &Resources
) -> Option<Self::Out>
pub fn run_thread_local(
&mut self,
_world: &mut World,
_resources: &mut Resources
)
[src]
&mut self,
_world: &mut World,
_resources: &mut Resources
)
pub fn initialize(&mut self, _world: &mut World, _resources: &mut Resources)
[src]
impl System for ThreadLocalSystemFn
[src]
type In = ()
type Out = ()
pub fn name(&self) -> Cow<'static, str>
[src]
pub fn update(&mut self, _world: &World)
[src]
pub fn archetype_component_access(&self) -> &TypeAccess<ArchetypeComponent>
[src]
pub fn resource_access(&self) -> &TypeAccess<TypeId>
[src]
pub fn thread_local_execution(&self) -> ThreadLocalExecution
[src]
pub unsafe fn run_unsafe(
&mut self,
_input: (),
_world: &World,
_resources: &Resources
) -> Option<()>
[src]
&mut self,
_input: (),
_world: &World,
_resources: &Resources
) -> Option<()>
pub fn run_thread_local(&mut self, world: &mut World, resources: &mut Resources)
[src]
pub fn initialize(&mut self, _world: &mut World, _resources: &mut Resources)
[src]
pub fn id(&self) -> SystemId
[src]
impl<In: 'static, Out: 'static> System for InputFuncSystem<In, Out>
[src]
type In = In
type Out = Out
pub fn name(&self) -> Cow<'static, str>
[src]
pub fn id(&self) -> SystemId
[src]
pub fn update(&mut self, world: &World)
[src]
pub fn archetype_component_access(&self) -> &TypeAccess<ArchetypeComponent>
[src]
pub fn resource_access(&self) -> &TypeAccess<TypeId>
[src]
pub fn thread_local_execution(&self) -> ThreadLocalExecution
[src]
pub unsafe fn run_unsafe(
&mut self,
input: In,
world: &World,
resources: &Resources
) -> Option<Out>
[src]
&mut self,
input: In,
world: &World,
resources: &Resources
) -> Option<Out>
pub fn run_thread_local(&mut self, world: &mut World, resources: &mut Resources)
[src]
pub fn initialize(&mut self, world: &mut World, resources: &mut Resources)
[src]
impl<Out: 'static> System for FuncSystem<Out>
[src]
type In = ()
type Out = Out
pub fn name(&self) -> Cow<'static, str>
[src]
pub fn id(&self) -> SystemId
[src]
pub fn update(&mut self, world: &World)
[src]
pub fn archetype_component_access(&self) -> &TypeAccess<ArchetypeComponent>
[src]
pub fn resource_access(&self) -> &TypeAccess<TypeId>
[src]
pub fn thread_local_execution(&self) -> ThreadLocalExecution
[src]
pub unsafe fn run_unsafe(
&mut self,
_input: Self::In,
world: &World,
resources: &Resources
) -> Option<Out>
[src]
&mut self,
_input: Self::In,
world: &World,
resources: &Resources
) -> Option<Out>
pub fn run_thread_local(&mut self, world: &mut World, resources: &mut Resources)
[src]
pub fn initialize(&mut self, world: &mut World, resources: &mut Resources)
[src]
impl<SystemA: System, SystemB: System<In = SystemA::Out>> System for ChainSystem<SystemA, SystemB>
[src]
type In = SystemA::In
type Out = SystemB::Out
pub fn name(&self) -> Cow<'static, str>
[src]
pub fn id(&self) -> SystemId
[src]
pub fn update(&mut self, world: &World)
[src]
pub fn archetype_component_access(&self) -> &TypeAccess<ArchetypeComponent>
[src]
pub fn resource_access(&self) -> &TypeAccess<TypeId>
[src]
pub fn thread_local_execution(&self) -> ThreadLocalExecution
[src]
pub unsafe fn run_unsafe(
&mut self,
input: Self::In,
world: &World,
resources: &Resources
) -> Option<Self::Out>
[src]
&mut self,
input: Self::In,
world: &World,
resources: &Resources
) -> Option<Self::Out>