summaryrefslogtreecommitdiff
path: root/src/materials.cpp
blob: b3ee6e27aef8e58788022634e7e2a31b61e413d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "materials.h"
#include "mapnode.h"
#include "mapnode_contentfeatures.h"

// NOTE: DEPRECATED

DiggingPropertiesList * getDiggingPropertiesList(u16 content)
{
	return &content_features(content).digging_properties;
}

DiggingProperties getDiggingProperties(u16 content, const std::string &tool)
{
	DiggingPropertiesList *mprop = getDiggingPropertiesList(content);
	if(mprop == NULL)
		// Not diggable
		return DiggingProperties();
	
	return mprop->get(tool);
}