interface GridMeasurePathResultSegment {
    from: GridMeasurePathResultWaypoint;
    to: GridMeasurePathResultWaypoint;
    teleport: boolean;
    distance: number;
    spaces: number;
    cost: number;
}

Properties

The waypoint that this segment starts from.

The waypoint that this segment goes to.

teleport: boolean

Is teleporation?

distance: number

The distance travelled in grid units along this segment.

spaces: number

The number of spaces moved along this segment.

cost: number

The cost of the direct path (BaseGrid#getDirectPath) between the two waypoints.