We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
483dafa
#[resource]
#[derive(Resource)] #[resource(plugin = MyPlugin, init = Message("Hello, world!".to_string())] struct Message(String);
#[event]
app.add_event::<MyEvent>()
#[derive(Event)] #[event(plugin = MyPlugin)] struct UserJoined(String);
#[system]
use
mod my_mod { pub(super) fn hello_world() { info!("Hello, world!"); } } #[system(plugin = MyPlugin, schedule = Startup)] use my_mod::hello_world;
schedule
OnEnter(MyState::MyVariant)