summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/WorldStorage.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-10-04 14:06:37 +0200
committerMattes D <github@xoft.cz>2015-10-04 14:06:37 +0200
commit9da404ea2db52dd4a5d9d0a5ca1736fd7e2e10bf (patch)
tree06ae98c7848c29b812b50b91ab4b2cbb49cd6e13 /src/WorldStorage/WorldStorage.h
parentMerge pull request #2519 from cuberite/RemoveStyleCheckFromTravis (diff)
downloadcuberite-9da404ea2db52dd4a5d9d0a5ca1736fd7e2e10bf.tar
cuberite-9da404ea2db52dd4a5d9d0a5ca1736fd7e2e10bf.tar.gz
cuberite-9da404ea2db52dd4a5d9d0a5ca1736fd7e2e10bf.tar.bz2
cuberite-9da404ea2db52dd4a5d9d0a5ca1736fd7e2e10bf.tar.lz
cuberite-9da404ea2db52dd4a5d9d0a5ca1736fd7e2e10bf.tar.xz
cuberite-9da404ea2db52dd4a5d9d0a5ca1736fd7e2e10bf.tar.zst
cuberite-9da404ea2db52dd4a5d9d0a5ca1736fd7e2e10bf.zip
Diffstat (limited to 'src/WorldStorage/WorldStorage.h')
-rw-r--r--src/WorldStorage/WorldStorage.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/WorldStorage/WorldStorage.h b/src/WorldStorage/WorldStorage.h
index 70cca9031..ab8a7f44b 100644
--- a/src/WorldStorage/WorldStorage.h
+++ b/src/WorldStorage/WorldStorage.h
@@ -63,13 +63,15 @@ public:
cWorldStorage(void);
~cWorldStorage();
-
+
+ /** Queues a chunk to be loaded, asynchronously.
+ The callback, if specified, will be called with the result of the load operation. */
void QueueLoadChunk(int a_ChunkX, int a_ChunkZ, cChunkCoordCallback * a_Callback = nullptr);
+
+ /** Queues a chunk to be saved, asynchronously.
+ The callback, if specified, will be called with the result of the save operation. */
void QueueSaveChunk(int a_ChunkX, int a_ChunkZ, cChunkCoordCallback * a_Callback = nullptr);
- void UnqueueLoad(int a_ChunkX, int a_ChunkZ);
- void UnqueueSave(const cChunkCoords & a_Chunk);
-
bool Start(cWorld * a_World, const AString & a_StorageSchemaName, int a_StorageCompressionFactor); // Hide the cIsThread's Start() method, we need to provide args
void Stop(void); // Hide the cIsThread's Stop() method, we need to signal the event
void WaitForFinish(void);