Table of Contents

Class EntityConnectorsSnappingTracker<TDescriptor, TCoordinate, TDirection, TVector, TPivot, TTransform, TEntityModel, TConnector, TConnection>

Namespace
Root
Assembly
SPZGameAssembly.dll
public abstract class EntityConnectorsSnappingTracker<TDescriptor, TCoordinate, TDirection, TVector, TPivot, TTransform, TEntityModel, TConnector, TConnection> : IPlacementTracker where TDescriptor : IEntityDescriptor<TTransform> where TCoordinate : IEquatable<TCoordinate> where TDirection : IDirection3D<TDirection> where TVector : IConvertibleToGlobalPosition<TTransform, TCoordinate> where TPivot : IPivot<TCoordinate, TDirection, TPivot> where TTransform : struct, ITransform<TCoordinate, TTransform> where TEntityModel : IEntityLayoutModel<TDescriptor, TCoordinate, TPivot, TTransform, TConnector, TConnection> where TConnector : IEntityConnectorModel<TPivot> where TConnection : IEntityConnectionModel<TPivot>

Type Parameters

TDescriptor
TCoordinate
TDirection
TVector
TPivot
TTransform
TEntityModel
TConnector
TConnection
Inheritance
object
EntityConnectorsSnappingTracker<TDescriptor, TCoordinate, TDirection, TVector, TPivot, TTransform, TEntityModel, TConnector, TConnection>
Implements
Derived
Extension Methods

Constructors

EntityConnectorsSnappingTracker(IEntityDefinition, IEntityDefinition, IEntityRegisterAdapter<TDescriptor, TCoordinate, TPivot, TTransform, TEntityModel, TConnector, TConnection>, IEntityAccessorAdapter<TDescriptor, TCoordinate, TPivot, TTransform, TEntityModel, TConnector, TConnection>, IEntityDescriptorAdapter<TDescriptor, TTransform>, ILogger)

protected EntityConnectorsSnappingTracker(IEntityDefinition entityDefinition, IEntityDefinition flippedEntityDefinition, IEntityRegisterAdapter<TDescriptor, TCoordinate, TPivot, TTransform, TEntityModel, TConnector, TConnection> entityCreatorAdapter, IEntityAccessorAdapter<TDescriptor, TCoordinate, TPivot, TTransform, TEntityModel, TConnector, TConnection> entityAccessorAdapter, IEntityDescriptorAdapter<TDescriptor, TTransform> entityDescriptorAdapter, ILogger logger)

Parameters

entityDefinition IEntityDefinition
flippedEntityDefinition IEntityDefinition
entityCreatorAdapter IEntityRegisterAdapter<TDescriptor, TCoordinate, TPivot, TTransform, TEntityModel, TConnector, TConnection>
entityAccessorAdapter IEntityAccessorAdapter<TDescriptor, TCoordinate, TPivot, TTransform, TEntityModel, TConnector, TConnection>
entityDescriptorAdapter IEntityDescriptorAdapter<TDescriptor, TTransform>
logger ILogger

Methods

CalculateBestRotationForOptimalConnectivityScore(IReadOnlyMapLayoutModel, GridRotation, TCoordinate, bool)

protected GridRotation CalculateBestRotationForOptimalConnectivityScore(IReadOnlyMapLayoutModel map, GridRotation baseRotation, TCoordinate position, bool isFlipped)

Parameters

map IReadOnlyMapLayoutModel
baseRotation GridRotation
position TCoordinate
isFlipped bool

Returns

GridRotation

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

public abstract 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