mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add 'sound-absorption' block material parameter
This commit is contained in:
parent
b355e4568d
commit
20155b88d0
14 changed files with 82 additions and 28 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue