[][src]Trait bevy::ecs::System

pub trait System: Send + Sync {
    fn name(&self) -> Cow<'static, str>;
fn id(&self) -> SystemId;
fn update(&mut self, world: &World);
fn archetype_component_access(&self) -> &TypeAccess<ArchetypeComponent>;
fn resource_access(&self) -> &TypeAccess<TypeId>;
fn thread_local_execution(&self) -> ThreadLocalExecution;
fn run(&mut self, world: &World, resources: &Resources);
fn run_thread_local(&mut self, world: &mut World, resources: &mut Resources); fn initialize(&mut self, _world: &mut World, _resources: &mut Resources) { ... } }

An ECS system that can be added to a Schedule

Required methods

fn name(&self) -> Cow<'static, str>

fn id(&self) -> SystemId

fn update(&mut self, world: &World)

fn archetype_component_access(&self) -> &TypeAccess<ArchetypeComponent>

fn resource_access(&self) -> &TypeAccess<TypeId>

fn thread_local_execution(&self) -> ThreadLocalExecution

fn run(&mut self, world: &World, resources: &Resources)

fn run_thread_local(&mut self, world: &mut World, resources: &mut Resources)

Loading content...

Provided methods

fn initialize(&mut self, _world: &mut World, _resources: &mut Resources)

Loading content...

Implementors

Loading content...