summaryrefslogtreecommitdiffstats
path: root/source/cChunkLoader.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/cChunkLoader.h')
-rw-r--r--source/cChunkLoader.h32
1 files changed, 32 insertions, 0 deletions
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