Fixed declarations of Phaser.Plugin.AStar in phaser.d.ts.

This commit is contained in:
Lauri Härsilä 2017-01-09 05:42:54 +02:00
parent 9aa52b5c0a
commit a2da3c46d3

View file

@ -3663,8 +3663,8 @@ declare module Phaser {
class AStar extends Phaser.Plugin {
static VERSION: string;
static COST_ORTHAGONAL: number;
static COST_DIAGAONAL: number;
static COST_ORTHOGONAL: number;
static COST_DIAGONAL: number;
static DISTANCE_MANHATTEN: string;
static DISTANCE_EUCLIDIAN: string;
@ -3698,9 +3698,9 @@ declare module Phaser {
class AStarPath {
constructor(nodes: Phaser.Plugin.AStar.AStarNode[], start: Phaser.Plugin.AStar.AStarNode, goal: Phaser.Plugin.AStar.AStarNode);
constructor(nodes?: {x: number, y: number}[], start?: Phaser.Plugin.AStar.AStarNode, goal?: Phaser.Plugin.AStar.AStarNode);
nodes: Phaser.Plugin.AStar.AStarNode[];
nodes: {x: number, y: number}[];
start: Phaser.Plugin.AStar.AStarNode;
goal: Phaser.Plugin.AStar.AStarNode;
visited: Phaser.Plugin.AStar.AStarNode[];