system

Attribute Macro system 

Source
#[system]
Expand description

Marks a function as a system

System functions must have exactly one parameter: ctx: &mut Context

§Example

#[system]
fn movement(ctx: &mut Context) {
    // ...
}