]> git.lizzy.rs Git - minetest.git/blob - src/materials.cpp
Move ContentFeatures to mapnode_contentfeatures.{h,cpp} and clean stuff
[minetest.git] / src / materials.cpp
1 #include "materials.h"
2 #include "mapnode.h"
3 #include "mapnode_contentfeatures.h"
4
5 // NOTE: DEPRECATED
6
7 DiggingPropertiesList * getDiggingPropertiesList(u16 content)
8 {
9         return &content_features(content).digging_properties;
10 }
11
12 DiggingProperties getDiggingProperties(u16 content, const std::string &tool)
13 {
14         DiggingPropertiesList *mprop = getDiggingPropertiesList(content);
15         if(mprop == NULL)
16                 // Not diggable
17                 return DiggingProperties();
18         
19         return mprop->get(tool);
20 }
21