[][src]Trait bevy_ecs::System

pub trait System: Send + Sync {
    fn name(&self) -> Cow<'static, str>;
fn id(&self) -> SystemId;
fn update_archetype_access(&mut self, world: &World);
fn archetype_access(&self) -> &ArchetypeAccess;
fn resource_access(&self) -> &TypeAccess;
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_archetype_access(&mut self, world: &World)

fn archetype_access(&self) -> &ArchetypeAccess

fn resource_access(&self) -> &TypeAccess

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...