1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Add sounds, tune things

This commit is contained in:
Perttu Ahola 2012-03-24 03:28:08 +02:00
parent 77120a021d
commit 93219e3b9d
7 changed files with 201 additions and 44 deletions

View file

@ -156,6 +156,7 @@ void ContentFeatures::reset()
legacy_facedir_simple = false;
legacy_wallmounted = false;
sound_footstep = SimpleSoundSpec();
sound_dug = SimpleSoundSpec();
}
void ContentFeatures::serialize(std::ostream &os)
@ -203,6 +204,7 @@ void ContentFeatures::serialize(std::ostream &os)
writeU8(os, legacy_facedir_simple);
writeU8(os, legacy_wallmounted);
serializeSimpleSoundSpec(sound_footstep, os);
serializeSimpleSoundSpec(sound_dug, os);
}
void ContentFeatures::deSerialize(std::istream &is)
@ -256,6 +258,7 @@ void ContentFeatures::deSerialize(std::istream &is)
legacy_wallmounted = readU8(is);
try{
deSerializeSimpleSoundSpec(sound_footstep, is);
deSerializeSimpleSoundSpec(sound_dug, is);
}catch(SerializationError &e) {};
}