From 386d58b5862d8b76925c6523721594887606e82a Mon Sep 17 00:00:00 2001 From: faketruth Date: Mon, 3 Oct 2011 18:41:19 +0000 Subject: MCServer c++ source files git-svn-id: http://mc-server.googlecode.com/svn/trunk@3 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cChunkLoader.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 source/cChunkLoader.h (limited to 'source/cChunkLoader.h') diff --git a/source/cChunkLoader.h b/source/cChunkLoader.h new file mode 100644 index 000000000..5d9be39c5 --- /dev/null +++ b/source/cChunkLoader.h @@ -0,0 +1,32 @@ +#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; +}; \ No newline at end of file -- cgit v1.2.3