Function findRouteCached

  • Provide a function like Game.map.findRoute but with cache. It requires than routeCallback is deterministic

    Parameters

    • Optional routeCallback: ((to, from) => number)

      optional function computing the cost to enter a room

    Returns FindRouteFn

    a function like findRoute

Generated using TypeDoc