Skip to main content

System

Trait System 

Source
pub trait System: Send + Sync {
    // Required methods
    fn run(&mut self, world: &World, dt: f32);
    fn access_info(&self) -> AccessInfo;
}
Expand description

Bir sistem: her frame’de çalıştırılabilir mantık birimi.

Required Methods§

Source

fn run(&mut self, world: &World, dt: f32)

Source

fn access_info(&self) -> AccessInfo

Trait Implementations§

Source§

impl IntoSystem<()> for Box<dyn System>

Source§

fn into_system(self) -> Box<dyn System>

Source§

impl System for Box<dyn System>

Source§

fn run(&mut self, world: &World, dt: f32)

Source§

fn access_info(&self) -> AccessInfo

Source§

impl SystemExtRunIf for Box<dyn System>

Source§

fn run_if_sys<ParamC, Cond: IntoCondition<ParamC>>( self, cond: Cond, ) -> Box<dyn System>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl System for Box<dyn System>

Source§

fn run(&mut self, world: &World, dt: f32)

Source§

fn access_info(&self) -> AccessInfo

Implementors§

Source§

impl System for ConditionalSystem

Source§

impl System for PipeSystem

Source§

impl<F> System for F
where F: FnMut(&World, f32) + Send + Sync + 'static,