Table of Contents

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

TCoordinate
TDirection
TPivot
Inheritance
object
SinglePlacementInput<TCoordinate, TDirection, TPivot>
Implements
ISinglePlacementInput<TPivot, TCoordinate>
Extension Methods

Constructors

SinglePlacementInput(GridRotation, bool)

public SinglePlacementInput(GridRotation startRotation, bool isFlipped)

Parameters

startRotation GridRotation
isFlipped bool

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

GridRotation

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

rotation GridRotation

TryGetDraggedPosition(out TCoordinate)

public bool TryGetDraggedPosition(out TCoordinate position)

Parameters

position TCoordinate

Returns

bool

UpdateDraggedPosition(TCoordinate)

public void UpdateDraggedPosition(TCoordinate position)

Parameters

position TCoordinate