Class ChunkValueDataLayer<TCellValue>
Inheritance
ChunkValueDataLayer<TCellValue>
Assembly: fwt.hexterrains.dll
Syntax
public class ChunkValueDataLayer<TCellValue> : HexTerrainNativeListChunkedDataLayer<TCellValue>, IDisposable, ICommitChanges, IListDataLayer<TCellValue> where TCellValue : unmanaged
Type Parameters
| Name |
Description |
| TCellValue |
|
Properties
CellsGridSize
Width and Height of the grid of cells.
Declaration
public override int2 CellsGridSize { get; }
Property Value
Overrides
ChunkGridSize
Width and Height of the grid of chunks.
Declaration
public override int2 ChunkGridSize { get; }
Property Value
Overrides
ChunkSize
Width and Height of the chunk in cells.
Declaration
public override int2 ChunkSize { get; }
Property Value
Overrides
IsConnectedHorizontally
True if left and right edges of the chunk are connected (like in civilization games).
Needed for wrapping the grid.
If SetCellDirty(cellIndex, checkEdges) is called with checkEdges == true, the chunk of the cell is marked dirty
and also all adjacent chunks are also marked dirty. So if the left edge is dirty, the right edge is also dirty.
Declaration
public override bool IsConnectedHorizontally { get; }
Property Value
Overrides
IsConnectedVertically
True if top and bottom edges of the chunk are connected (like in civilization games).
Needed for wrapping the grid.
If SetCellDirty(cellIndex, checkEdges) is called with checkEdges == true, the chunk of the cell is marked dirty
and also all adjacent chunks are also marked dirty. So if the top edge is dirty, the bottom edge is also dirty.
Declaration
public override bool IsConnectedVertically { get; }
Property Value
Overrides
IsDisposableItems
If true, means when layer is resized or disposed, all items that are removed will be disposed
(see nested classes description for details as the process may be different from layer to layer)
Declaration
public override bool IsDisposableItems { get; }
Property Value
Overrides
Methods
Cleanup()
Declaration
public override void Cleanup()
Overrides
CleanupAsync(JobHandle)
Declaration
public override JobHandle CleanupAsync(JobHandle dependency)
Parameters
| Type |
Name |
Description |
| JobHandle |
dependency |
|
Returns
| Type |
Description |
| JobHandle |
|
Overrides
Implements
Extension Methods