Table of Contents

Class PathCalculatedEventArgs

Namespace
MoonBark.GridPlacement.Core.Services.Targeting
Assembly
MoonBark.GridPlacement.Core.dll

Event arguments for path calculation success.

public class PathCalculatedEventArgs : EventArgs
Inheritance
PathCalculatedEventArgs
Inherited Members

Constructors

PathCalculatedEventArgs(List<CoreVector2I>, float, CoreVector2I, CoreVector2I)

Initializes a new instance of the PathCalculatedEventArgs class.

public PathCalculatedEventArgs(List<CoreVector2I> path, float distance, CoreVector2I start, CoreVector2I end)

Parameters

path List<CoreVector2I>

The calculated path.

distance float

The total path distance/cost.

start CoreVector2I

The start grid position.

end CoreVector2I

The end grid position.

Properties

Distance

Gets the total path distance/cost.

public float Distance { get; }

Property Value

float

End

Gets the ending grid position for the path.

public CoreVector2I End { get; }

Property Value

CoreVector2I

Path

Gets the calculated path, including start and end positions.

public List<CoreVector2I> Path { get; }

Property Value

List<CoreVector2I>

Start

Gets the starting grid position for the path.

public CoreVector2I Start { get; }

Property Value

CoreVector2I