use bevy::prelude::In; use bevy_flurx::action::once; use bevy_flurx::prelude::Action; use bevy_flurx_ipc::component::IpcHandlers; use bevy_flurx_ipc::prelude::WebviewEntity; use bevy_flurx_ipc_macro::command; #[command] fn hello1(name: In) -> Action { once::run(|In(_): In| {}).with(name.0) } #[command] fn hello2(In(name): In) -> Action { once::run(|In(_): In| {}).with(name) } #[command] fn hello3(name: In, WebviewEntity(_): WebviewEntity) -> Action { once::run(|In(_): In| {}).with(name.0) } fn main() { IpcHandlers::new(hello1) .with(hello2) .with(hello3); }