 | GridExtensionsGetAllNeighborsTCell, TPoint Method |
Returns all neighbors of this point that satisfies the condition,
regardless of whether they are in the grid or not.
Namespace:
Gamelogic.Grids
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntaxpublic static IEnumerable<TPoint> GetAllNeighbors<TCell, TPoint>(
this IGrid<TCell, TPoint> grid,
TPoint point,
Func<TPoint, bool> includePoint
)
where TPoint : Object, IGridPoint<TPoint>
Parameters
- grid
- Type: Gamelogic.GridsIGridTCell, TPoint
- point
- Type: TPoint
- includePoint
- Type: SystemFuncTPoint, Boolean
Type Parameters
- TCell
- TPoint
Return Value
Type:
IEnumerableTPointUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IGridTCell,
TPoint. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also