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

Method getRoomConfigInt32

source/utils/ConfigManager.cpp:1399–1409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1397}
1398
1399int32_t ConfigManager::getRoomConfigInt32(const std::string& param) const
1400{
1401 auto it = mRoomsConfig.find(param);
1402 if(it == mRoomsConfig.end())
1403 {
1404 OD_LOG_ERR("Unknown parameter param=" + param);
1405 return 0;
1406 }
1407
1408 return Helper::toInt(it->second);
1409}
1410
1411double ConfigManager::getRoomConfigDouble(const std::string& param) const
1412{

Callers 15

getCostPerTileMethod · 0.80
getCostPerTileMethod · 0.80
getCostPerTileMethod · 0.80
getCostPerTileMethod · 0.80
getCostPerTileMethod · 0.80
useRoomMethod · 0.80
getCostPerTileMethod · 0.80
getCostPerTileMethod · 0.80
doUpkeepMethod · 0.80
getCostPerTileMethod · 0.80
getCostPerTileMethod · 0.80
getCostPerTileMethod · 0.80

Calls 1

toIntFunction · 0.85

Tested by

no test coverage detected