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
pathList<CoreVector2I>The calculated path.
distancefloatThe total path distance/cost.
startCoreVector2IThe start grid position.
endCoreVector2IThe end grid position.
Properties
Distance
Gets the total path distance/cost.
public float Distance { get; }
Property Value
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