The actual world storage class.
More...
#include <WorldStorage.h>
|
virtual void | Execute (void) override |
| This function, overloaded by the descendants, is called in the new thread. More...
|
|
void | InitSchemas (int a_StorageCompressionFactor) |
|
bool | LoadChunk (int a_ChunkX, int a_ChunkZ) |
| Loads the chunk specified; returns true on success, false on failure. More...
|
|
bool | LoadOneChunk (void) |
| Loads one chunk from the queue (if any queued); returns true if there was a chunk in the queue to load. More...
|
|
bool | SaveOneChunk (void) |
| Saves one chunk from the queue (if any queued); returns true if there was a chunk in the queue to save. More...
|
|
The actual world storage class.
Definition at line 52 of file WorldStorage.h.
◆ Super
◆ cWorldStorage()
cWorldStorage::cWorldStorage |
( |
void |
| ) |
|
◆ ~cWorldStorage()
cWorldStorage::~cWorldStorage |
( |
| ) |
|
|
overridevirtual |
◆ Execute()
void cWorldStorage::Execute |
( |
void |
| ) |
|
|
overrideprotectedvirtual |
This function, overloaded by the descendants, is called in the new thread.
Implements cIsThread.
Definition at line 203 of file WorldStorage.cpp.
◆ GetLoadQueueLength()
size_t cWorldStorage::GetLoadQueueLength |
( |
void |
| ) |
|
◆ GetSaveQueueLength()
size_t cWorldStorage::GetSaveQueueLength |
( |
void |
| ) |
|
◆ Initialize()
void cWorldStorage::Initialize |
( |
cWorld & |
a_World, |
|
|
const AString & |
a_StorageSchemaName, |
|
|
int |
a_StorageCompressionFactor |
|
) |
| |
Initializes the storage schemas, ready to be started.
Definition at line 63 of file WorldStorage.cpp.
◆ InitSchemas()
void cWorldStorage::InitSchemas |
( |
int |
a_StorageCompressionFactor | ) |
|
|
protected |
◆ LoadChunk()
bool cWorldStorage::LoadChunk |
( |
int |
a_ChunkX, |
|
|
int |
a_ChunkZ |
|
) |
| |
|
protected |
Loads the chunk specified; returns true on success, false on failure.
Definition at line 274 of file WorldStorage.cpp.
◆ LoadOneChunk()
bool cWorldStorage::LoadOneChunk |
( |
void |
| ) |
|
|
protected |
Loads one chunk from the queue (if any queued); returns true if there was a chunk in the queue to load.
Definition at line 227 of file WorldStorage.cpp.
◆ QueueLoadChunk()
void cWorldStorage::QueueLoadChunk |
( |
int |
a_ChunkX, |
|
|
int |
a_ChunkZ |
|
) |
| |
◆ QueueSaveChunk()
void cWorldStorage::QueueSaveChunk |
( |
int |
a_ChunkX, |
|
|
int |
a_ChunkZ |
|
) |
| |
◆ SaveOneChunk()
bool cWorldStorage::SaveOneChunk |
( |
void |
| ) |
|
|
protected |
Saves one chunk from the queue (if any queued); returns true if there was a chunk in the queue to save.
Definition at line 247 of file WorldStorage.cpp.
◆ Stop()
void cWorldStorage::Stop |
( |
void |
| ) |
|
◆ WaitForFinish()
void cWorldStorage::WaitForFinish |
( |
void |
| ) |
|
◆ WaitForLoadQueueEmpty()
void cWorldStorage::WaitForLoadQueueEmpty |
( |
void |
| ) |
|
◆ WaitForSaveQueueEmpty()
void cWorldStorage::WaitForSaveQueueEmpty |
( |
void |
| ) |
|
◆ m_Event
Set when there's any addition to the queues.
Definition at line 93 of file WorldStorage.h.
◆ m_LoadQueue
◆ m_SaveQueue
◆ m_SaveSchema
cWSSchema* cWorldStorage::m_SaveSchema |
|
protected |
The one storage schema used for saving.
Definition at line 90 of file WorldStorage.h.
◆ m_Schemas
All the storage schemas (all used for loading)
Definition at line 87 of file WorldStorage.h.
◆ m_StorageSchemaName
AString cWorldStorage::m_StorageSchemaName |
|
protected |
◆ m_World
cWorld* cWorldStorage::m_World |
|
protected |
The documentation for this class was generated from the following files: