Trait rfw::ecs::system::SystemParam[][src]

pub trait SystemParam {
    type Fetch: for<'a> SystemParamFetch<'a>;
}
Expand description

A parameter that can be used in a system function

Derive

This trait can be derived.

use bevy_ecs::system::SystemParam;

#[derive(SystemParam)]
pub struct MyParam<'a> {
    foo: Res<'a, usize>,
}

fn my_system(param: MyParam) {
    // Access the resource through `param.foo`
}

Associated Types

Implementations on Foreign Types

Implementors