Minetest  5.4.0
LBMContentMapping Struct Reference

#include <serverenvironment.h>

+ Collaboration diagram for LBMContentMapping:

Public Types

typedef std::unordered_map< content_t, std::vector< LoadingBlockModifierDef * > > lbm_map
 

Public Member Functions

void deleteContents ()
 
void addLBM (LoadingBlockModifierDef *lbm_def, IGameDef *gamedef)
 
const std::vector< LoadingBlockModifierDef * > * lookup (content_t c) const
 

Public Attributes

lbm_map map
 
std::vector< LoadingBlockModifierDef * > lbm_list
 

Member Typedef Documentation

◆ lbm_map

typedef std::unordered_map<content_t, std::vector<LoadingBlockModifierDef *> > LBMContentMapping::lbm_map

Member Function Documentation

◆ addLBM()

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

References IGameDef::allocateUnknownNodeId(), CONTENT_IGNORE, NodeDefManager::getIds(), lbm_list, map, LoadingBlockModifierDef::name, IGameDef::ndef(), 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:

◆ deleteContents()

void LBMContentMapping::deleteContents ( )

References lbm_list.

◆ lookup()

const std::vector< LoadingBlockModifierDef * > * LBMContentMapping::lookup ( content_t  c) const

References map.

Member Data Documentation

◆ lbm_list

std::vector<LoadingBlockModifierDef *> LBMContentMapping::lbm_list

Referenced by addLBM(), and deleteContents().

◆ map

lbm_map LBMContentMapping::map

Referenced by addLBM(), and lookup().


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