mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 12:31:51 +00:00
add BlockMaterial.hitSound
This commit is contained in:
parent
17e4776f95
commit
ce9853d813
4 changed files with 11 additions and 4 deletions
|
|
@ -13,7 +13,8 @@ dv::value BlockMaterial::serialize() const {
|
|||
{"name", name},
|
||||
{"stepsSound", stepsSound},
|
||||
{"placeSound", placeSound},
|
||||
{"breakSound", breakSound}
|
||||
{"breakSound", breakSound},
|
||||
{"hitSound", hitSound}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -109,9 +109,10 @@ using BoxModel = AABB;
|
|||
/// @brief Common kit of block properties applied to groups of blocks
|
||||
struct BlockMaterial {
|
||||
std::string name;
|
||||
std::string stepsSound {""};
|
||||
std::string placeSound {""};
|
||||
std::string breakSound {""};
|
||||
std::string stepsSound;
|
||||
std::string placeSound;
|
||||
std::string breakSound;
|
||||
std::string hitSound;
|
||||
|
||||
dv::value serialize() const;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue