Table of Contents

Class CursorCoordinateTracker<TCoordinate>

Namespace
Root
Assembly
SPZGameAssembly.dll
public class CursorCoordinateTracker<TCoordinate> where TCoordinate : struct, IDiscreteCoordinate<TCoordinate>

Type Parameters

TCoordinate
Inheritance
object
CursorCoordinateTracker<TCoordinate>
Extension Methods

Constructors

CursorCoordinateTracker(ICursorCoordinateQuery<TCoordinate>, ICoordinatePathFinder<TCoordinate>, bool)

public CursorCoordinateTracker(ICursorCoordinateQuery<TCoordinate> cursorTileQuery, ICoordinatePathFinder<TCoordinate> coordinatePathFinder, bool axialMovementOnly = false)

Parameters

cursorTileQuery ICursorCoordinateQuery<TCoordinate>
coordinatePathFinder ICoordinatePathFinder<TCoordinate>
axialMovementOnly bool

Properties

CurrentCursorTile

public TCoordinate? CurrentCursorTile { get; protected set; }

Property Value

TCoordinate?

Methods

OnGameUpdate(Viewport)

public void OnGameUpdate(Viewport viewport)

Parameters

viewport Viewport