summaryrefslogtreecommitdiff
path: root/src/nameidmapping.h
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2012-01-21 00:11:44 +0100
committerPerttu Ahola <celeron55@gmail.com>2012-01-22 17:24:50 +0200
commit157a4cf18cb9c098f465b8baecd7d2cd5705f2dd (patch)
treea194b86e0452d1dc892aec6b3ac940327ce85e2a /src/nameidmapping.h
parentf22c73f50169b978f13c0b6511805b9d4a1a6871 (diff)
downloadminetest-157a4cf18cb9c098f465b8baecd7d2cd5705f2dd.tar.gz
minetest-157a4cf18cb9c098f465b8baecd7d2cd5705f2dd.tar.bz2
minetest-157a4cf18cb9c098f465b8baecd7d2cd5705f2dd.zip
Node placement / mineral / serialization / iron freq / node_dig callback
- Node placement code moved to Lua - Mineral system removed (added default:stone_with_coal and default:stone_with_iron). - MapBlock and MapNode serialization updated. - Mapgen: Frequency of iron increased. - node_dig callback and related changes.
Diffstat (limited to 'src/nameidmapping.h')
-rw-r--r--src/nameidmapping.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nameidmapping.h b/src/nameidmapping.h
index 071599e10..238deb451 100644
--- a/src/nameidmapping.h
+++ b/src/nameidmapping.h
@@ -70,6 +70,9 @@ public:
result = i->second;
return true;
}
+ u16 size() const{
+ return m_id_to_name.size();
+ }
private:
std::map<u16, std::string> m_id_to_name;
std::map<std::string, u16> m_name_to_id;