NBTChunkSerializer: Cleaned up interface.
Removed dependency on cChunkDataCallback. Moved all the serializing code into a worker class. Changed the serialization into a single-call action.
This commit is contained in:
@@ -2636,9 +2636,9 @@ void cWorld::ChunkLighted(
|
||||
|
||||
|
||||
|
||||
bool cWorld::GetChunkData(int a_ChunkX, int a_ChunkZ, cChunkDataCallback & a_Callback)
|
||||
bool cWorld::GetChunkData(cChunkCoords a_Coords, cChunkDataCallback & a_Callback) const
|
||||
{
|
||||
return m_ChunkMap->GetChunkData(a_ChunkX, a_ChunkZ, a_Callback);
|
||||
return m_ChunkMap->GetChunkData(a_Coords, a_Callback);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user