PathfindServices

Namespace: Murder.Core.Ai
Assembly: Murder.dll

public static class PathfindServices

⭐ Methods

FindPath(Map, World, Point, Point, PathfindAlgorithmKind)

public ImmutableDictionary<TKey, TValue> FindPath(Map map, World world, Point initial, Point target, PathfindAlgorithmKind kind)

Find a path between and .

Parameters
map Map
world World
initial Point
target Point
kind PathfindAlgorithmKind

Returns
ImmutableDictionary<TKey, TValue>

UpdatePathfind(World)

public void UpdatePathfind(World world)

Update all cached pathfind on a map change.

Parameters
world World