 | GridExtensionsCloneStructureTNewCell, TPoint Method (IGridTPoint, FuncTPoint, TNewCell) |
Clones the given grid, and fills the cell at each point of the cloned grid with the value
returned by createValue when the point is passed as a parameter.
Namespace:
Gamelogic.Grids
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax[VersionAttribute(1, 10, 0)]
public static IGrid<TNewCell, TPoint> CloneStructure<TNewCell, TPoint>(
this IGrid<TPoint> grid,
Func<TPoint, TNewCell> createValue
)
where TPoint : Object, IGridPoint<TPoint>
Parameters
- grid
- Type: Gamelogic.GridsIGridTPoint
- createValue
- Type: SystemFuncTPoint, TNewCell
Type Parameters
- TNewCell
- TPoint
Return Value
Type:
IGridTNewCell,
TPointUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IGridTPoint. 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