Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
MapDatabaseAccessor Struct Reference

#include <servermap.h>

+ Collaboration diagram for MapDatabaseAccessor:

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.
 
MapDatabasedbase = nullptr
 Main database.
 
MapDatabasedbase_ro = nullptr
 Fallback database for read operations.
 

Member Function Documentation

◆ loadBlock()

void MapDatabaseAccessor::loadBlock ( v3s16 blockpos,
std::string & ret )

Load a block, taking dbase_ro into account.

Note
call locked

References dbase, dbase_ro, and MapDatabase::loadBlock().

Referenced by ServerMap::loadBlock().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ dbase

◆ dbase_ro

MapDatabase* MapDatabaseAccessor::dbase_ro = nullptr

Fallback database for read operations.

Referenced by ServerMap::ServerMap(), ServerMap::~ServerMap(), ServerMap::listAllLoadableBlocks(), and loadBlock().

◆ mutex


The documentation for this struct was generated from the following files: