mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
GameDef compiles
This commit is contained in:
parent
abceeee92f
commit
c6fd2986d4
49 changed files with 1168 additions and 1045 deletions
|
@ -1,12 +1,13 @@
|
|||
#include "materials.h"
|
||||
#include "mapnode.h"
|
||||
#include "mapnode_contentfeatures.h"
|
||||
#include "tool.h"
|
||||
#include "nodedef.h"
|
||||
#include "tooldef.h"
|
||||
|
||||
DiggingProperties getDiggingProperties(u16 material, ToolDiggingProperties *tp)
|
||||
DiggingProperties getDiggingProperties(u16 content, ToolDiggingProperties *tp,
|
||||
INodeDefManager *nodemgr)
|
||||
{
|
||||
assert(tp);
|
||||
MaterialProperties &mp = content_features(material).material;
|
||||
const MaterialProperties &mp = nodemgr->get(content).material;
|
||||
if(mp.diggability == DIGGABLE_NOT)
|
||||
return DiggingProperties(false, 0, 0);
|
||||
if(mp.diggability == DIGGABLE_CONSTANT)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue