LayerProcGen v0.1.0
Layer-based infinite procedural generation
Loading...
Searching...
No Matches
IChunkBasedDataLayer

Inherited by ChunkBasedDataLayer< L, C >.

Public Member Functions

int GetLevelCount ()
 
void HandleAllAbstractChunks (int minChunkLevel, Action< AbstractLayerChunk > func)
 
void HandleDependenciesForLevel (int level, Action< LayerDependency > func)
 
bool IsLoadedAtPosition (DPoint position)
 Returns true if the layer is loaded at the highest level at the specified position in world units.
 
bool IsLoadedAtPosition (DPoint position, int level)
 Returns true if the layer is loaded at least up to level at the specified position in world units.
 

Properties

int chunkH [get]
 
Point chunkSize [get]
 
int chunkW [get]
 

Member Function Documentation

◆ HandleAllAbstractChunks()

void HandleAllAbstractChunks ( int minChunkLevel,
Action< AbstractLayerChunk > func )

Implemented in ChunkBasedDataLayer< L, C >.

◆ HandleDependenciesForLevel()

void HandleDependenciesForLevel ( int level,
Action< LayerDependency > func )

Implemented in ChunkBasedDataLayer< L, C >.

◆ IsLoadedAtPosition() [1/2]

bool IsLoadedAtPosition ( DPoint position)

Returns true if the layer is loaded at the highest level at the specified position in world units.

Implemented in ChunkBasedDataLayer< L, C >.

◆ IsLoadedAtPosition() [2/2]

bool IsLoadedAtPosition ( DPoint position,
int level )

Returns true if the layer is loaded at least up to level at the specified position in world units.

Implemented in ChunkBasedDataLayer< L, C >.