Class JitteredSquareGrid
Inheritance
System.Object
JitteredSquareGrid
Inherited Members
PlanarLazyMeshGrid.Setup(Func<Vector2Int, MeshData>, Vector2, Vector2, Vector2, Vector2, Boolean, 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(Int32, Nullable<Int32>, ICachePolicy)
Declaration
public JitteredSquareGrid(int chunkSize = 10, Nullable<int> seed = null, ICachePolicy cachePolicy = null)
Parameters
Type |
Name |
Description |
System.Int32 |
chunkSize |
|
System.Nullable<System.Int32> |
seed |
|
ICachePolicy |
cachePolicy |
|
Properties
CoordinateDimension
Declaration
public override int CoordinateDimension { get; }
Property Value
Type |
Description |
System.Int32 |
|
Overrides
Unbounded
Declaration
public override IGrid Unbounded { get; }
Property Value
Overrides
Methods
BoundBy(IBound)
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, Cell) Split(Cell cell)
Parameters
Type |
Name |
Description |
Cell |
cell |
|
Returns
Type |
Description |
System.ValueTuple<Cell, Cell> |
|
Overrides
Implements