Skip to main content

goto_listener

Function goto_listener 

Source
pub fn goto_listener(
    commands: Commands<'_, '_>,
    events: MessageReader<'_, '_, GotoEvent>,
    path_found_events: MessageWriter<'_, PathFoundEvent>,
    query: Query<'_, '_, (&mut Pathfinder, Option<&mut ExecutingPath>, Option<&SimulatingPathState>, &Position, &WorldName, &Inventory, Option<&CustomPathfinderState>)>,
    worlds: Res<'_, Worlds>,
)