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

Method getSpellConfigUInt32

source/utils/ConfigManager.cpp:1483–1493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1481}
1482
1483uint32_t ConfigManager::getSpellConfigUInt32(const std::string& param) const
1484{
1485 auto it = mSpellConfig.find(param);
1486 if(it == mSpellConfig.end())
1487 {
1488 OD_LOG_ERR("Unknown parameter param=" + param);
1489 return 0;
1490 }
1491
1492 return Helper::toUInt32(it->second);
1493}
1494
1495int32_t ConfigManager::getSpellConfigInt32(const std::string& param) const
1496{

Callers 9

getSpellCooldownMethod · 0.80
castSpellMethod · 0.80
castSpellMethod · 0.80
castSpellMethod · 0.80
computeVisibleTilesMethod · 0.80
castSpellMethod · 0.80
castSpellMethod · 0.80
castSpellMethod · 0.80
castSpellMethod · 0.80

Calls 1

toUInt32Function · 0.85

Tested by

no test coverage detected