Table of Contents

Class PlacementConnectorDrawer<TPlacement, TDescriptor, TTransform, TCoordinate, TDirection, TPivot, TConnector, TConnection>

Namespace
Root
Assembly
SPZGameAssembly.dll
public class PlacementConnectorDrawer<TPlacement, TDescriptor, TTransform, TCoordinate, TDirection, TPivot, TConnector, TConnection> where TPlacement : IEntityPlacement<TDescriptor> where TDescriptor : IEntityDescriptor<TTransform> where TTransform : ITransform<TCoordinate, TTransform> where TCoordinate : IDiscreteCoordinateTranslatableByDirection<TCoordinate, TDirection> where TDirection : unmanaged, IDirection<TDirection> where TPivot : struct, IPivot<TCoordinate, TDirection, TPivot> where TConnector : IEntityConnectorModel<TPivot> where TConnection : IEntityConnectionModel<TPivot>

Type Parameters

TPlacement
TDescriptor
TTransform
TCoordinate
TDirection
TPivot
TConnector
TConnection
Inheritance
object
PlacementConnectorDrawer<TPlacement, TDescriptor, TTransform, TCoordinate, TDirection, TPivot, TConnector, TConnection>
Extension Methods

Constructors

PlacementConnectorDrawer(IConnectionFactory<TConnection, TConnector>, Dictionary<Type, IPlacementConnectorDataProvider>, MaterialReference, IEntityAccessorAdapter<TDescriptor, TCoordinate>, IEntityPlacementAdapter<TPlacement, TDescriptor, TTransform, TCoordinate>)

public PlacementConnectorDrawer(IConnectionFactory<TConnection, TConnector> connectionFactory, Dictionary<Type, IPlacementConnectorDataProvider> connectorToVisualResources, MaterialReference conflictMaterial, IEntityAccessorAdapter<TDescriptor, TCoordinate> accessorAdapter, IEntityPlacementAdapter<TPlacement, TDescriptor, TTransform, TCoordinate> placementAdapter)

Parameters

connectionFactory IConnectionFactory<TConnection, TConnector>
connectorToVisualResources Dictionary<Type, IPlacementConnectorDataProvider>
conflictMaterial MaterialReference
accessorAdapter IEntityAccessorAdapter<TDescriptor, TCoordinate>
placementAdapter IEntityPlacementAdapter<TPlacement, TDescriptor, TTransform, TCoordinate>

Methods

DrawConnectors(IPlacementData, IList<ConnectorDrawData<TPivot>>, IReadOnlyList<TPlacement>, PlacementExtendedMapLayout)

public void DrawConnectors(IPlacementData placementData, IList<ConnectorDrawData<TPivot>> drawData, IReadOnlyList<TPlacement> entities, PlacementExtendedMapLayout extendedMapLayout)

Parameters

placementData IPlacementData
drawData IList<ConnectorDrawData<TPivot>>
entities IReadOnlyList<TPlacement>
extendedMapLayout PlacementExtendedMapLayout