Class JitteredSquareGrid
Implements
Inherited Members
Namespace: Sylves
Assembly: Sylves.dll
Syntax
public class JitteredSquareGrid : PlanarLazyMeshGrid, IGrid
Constructors
JitteredSquareGrid(JitteredSquareGrid, SquareBound)
Declaration
protected JitteredSquareGrid(JitteredSquareGrid other, SquareBound bound)
Parameters
| Type | Name | Description |
|---|---|---|
| JitteredSquareGrid | other | |
| SquareBound | bound |
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
| Type | Description |
|---|---|
| IGrid |
Overrides
Methods
BoundBy(IBound)
Declaration
public override IGrid BoundBy(IBound bound)
Parameters
| Type | Name | Description |
|---|---|---|
| IBound | bound |
Returns
| Type | Description |
|---|---|
| IGrid |
Overrides
Combine(Cell, Cell)
Declaration
protected override Cell Combine(Cell childCell, Cell chunkCell)
Parameters
| Type | Name | Description |
|---|---|---|
| Cell | childCell | |
| Cell | chunkCell |
Returns
| Type | Description |
|---|---|
| Cell |
Overrides
GetPointInCell(Cell)
Declaration
protected virtual Vector2 GetPointInCell(Cell cell)
Parameters
| Type | Name | Description |
|---|---|---|
| Cell | cell |
Returns
| Type | Description |
|---|---|
| Vector2 |
Split(Cell)
Declaration
protected override (Cell, Cell) Split(Cell cell)
Parameters
| Type | Name | Description |
|---|---|---|
| Cell | cell |
Returns
| Type | Description |
|---|---|
| System.ValueTuple<Cell, Cell> |