MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / getTileSet

Method getTileSet

source/utils/ConfigManager.cpp:1589–1603  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1587}
1588
1589const TileSet* ConfigManager::getTileSet(const std::string& tileSetName) const
1590{
1591 if(tileSetName.empty())
1592 return mTileSets.at(DEFAULT_TILESET_NAME);
1593
1594 auto it = mTileSets.find(tileSetName);
1595 if(it == mTileSets.end())
1596 {
1597 OD_LOG_ERR("Cannot find requested tileset name=" + tileSetName);
1598 // We return the default tileset
1599 return mTileSets.at(DEFAULT_TILESET_NAME);
1600 }
1601
1602 return it->second;
1603}
1604
1605bool ConfigManager::initVideoConfig(Ogre::Root& ogreRoot)
1606{

Callers 1

createAllEntitiesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected