Class MousePlacementTracker<TCoordinate>
- Namespace
- Root
- Assembly
- SPZGameAssembly.dll
public class MousePlacementTracker<TCoordinate> : IDraggablePlacementTracker, IMousePlacementTracker, IPlacementTracker where TCoordinate : struct, IDiscreteCoordinate<TCoordinate>
Type Parameters
TCoordinate
- Inheritance
-
objectMousePlacementTracker<TCoordinate>
- Implements
- Extension Methods
Constructors
MousePlacementTracker(string, CursorCoordinateTracker<TCoordinate>)
public MousePlacementTracker(string mouseDownKeybinding, CursorCoordinateTracker<TCoordinate> mouseTracker)
Parameters
mouseDownKeybindingstringmouseTrackerCursorCoordinateTracker<TCoordinate>
Properties
OnDragToNewPosition
public IEvent OnDragToNewPosition { get; }
Property Value
OnStartDrag
public IEvent OnStartDrag { get; }
Property Value
OnStopDrag
public IEvent OnStopDrag { get; }
Property Value
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
inputContextInputDownstreamContextviewportViewportplacementInputPlacementInputHoldermapIReadOnlyMapLayoutModelplacementDataIPlacementDataplacementErrorsIPlacementErrorsinputUpdatedbool