Skip to content

Commit

Permalink
chore: rename remaining things to pathfinder
Browse files Browse the repository at this point in the history
  • Loading branch information
lajbel committed Oct 6, 2024
1 parent 5afe61c commit 545feca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/level/pathfinder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export interface PathfinderMapComp extends Comp {

export interface PathfinderMapCompOpt {
/*
* The graph to use for navigation. If null, the ancestors are queried for a navigatorMap component.
* The graph to use for navigation. If null, the ancestors are queried for a pathfinderMap component.
*/
graph?: Graph;
}
Expand All @@ -30,7 +30,7 @@ export function pathfinderMap(
): PathfinderMapComp {
let graph = opts.graph;
return {
id: "navigatorMap",
id: "pathfinderMap",
get graph(): Graph | undefined {
return graph;
},
Expand Down Expand Up @@ -61,7 +61,7 @@ export interface PathfinderComp extends Comp {

export interface PathfinderCompOpt {
/*
* The graph to use for navigation. If null, the ancestors are queried for a navigatorMap component.
* The graph to use for navigation. If null, the ancestors are queried for a pathfinderMap component.
*/
graph?: Graph;
/*
Expand All @@ -75,7 +75,7 @@ export function pathfinder(
): PathfinderComp {
let graph = opts.graph;
return {
id: "navigator",
id: "pathfinder",
require: ["pos"],
navigateTo(
this: GameObj<PathfinderComp | PosComp>,
Expand All @@ -91,7 +91,7 @@ export function pathfinder(
let parent: GameObj<any> | null =
(this as unknown as GameObj<PathfinderComp>).parent;
while (parent) {
if (parent.is("navigatormap")) {
if (parent.is("pathfinderMap")) {
return parent.graph;
}
parent = parent.parent;
Expand Down

0 comments on commit 545feca

Please sign in to comment.