MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / footstepSound

Method footstepSound

source/game/StarMaterialDatabase.cpp:467–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

465}
466
467String 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
483Color MaterialDatabase::materialParticleColor(MaterialId materialId, MaterialHue hueShift) const {
484 auto color = getMaterialInfo(materialId)->particleColor;

Callers 5

getFootstepSoundMethod · 0.80
MaterialItemMethod · 0.80
blockSwapMethod · 0.80
fireMethod · 0.80
materialFootstepSoundMethod · 0.80

Calls 3

isRealModFunction · 0.85
isRealMaterialFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected