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
TPlacementTDescriptorTTransformTCoordinateTDirectionTPivotTConnectorTConnection
- Inheritance
-
objectPlacementConnectorDrawer<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
connectionFactoryIConnectionFactory<TConnection, TConnector>connectorToVisualResourcesDictionary<Type, IPlacementConnectorDataProvider>conflictMaterialMaterialReferenceaccessorAdapterIEntityAccessorAdapter<TDescriptor, TCoordinate>placementAdapterIEntityPlacementAdapter<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
placementDataIPlacementDatadrawDataIList<ConnectorDrawData<TPivot>>entitiesIReadOnlyList<TPlacement>extendedMapLayoutPlacementExtendedMapLayout