Interface IAreaConnectionPointSelector
Interface for implementing an algorithm for selecting the positions to connect in order to connect two given map areas.
Namespace: GoRogue.MapGeneration.Connectors
Assembly: GoRogue.dll
Syntax
public interface IAreaConnectionPointSelector
Methods
| Improve this Doc View SourceSelectConnectionPoints(IReadOnlyMapArea, IReadOnlyMapArea)
Implements the algorithm. Returns a tuple of two positions -- the first position is the
position in area1 to use, the second position is the position in
area2 to use.
Declaration
Tuple<Coord, Coord> SelectConnectionPoints(IReadOnlyMapArea area1, IReadOnlyMapArea area2)
Parameters
| Type | Name | Description |
|---|---|---|
| IReadOnlyMapArea | area1 | First MapArea to connect. |
| IReadOnlyMapArea | area2 | Second MapArea to connect. |
Returns
| Type | Description |
|---|---|
| System.Tuple<Coord, Coord> | A tuple containing the coordinates from each MapArea to connect -- the first item in the tuple is the position in area1, the second is the position in area2. |