Table of Contents

Class MousePlacementTracker<TCoordinate>

Namespace
Root
Assembly
SPZGameAssembly.dll
public class MousePlacementTracker<TCoordinate> : IDraggablePlacementTracker, IMousePlacementTracker, IPlacementTracker where TCoordinate : struct, IDiscreteCoordinate<TCoordinate>

Type Parameters

TCoordinate
Inheritance
object
MousePlacementTracker<TCoordinate>
Implements
Extension Methods

Constructors

MousePlacementTracker(string, CursorCoordinateTracker<TCoordinate>)

public MousePlacementTracker(string mouseDownKeybinding, CursorCoordinateTracker<TCoordinate> mouseTracker)

Parameters

mouseDownKeybinding string
mouseTracker CursorCoordinateTracker<TCoordinate>

Properties

OnDragToNewPosition

public IEvent OnDragToNewPosition { get; }

Property Value

IEvent

OnStartDrag

public IEvent OnStartDrag { get; }

Property Value

IEvent

OnStopDrag

public IEvent OnStopDrag { get; }

Property Value

IEvent

Methods

Track(InputDownstreamContext, Viewport, PlacementInputHolder, IReadOnlyMapLayoutModel, IPlacementData, IPlacementErrors, out bool)

public void Track(InputDownstreamContext inputContext, Viewport viewport, PlacementInputHolder placementInput, IReadOnlyMapLayoutModel map, IPlacementData placementData, IPlacementErrors placementErrors, out bool inputUpdated)

Parameters

inputContext InputDownstreamContext
viewport Viewport
placementInput PlacementInputHolder
map IReadOnlyMapLayoutModel
placementData IPlacementData
placementErrors IPlacementErrors
inputUpdated bool