mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add block.materials table
This commit is contained in:
parent
a641099d36
commit
8543be87df
3 changed files with 23 additions and 0 deletions
|
|
@ -8,6 +8,15 @@
|
|||
#include "presets/ParticlesPreset.hpp"
|
||||
#include "util/stringutil.hpp"
|
||||
|
||||
dv::value BlockMaterial::serialize() const {
|
||||
return dv::object({
|
||||
{"name", name},
|
||||
{"stepsSound", stepsSound},
|
||||
{"placeSound", placeSound},
|
||||
{"breakSound", breakSound}
|
||||
});
|
||||
}
|
||||
|
||||
std::string to_string(BlockModel model) {
|
||||
switch (model) {
|
||||
case BlockModel::none:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue