Table of Contents

Class LinePlacementInput<TCoordinate, TDirection, TPivot>

Namespace
Root
Assembly
SPZGameAssembly.dll
public class LinePlacementInput<TCoordinate, TDirection, TPivot> : ILinePlacementInput<TPivot, TCoordinate>, IPlacementInput, IActionablePlacementInput, IDraggablePlacementInput<TCoordinate>, IDraggablePlacementInput, IFlippablePlacementInput, IForciblePlacementInput, IPreferredPlacementRotationModifier where TDirection : struct, IDirection3D<TDirection> where TPivot : struct, IPivot<TCoordinate, TDirection, TPivot>

Type Parameters

TCoordinate
TDirection
TPivot
Inheritance
object
LinePlacementInput<TCoordinate, TDirection, TPivot>
Implements
ILinePlacementInput<TPivot, TCoordinate>
Extension Methods

Constructors

LinePlacementInput(GridRotation, bool, bool, bool)

public LinePlacementInput(GridRotation startRotation, bool isFlipped, bool allowParallel, bool allowPerpendicular)

Parameters

startRotation GridRotation
isFlipped bool
allowParallel bool
allowPerpendicular bool

Properties

AllowParallel

public bool AllowParallel { get; }

Property Value

bool

AllowPerpendicular

public bool AllowPerpendicular { get; }

Property Value

bool

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

TryGetDraggedPosition(out TCoordinate)

public bool TryGetDraggedPosition(out TCoordinate position)

Parameters

position TCoordinate

Returns

bool

UpdateDraggedPosition(TCoordinate)

public void UpdateDraggedPosition(TCoordinate position)

Parameters

position TCoordinate