Interface IConnectionPointSelector
Interface for implementing an algorithm for selecting the positions to connect in order to connect two given areas.
Namespace: GoRogue.MapGeneration.ConnectionPointSelectors
Assembly: GoRogue.dll
Syntax
public interface IConnectionPointSelector
Methods
View SourceSelectConnectionPoints(IReadOnlyArea, IReadOnlyArea)
Implements the algorithm. Returns pair of positions -- one position in area1
to use, and on position in area2
to use.
Declaration
AreaConnectionPointPair SelectConnectionPoints(IReadOnlyArea area1, IReadOnlyArea area2)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyArea | area1 | First Area to connect. |
IReadOnlyArea | area2 | Second Area to connect. |
Returns
Type | Description |
---|---|
AreaConnectionPointPair | A pair of positions (one from each Area) to connect. |