diff options
author | Mattes D <github@xoft.cz> | 2015-07-31 16:49:10 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-07-31 16:49:10 +0200 |
commit | 6e4122e551eeb41d3e950b363dd837d5586fe560 (patch) | |
tree | b5ee221d8a8e63c7d3b7868da1db19bf717a6ffd /src/WorldStorage/WorldStorage.h | |
parent | Merge pull request #2400 from cuberite/OffloadBadChunks (diff) | |
download | cuberite-6e4122e551eeb41d3e950b363dd837d5586fe560.tar cuberite-6e4122e551eeb41d3e950b363dd837d5586fe560.tar.gz cuberite-6e4122e551eeb41d3e950b363dd837d5586fe560.tar.bz2 cuberite-6e4122e551eeb41d3e950b363dd837d5586fe560.tar.lz cuberite-6e4122e551eeb41d3e950b363dd837d5586fe560.tar.xz cuberite-6e4122e551eeb41d3e950b363dd837d5586fe560.tar.zst cuberite-6e4122e551eeb41d3e950b363dd837d5586fe560.zip |
Diffstat (limited to 'src/WorldStorage/WorldStorage.h')
-rw-r--r-- | src/WorldStorage/WorldStorage.h | 21 |
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); } ; |