optional following path movement speed

This commit is contained in:
Hanusiak Piotr 2022-01-19 13:53:06 +01:00
parent 9b94705177
commit c023c4f8fd
5 changed files with 30 additions and 8 deletions

View file

@ -84,7 +84,7 @@ export class WorkadventurePlayerCommands extends IframeApiContribution<Workadven
});
}
public async moveTo(x: number, y: number, speed: number): Promise<{ x: number; y: number }> {
public async moveTo(x: number, y: number, speed?: number): Promise<{ x: number; y: number }> {
return await queryWorkadventure({
type: "movePlayerTo",
data: { x, y, speed },