You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Both remove the add_systems(.., run_if(on_action(..))) boilerplate: - `#[action_handler(path)]` derive attribute colocates a handler with its action variant and wires it for its kind — a gated plain system for instant/toggle, a typed pipe (axis_value/scalar_value) plus gate for axis/scalar. The derive generates an `impl GameActionHandlers` (empty when no variant declares one), which ActionsPlugin calls on build. - `App::on_action(schedule, action, system)` (AppActionExt) — the explicit, no-macro form that keeps registration visible in main. ActionsPlugin's Plugin impl now requires T: GameActionHandlers (satisfied automatically by the derive). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> |
6 days ago | |
|---|---|---|
| .. | ||
| macros | 6 days ago | |
| src | 6 days ago | |
| Cargo.lock | 1 week ago | |
| Cargo.toml | 1 week ago | |