Class JitteredSquareGrid
Inheritance
JitteredSquareGrid
Inherited Members
PlanarLazyMeshGrid.Setup(Func<Vector2Int, MeshData>, Vector2, Vector2, Vector2, Vector2, bool, MeshGridOptions, SquareBound, IEnumerable<ICellType>, ICachePolicy)
Assembly: Sylves.dll
Syntax
public class JitteredSquareGrid : PlanarLazyMeshGrid, IGrid
Constructors
JitteredSquareGrid(JitteredSquareGrid, SquareBound)
Declaration
protected JitteredSquareGrid(JitteredSquareGrid other, SquareBound bound)
Parameters
JitteredSquareGrid(int, int?, ICachePolicy)
Declaration
public JitteredSquareGrid(int chunkSize = 10, int? seed = null, ICachePolicy cachePolicy = null)
Parameters
Properties
CoordinateDimension
Returns the number of co-ordinates needed to identify a cell.
i.e.
dim 1 means cell.y === 0 and cell.z === 0
dim 2 means cell.z === 0
dim 3 means all three co-ordinates are relevant.
Declaration
public override int CoordinateDimension { get; }
Property Value
Overrides
Unbounded
Returns the grid with any bounds removed.
Declaration
public override IGrid Unbounded { get; }
Property Value
Overrides
Methods
BoundBy(IBound)
Returns a new grid restricted to just the given bound.
If the grid already has a bound, the new grid will have the intersection of both.
Declaration
public override IGrid BoundBy(IBound bound)
Parameters
| Type |
Name |
Description |
| IBound |
bound |
|
Returns
Overrides
Combine(Cell, Cell)
Declaration
protected override Cell Combine(Cell childCell, Cell chunkCell)
Parameters
| Type |
Name |
Description |
| Cell |
childCell |
|
| Cell |
chunkCell |
|
Returns
Overrides
GetPointInCell(Cell)
Declaration
protected virtual Vector2 GetPointInCell(Cell cell)
Parameters
| Type |
Name |
Description |
| Cell |
cell |
|
Returns
Split(Cell)
Declaration
protected override (Cell childCell, Cell chunkCell) Split(Cell cell)
Parameters
| Type |
Name |
Description |
| Cell |
cell |
|
Returns
Overrides
Implements
Extension Methods