Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
FacePositionCache Class Reference

#include <face_position_cache.h>

+ Collaboration diagram for FacePositionCache:

Static Public Member Functions

static const std::vector< v3s16 > & getFacePositions (u16 d)
 

Static Private Member Functions

static const std::vector< v3s16 > & generateFacePosition (u16 d)
 

Static Private Attributes

static std::unordered_map< u16, std::vector< v3s16 > > cache
 
static std::mutex cache_mutex
 

Member Function Documentation

◆ generateFacePosition()

const std::vector< v3s16 > & FacePositionCache::generateFacePosition ( u16 d)
staticprivate

References cache.

Referenced by getFacePositions().

+ Here is the caller graph for this function:

◆ getFacePositions()

const std::vector< v3s16 > & FacePositionCache::getFacePositions ( u16 d)
static

References cache, cache_mutex, and generateFacePosition().

Referenced by ModApiEnvBase::findNodeNear(), and RemoteClient::GetNextBlocks().

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

Member Data Documentation

◆ cache

std::unordered_map< u16, std::vector< v3s16 > > FacePositionCache::cache
staticprivate

◆ cache_mutex

std::mutex FacePositionCache::cache_mutex
staticprivate

Referenced by getFacePositions().


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