This commit is contained in:
Scott Anderson
2025-08-24 21:32:32 -04:00
parent eaefecb00f
commit 809d60ff58
95 changed files with 1385 additions and 1424 deletions
+3 -4
View File
@@ -148,8 +148,7 @@ export class PathFinder {
}
if (this.game.manhattanDist(curr, dst) < dist) {
// eslint-disable-next-line sort-keys
return { type: PathFindResultType.Completed, node: curr };
return { node: curr, type: PathFindResultType.Completed };
}
if (this.computeFinished) {
@@ -165,8 +164,8 @@ export class PathFinder {
if (tile === undefined) {
throw new Error("missing tile");
}
// eslint-disable-next-line sort-keys
return { type: PathFindResultType.NextTile, node: tile };
return { node: tile, type: PathFindResultType.NextTile };
}
}