Skip to main content

path_found_listener

Function path_found_listener 

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