Class HexTerrainListChunkedDataLayer<TItem>
Inheritance
HexTerrainListChunkedDataLayer<TItem>
Assembly: fwt.hexterrains.dll
Syntax
public abstract class HexTerrainListChunkedDataLayer<TItem> : ListChunkedDataLayer<TItem>, IDisposable, ICommitChanges, IListDataLayer<TItem>
Type Parameters
Fields
_settings
Declaration
protected HexTerrainSettings _settings
Field Value
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
Length
Returns the number of items in the layer.
Declaration
public override int Length { get; }
Property Value
Overrides
Settings
Declaration
public HexTerrainSettings Settings { get; }
Property Value
Methods
Cleanup()
Declaration
public abstract void Cleanup()
Init(int, HexTerrainSettings)
Declaration
public virtual void Init(int layerSize, HexTerrainSettings settings)
Parameters
Implements
Extension Methods