Class SinglePlacementInput<TCoordinate, TDirection, TPivot>
- Namespace
- Root
- Assembly
- SPZGameAssembly.dll
public class SinglePlacementInput<TCoordinate, TDirection, TPivot> : ISinglePlacementInput<TPivot, TCoordinate>, IPlacementInput, IActionablePlacementInput, IDraggablePlacementInput<TCoordinate>, IDraggablePlacementInput, IFlippablePlacementInput, IForciblePlacementInput, IRotatablePlacementInput, IPreferredPlacementRotationModifier where TCoordinate : IDiscreteCoordinate<TCoordinate> where TDirection : struct, IDirection3D<TDirection> where TPivot : struct, IPivot<TCoordinate, TDirection, TPivot>
Type Parameters
TCoordinateTDirectionTPivot
- Inheritance
-
objectSinglePlacementInput<TCoordinate, TDirection, TPivot>
- Implements
-
ISinglePlacementInput<TPivot, TCoordinate>IDraggablePlacementInput<TCoordinate>
- Extension Methods
Constructors
SinglePlacementInput(GridRotation, bool)
public SinglePlacementInput(GridRotation startRotation, bool isFlipped)
Parameters
startRotationGridRotationisFlippedbool
Properties
Cancelled
public bool Cancelled { get; set; }
Property Value
- bool
Confirmed
public bool Confirmed { get; set; }
Property Value
- bool
EndPivot
public TPivot EndPivot { get; set; }
Property Value
- TPivot
IsFlipped
public bool IsFlipped { get; set; }
Property Value
- bool
PreferredRotation
public GridRotation PreferredRotation { get; set; }
Property Value
StartPivot
public TPivot StartPivot { get; set; }
Property Value
- TPivot
StartedDragging
public bool StartedDragging { get; set; }
Property Value
- bool
StartedPlacement
public bool StartedPlacement { get; set; }
Property Value
- bool
UseForce
public bool UseForce { get; set; }
Property Value
- bool
Methods
Rotate(GridRotation)
public void Rotate(GridRotation rotation)
Parameters
rotationGridRotation
TryGetDraggedPosition(out TCoordinate)
public bool TryGetDraggedPosition(out TCoordinate position)
Parameters
positionTCoordinate
Returns
- bool
UpdateDraggedPosition(TCoordinate)
public void UpdateDraggedPosition(TCoordinate position)
Parameters
positionTCoordinate