Esempio n. 1
0
 public AsyncPathfindStore(NavigationNode start, NavigationNode end, bool permitChasmCrossing, PathResultDelegate callBack)
 {
     Start          = start;
     End            = end;
     PermitCrossing = permitChasmCrossing;
     Callback       = callBack;
 }
 // ReSharper disable once InconsistentNaming
 private TResult GetPathResult <TResult>(PathResultDelegate <TResult> callback) => callback(_path);
Esempio n. 3
0
        public void AsynchronousFindPath(NavigationNode startNode, NavigationNode endNode, bool permitChasmCrossing, PathResultDelegate callBack)
        {
            AsyncPathfindStore store = new AsyncPathfindStore(startNode, endNode, permitChasmCrossing, callBack);

            outstandingRequests.Add(store);
            //callBack(FindPath(startNode, endNode, permitChasmCrossing));
        }