add 'sound-absorption' block material parameter

This commit is contained in:
MihailRis 2026-02-11 21:19:55 +03:00
parent b355e4568d
commit 20155b88d0
14 changed files with 82 additions and 28 deletions

View file

@ -24,7 +24,8 @@ dv::value BlockMaterial::serialize() const {
{"steps-sound", stepsSound},
{"place-sound", placeSound},
{"break-sound", breakSound},
{"hit-sound", hitSound}
{"hit-sound", hitSound},
{"sound-absorption", soundAbsorption}
});
}
@ -34,6 +35,7 @@ void BlockMaterial::deserialize(const dv::value& src) {
src.at("place-sound").get(placeSound);
src.at("break-sound").get(breakSound);
src.at("hit-sound").get(hitSound);
src.at("sound-absorption").get(soundAbsorption);
}
CoordSystem::CoordSystem(glm::ivec3 axisX, glm::ivec3 axisY, glm::ivec3 axisZ)