Table of Contents

Class ReplacementRulesProcessor<TPlacement, TDescriptor, TTransform, TCoordinate, TDirection, TVector, TLocalPivot, TGlobalPivot, TConnector, TConnection>

Namespace
Root
Assembly
SPZGameAssembly.dll
public class ReplacementRulesProcessor<TPlacement, TDescriptor, TTransform, TCoordinate, TDirection, TVector, TLocalPivot, TGlobalPivot, TConnector, TConnection> : IReplacementRulesProcessor, IPlacementProcessor where TPlacement : IEntityPlacement<TDescriptor> where TDescriptor : struct, IEntityDescriptor<TTransform>, IEquatable<TDescriptor> where TTransform : ITransform<TCoordinate, TTransform> where TCoordinate : struct, IDiscreteCoordinateTranslatableByVector<TCoordinate, TVector>, IDiscreteCoordinateTranslatableByDirection<TCoordinate, TDirection> where TDirection : unmanaged, IDirection<TDirection> where TVector : IVector<TVector>, IConvertibleToGlobalPosition<TTransform, TCoordinate> where TLocalPivot : IPivot<TVector, TDirection, TLocalPivot>, IConvertibleToGlobalPivot<TTransform, TGlobalPivot> where TGlobalPivot : struct, IConvertibleToLocalPivot<TTransform, TLocalPivot>, IPivot<TCoordinate, TDirection, TGlobalPivot> where TConnector : struct, IEntityConnectorModel<TGlobalPivot>, IEquatable<TConnector> where TConnection : IEntityConnectionModel<TGlobalPivot>

Type Parameters

TPlacement
TDescriptor
TTransform
TCoordinate
TDirection
TVector
TLocalPivot
TGlobalPivot
TConnector
TConnection
Inheritance
object
ReplacementRulesProcessor<TPlacement, TDescriptor, TTransform, TCoordinate, TDirection, TVector, TLocalPivot, TGlobalPivot, TConnector, TConnection>
Implements
Extension Methods

Constructors

ReplacementRulesProcessor(IEntityPlacementAdapter<TPlacement, TDescriptor, TTransform, TCoordinate>, IEntityAccessorAdapter<TDescriptor, TCoordinate>, IConnectionFactory<TConnection, TConnector>)

public ReplacementRulesProcessor(IEntityPlacementAdapter<TPlacement, TDescriptor, TTransform, TCoordinate> placementDefinitionAdapter, IEntityAccessorAdapter<TDescriptor, TCoordinate> entityMapAccessor, IConnectionFactory<TConnection, TConnector> connectionFactory)

Parameters

placementDefinitionAdapter IEntityPlacementAdapter<TPlacement, TDescriptor, TTransform, TCoordinate>
entityMapAccessor IEntityAccessorAdapter<TDescriptor, TCoordinate>
connectionFactory IConnectionFactory<TConnection, TConnector>

Methods

Process(IPlacementData, PlacementInputHolder, IMapModel, IReadOnlyMapLayoutModel, IPlacementErrors)

public void Process(IPlacementData placementData, PlacementInputHolder placementInput, IMapModel realMap, IReadOnlyMapLayoutModel virtualMap, IPlacementErrors placementErrors)

Parameters

placementData IPlacementData
placementInput PlacementInputHolder
realMap IMapModel
virtualMap IReadOnlyMapLayoutModel
placementErrors IPlacementErrors