Skip to main content

dispatch_command

Function dispatch_command 

Source
pub(crate) fn dispatch_command(world: &World, command: McpCommand)
Expand description

Queue one MCP command against the world it names.

Running it needs &mut World, so it is queued as a command and applied between two event callbacks. The host answers list_worlds itself: it is the only one that knows which entities carry a world and what they are called.