1
0
cuberite-2a/source/cChunkLoader.h
faketruth 386d58b586 MCServer c++ source files
git-svn-id: http://mc-server.googlecode.com/svn/trunk@3 0a769ca7-a7f5-676a-18bf-c427514a06d6
2011-10-03 18:41:19 +00:00

32 lines
754 B
C++

#pragma once
class cCriticalSection;
class cEvent;
class cChunk;
class cChunkLoader
{
public:
cChunkLoader();
~cChunkLoader();
cChunk* LoadChunk( int a_X, int a_Y, int a_Z );
bool SaveChunk( const cChunk & a_Chunk );
struct ChunkPack;
private:
cChunk* LoadFormat1( int a_X, int a_Y, int a_Z );
ChunkPack* LoadPak1( int PakX, int PakY, int PakZ ); // This loads a .pak file from disk and returns it, nothing more
// Old stuffs
cChunk* LoadOldFormat( int a_X, int a_Y, int a_Z );
bool SaveOldFormat( const cChunk & a_Chunk );
static void SaveThread( void* a_Param );
bool m_bStop;
cCriticalSection* m_CriticalSection;
cEvent* m_Event;
struct ChunkPacks; // Defined in .cpp
ChunkPacks* m_ChunkPacks;
};