- /*
- Now, the g_material_properties array is already initialized
- by the constructors to such that no digging is possible.
-
- Add some digging properties to them.
- */
-
- setStoneLikeDiggingProperties(CONTENT_STONE, 1.0);
-
- g_material_properties[CONTENT_GRASS].setDiggingProperties("",
- DiggingProperties(true, 0.4, 0));
-
- g_material_properties[CONTENT_TORCH].setDiggingProperties("",
- DiggingProperties(true, 0.0, 0));
-
- g_material_properties[CONTENT_TREE].setDiggingProperties("",
- DiggingProperties(true, 1.5, 0));
-
- g_material_properties[CONTENT_LEAVES].setDiggingProperties("",
- DiggingProperties(true, 0.35, 0));
-
- g_material_properties[CONTENT_GRASS_FOOTSTEPS].setDiggingProperties("",
- DiggingProperties(true, 0.5, 0));
-
- setStoneLikeDiggingProperties(CONTENT_MESE, 0.5);
-
- g_material_properties[CONTENT_MUD].setDiggingProperties("",
- DiggingProperties(true, 0.4, 0));
-
- setStoneLikeDiggingProperties(CONTENT_COALSTONE, 1.5);
+ int version = readU8(is);
+ if(version != 0)
+ throw SerializationError("unsupported MaterialProperties version");
+ diggability = (enum Diggability)readU8(is);
+ constant_time = readF1000(is);
+ weight = readF1000(is);
+ crackiness = readF1000(is);
+ crumbliness = readF1000(is);
+ cuttability = readF1000(is);
+ flammability = readF1000(is);
+}