 | AlgorithmsGetConnectedSetTCell, TPoint Method |
Namespace:
Gamelogic.Grids
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntaxpublic static HashSet<TPoint> GetConnectedSet<TCell, TPoint>(
IGrid<TCell, TPoint> grid,
TPoint point,
Func<TPoint, TPoint, bool> isNeighborsConnected
)
where TPoint : Object, IGridPoint<TPoint>
Parameters
- grid
- Type: Gamelogic.GridsIGridTCell, TPoint
- point
- Type: TPoint
- isNeighborsConnected
- Type: SystemFuncTPoint, TPoint, Boolean
The function to use to check whether two neighbors are connected
Type Parameters
- TCell
- The type of cell of the grid that this algorithm takes.
- TPoint
- The type of point of the grid that this algorithm takes.
Return Value
Type:
HashSetTPointReturns a list of points connected to the given point.
See Also