| 295 | } |
| 296 | |
| 297 | bool MaterialDatabase::isValidModId(ModId mod) const { |
| 298 | if (isRealMod(mod)) |
| 299 | return mod < m_mods.size() && (bool)m_mods[mod]; |
| 300 | else |
| 301 | return m_metaModIndex.hasRightValue(mod); |
| 302 | } |
| 303 | |
| 304 | ModId MaterialDatabase::modId(String const& modName) const { |
| 305 | if (auto m = m_metaModIndex.maybeRight(modName)) |
no test coverage detected