Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
LBMContentMapping Class Reference

#include <serverenvironment.h>

+ Collaboration diagram for LBMContentMapping:

Public Types

typedef std::vector< LoadingBlockModifierDef * > lbm_vector
 
typedef std::unordered_map< content_t, lbm_vectorlbm_map
 

Public Member Functions

 LBMContentMapping ()=default
 
void addLBM (LoadingBlockModifierDef *lbm_def, IGameDef *gamedef)
 
const lbm_map::mapped_type * lookup (content_t c) const
 
const lbm_vectorgetList () const
 
 ~LBMContentMapping ()
 
 DISABLE_CLASS_COPY (LBMContentMapping)
 
 ALLOW_CLASS_MOVE (LBMContentMapping)
 

Private Attributes

lbm_vector lbm_list
 
lbm_map map
 

Member Typedef Documentation

◆ lbm_map

typedef std::unordered_map<content_t, lbm_vector> LBMContentMapping::lbm_map

◆ lbm_vector

Constructor & Destructor Documentation

◆ LBMContentMapping()

LBMContentMapping::LBMContentMapping ( )
default

◆ ~LBMContentMapping()

LBMContentMapping::~LBMContentMapping ( )

References lbm_list, and map.

Member Function Documentation

◆ addLBM()

void LBMContentMapping::addLBM ( LoadingBlockModifierDef * lbm_def,
IGameDef * gamedef )

References IGameDef::allocateUnknownNodeId(), CONTAINS, CONTENT_IGNORE, FATAL_ERROR_IF, NodeDefManager::getIds(), lbm_list, map, LoadingBlockModifierDef::name, IGameDef::ndef(), SORT_AND_UNIQUE, LoadingBlockModifierDef::trigger_contents, and warningstream.

Referenced by LBMManager::loadIntroductionTimes().

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

◆ ALLOW_CLASS_MOVE()

LBMContentMapping::ALLOW_CLASS_MOVE ( LBMContentMapping )

◆ DISABLE_CLASS_COPY()

LBMContentMapping::DISABLE_CLASS_COPY ( LBMContentMapping )

◆ getList()

const lbm_vector & LBMContentMapping::getList ( ) const
inline

References lbm_list.

◆ lookup()

const LBMContentMapping::lbm_vector * LBMContentMapping::lookup ( content_t c) const

References map.

Member Data Documentation

◆ lbm_list

lbm_vector LBMContentMapping::lbm_list
private

Referenced by ~LBMContentMapping(), addLBM(), and getList().

◆ map

lbm_map LBMContentMapping::map
private

Referenced by ~LBMContentMapping(), addLBM(), and lookup().


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