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

Method getRoomConfigUInt32

source/utils/ConfigManager.cpp:1387–1397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1385}
1386
1387uint32_t ConfigManager::getRoomConfigUInt32(const std::string& param) const
1388{
1389 auto it = mRoomsConfig.find(param);
1390 if(it == mRoomsConfig.end())
1391 {
1392 OD_LOG_ERR("Unknown parameter param=" + param);
1393 return 0;
1394 }
1395
1396 return Helper::toUInt32(it->second);
1397}
1398
1399int32_t ConfigManager::getRoomConfigInt32(const std::string& param) const
1400{

Callers 10

handleEatChickenMethod · 0.80
hasOpenCreatureSpotMethod · 0.80
useRoomMethod · 0.80
hasOpenCreatureSpotMethod · 0.80
useRoomMethod · 0.80
useRoomMethod · 0.80
doUpkeepMethod · 0.80
doUpkeepMethod · 0.80
useRoomMethod · 0.80
doUpkeepMethod · 0.80

Calls 1

toUInt32Function · 0.85

Tested by

no test coverage detected