#include <servermap.h>
Public Member Functions | |
void | loadBlock (v3s16 blockpos, std::string &ret) |
Load a block, taking dbase_ro into account. | |
Public Attributes | |
std::mutex | mutex |
Lock, to be taken for any operation. | |
MapDatabase * | dbase = nullptr |
Main database. | |
MapDatabase * | dbase_ro = nullptr |
Fallback database for read operations. | |
void MapDatabaseAccessor::loadBlock | ( | v3s16 | blockpos, |
std::string & | ret ) |
Load a block, taking dbase_ro into account.
References dbase, dbase_ro, and MapDatabase::loadBlock().
Referenced by ServerMap::loadBlock().
MapDatabase* MapDatabaseAccessor::dbase = nullptr |
MapDatabase* MapDatabaseAccessor::dbase_ro = nullptr |
Fallback database for read operations.
Referenced by ServerMap::ServerMap(), ServerMap::~ServerMap(), ServerMap::listAllLoadableBlocks(), and loadBlock().
std::mutex MapDatabaseAccessor::mutex |
Lock, to be taken for any operation.
Referenced by ServerMap::~ServerMap(), ServerMap::beginSave(), ServerMap::deleteBlock(), ServerMap::endSave(), ServerMap::listAllLoadableBlocks(), ServerMap::loadBlock(), and ServerMap::saveBlock().