summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/WorldStorage.h
diff options
context:
space:
mode:
authorJulian Laubstein <julianlaubstein@yahoo.de>2015-07-31 19:26:33 +0200
committerJulian Laubstein <julianlaubstein@yahoo.de>2015-07-31 19:26:33 +0200
commitd19cde93fa3344f318fb0d4ffbf5bb0397a51a75 (patch)
treeb5ee221d8a8e63c7d3b7868da1db19bf717a6ffd /src/WorldStorage/WorldStorage.h
parentMerge pull request #2400 from cuberite/OffloadBadChunks (diff)
parentUnified the doxy-comment format. (diff)
downloadcuberite-d19cde93fa3344f318fb0d4ffbf5bb0397a51a75.tar
cuberite-d19cde93fa3344f318fb0d4ffbf5bb0397a51a75.tar.gz
cuberite-d19cde93fa3344f318fb0d4ffbf5bb0397a51a75.tar.bz2
cuberite-d19cde93fa3344f318fb0d4ffbf5bb0397a51a75.tar.lz
cuberite-d19cde93fa3344f318fb0d4ffbf5bb0397a51a75.tar.xz
cuberite-d19cde93fa3344f318fb0d4ffbf5bb0397a51a75.tar.zst
cuberite-d19cde93fa3344f318fb0d4ffbf5bb0397a51a75.zip
Diffstat (limited to 'src/WorldStorage/WorldStorage.h')
-rw-r--r--src/WorldStorage/WorldStorage.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/WorldStorage/WorldStorage.h b/src/WorldStorage/WorldStorage.h
index e9ba2a8e2..70cca9031 100644
--- a/src/WorldStorage/WorldStorage.h
+++ b/src/WorldStorage/WorldStorage.h
@@ -31,7 +31,7 @@ typedef cQueue<cChunkCoordsWithCallback> cChunkCoordsQueue;
-/// Interface that all the world storage schemas need to implement
+/** Interface that all the world storage schemas need to implement */
class cWSSchema abstract
{
public:
@@ -53,7 +53,7 @@ typedef std::list<cWSSchema *> cWSSchemaList;
-/// The actual world storage class
+/** The actual world storage class */
class cWorldStorage :
public cIsThread
{
@@ -87,26 +87,27 @@ protected:
cChunkCoordsQueue m_LoadQueue;
cChunkCoordsQueue m_SaveQueue;
- /// All the storage schemas (all used for loading)
+ /** All the storage schemas (all used for loading) */
cWSSchemaList m_Schemas;
- /// The one storage schema used for saving
- cWSSchema * m_SaveSchema;
+ /** The one storage schema used for saving */
+ cWSSchema * m_SaveSchema;
+
+ /** Set when there's any addition to the queues */
+ cEvent m_Event;
- /// Loads the chunk specified; returns true on success, false on failure
+ /** Loads the chunk specified; returns true on success, false on failure */
bool LoadChunk(int a_ChunkX, int a_ChunkZ);
void InitSchemas(int a_StorageCompressionFactor);
virtual void Execute(void) override;
- cEvent m_Event; // Set when there's any addition to the queues
-
- /// Loads one chunk from the queue (if any queued); returns true if there are more chunks in the load queue
+ /** Loads one chunk from the queue (if any queued); returns true if there are more chunks in the load queue */
bool LoadOneChunk(void);
- /// Saves one chunk from the queue (if any queued); returns true if there are more chunks in the save queue
+ /** Saves one chunk from the queue (if any queued); returns true if there are more chunks in the save queue */
bool SaveOneChunk(void);
} ;