Pathfinding manager will now return path steps in pixel units by default

This commit is contained in:
Hanusiak Piotr
2022-01-19 12:30:08 +01:00
parent f96eac4737
commit f78392ceab
7 changed files with 50 additions and 45 deletions
+3 -3
View File
@@ -34,7 +34,7 @@ import type { ChangeZoneEvent } from "./ChangeZoneEvent";
import type { CameraSetEvent } from "./CameraSetEvent";
import type { CameraFollowPlayerEvent } from "./CameraFollowPlayerEvent";
import { isColorEvent } from "./ColorEvent";
import { isWalkPlayerToEventConfig } from "./WalkPlayerToEvent";
import { isMovePlayerToEventConfig } from "./MovePlayerToEvent";
export interface TypedMessageEvent<T> extends MessageEvent {
data: T;
@@ -174,8 +174,8 @@ export const iframeQueryMapTypeGuards = {
query: tg.isUndefined,
answer: isPlayerPosition,
},
walkPlayerTo: {
query: isWalkPlayerToEventConfig,
movePlayerTo: {
query: isMovePlayerToEventConfig,
answer: isPlayerPosition,
},
};