Luanti 5.16.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, and dbase_ro.

Member Data Documentation

◆ dbase

MapDatabase* MapDatabaseAccessor::dbase = nullptr

Main database.

Referenced by EmergeManager::initMap(), and loadBlock().

◆ dbase_ro

MapDatabase* MapDatabaseAccessor::dbase_ro = nullptr

Fallback database for read operations.

Referenced by loadBlock().

◆ mutex

std::mutex MapDatabaseAccessor::mutex

Lock, to be taken for any operation.


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