summaryrefslogtreecommitdiff
path: root/src/mapnode.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-16 16:47:20 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-29 19:13:47 +0200
commiteabfb370acfcaf4c9be680419d7c97cf7418faf4 (patch)
treedc52c5e4dfee33793c45c8b873b8955b7469d1b7 /src/mapnode.h
parent62164d955ce739e87165bb90b1439807aca5ca55 (diff)
downloadminetest-eabfb370acfcaf4c9be680419d7c97cf7418faf4.tar.gz
minetest-eabfb370acfcaf4c9be680419d7c97cf7418faf4.tar.bz2
minetest-eabfb370acfcaf4c9be680419d7c97cf7418faf4.zip
MapNode constructor to allow ndef+name
Diffstat (limited to 'src/mapnode.h')
-rw-r--r--src/mapnode.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mapnode.h b/src/mapnode.h
index 285f197db..e287ea54f 100644
--- a/src/mapnode.h
+++ b/src/mapnode.h
@@ -147,6 +147,11 @@ struct MapNode
// because this needs to override part of param2
setContent(content);
}
+
+ // Create directly from a nodename
+ // If name is unknown, sets CONTENT_IGNORE
+ MapNode(INodeDefManager *ndef, const std::string &name,
+ u8 a_param1=0, u8 a_param2=0);
bool operator==(const MapNode &other)
{