* Add getChunkDontCreate. Will be useful for multiplayer.

This commit is contained in:
iProgramInCpp
2023-08-11 20:59:30 +03:00
parent 35a63582df
commit 203a47a527
9 changed files with 88 additions and 0 deletions

View File

@@ -62,6 +62,15 @@ LevelChunk* PerformanceTestChunkSource::getChunk(int x, int z)
return create(x, z);
}
LevelChunk* PerformanceTestChunkSource::getChunkDontCreate(int x, int z)
{
TileID* pData = new TileID[0x8000u];
memset(pData, 0, 0x8000u * sizeof(TileID));
LevelChunk* pChunk = new LevelChunk(m_pLevel, pData, x, z);
return pChunk;
}
bool PerformanceTestChunkSource::hasChunk(int x, int z)
{
return true;