| 465 | } |
| 466 | |
| 467 | String MaterialDatabase::footstepSound(MaterialId materialId, ModId modId) const { |
| 468 | if (isRealMod(modId)) { |
| 469 | auto const& modInfo = getModInfo(modId); |
| 470 | if (!modInfo->footstepSound.empty()) |
| 471 | return modInfo->footstepSound; |
| 472 | } |
| 473 | |
| 474 | if (isRealMaterial(materialId)) { |
| 475 | auto const& matInfo = getMaterialInfo(materialId); |
| 476 | if (!matInfo->footstepSound.empty()) |
| 477 | return matInfo->footstepSound; |
| 478 | } |
| 479 | |
| 480 | return m_defaultFootstepSound; |
| 481 | } |
| 482 | |
| 483 | Color MaterialDatabase::materialParticleColor(MaterialId materialId, MaterialHue hueShift) const { |
| 484 | auto color = getMaterialInfo(materialId)->particleColor; |
no test coverage detected