Trait bones_lib::ecs::prelude::System

pub trait System<In, Out> {
    // Required methods
    fn run(&mut self, world: &World, input: In) -> Out;
    fn name(&self) -> &str;
}
Expand description

Trait implemented by systems.

Required Methods§

fn run(&mut self, world: &World, input: In) -> Out

Run the system.

fn name(&self) -> &str

Get a best-effort name for the system, used in diagnostics.

Implementors§

§

impl<In, Out> System<In, Out> for StaticSystem<In, Out>