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

#include <blockmodifier.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
bool empty () 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

Referenced by ALLOW_CLASS_MOVE(), and DISABLE_CLASS_COPY().

Here is the caller graph for this function:

◆ ~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.

Here is the call graph for this function:

◆ ALLOW_CLASS_MOVE()

LBMContentMapping::ALLOW_CLASS_MOVE ( LBMContentMapping )

References LBMContentMapping().

Here is the call graph for this function:

◆ DISABLE_CLASS_COPY()

LBMContentMapping::DISABLE_CLASS_COPY ( LBMContentMapping )

References LBMContentMapping().

Here is the call graph for this function:

◆ empty()

bool LBMContentMapping::empty ( ) const
inline

References lbm_list.

◆ 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

◆ map

lbm_map LBMContentMapping::map
private

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


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