Table of Contents

Class BlockGrid<TCell>

Namespace
Gamelogic.Grids.Examples
Assembly
Assembly-CSharp.dll
public class BlockGrid<TCell> : LayeredGrid<TCell, RectPoint>, IGrid<TCell, LayeredPoint<RectPoint>>, IGrid<LayeredPoint<RectPoint>>, IGridSpace<LayeredPoint<RectPoint>>, IEnumerable<LayeredPoint<RectPoint>>, IEnumerable

Type Parameters

TCell
Inheritance
BlockGrid<TCell>
Implements
Inherited Members
Extension Methods

Constructors

BlockGrid(int, int, int)

public BlockGrid(int width, int length, int height)

Parameters

width int
length int
height int

Methods

GetAllNeighbors(LayeredPoint<RectPoint>)

This method is not implemented. If you need a layered grid with neighbors configured (for example, if you want to use path finding or connected shapes), you need to make your own layered grid by extending from this one, and implement this method.

public override IEnumerable<LayeredPoint<RectPoint>> GetAllNeighbors(LayeredPoint<RectPoint> point)

Parameters

point LayeredPoint<RectPoint>

Returns

IEnumerable<LayeredPoint<RectPoint>>