diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-11-30 18:12:32 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-12-02 00:38:26 +0200 |
commit | bee170570de7a796ac7b5ba6c0b39b253380b5e3 (patch) | |
tree | 66b8d4317df37790edb1caf3b4529a73c48639a5 /src/util | |
parent | ba73e75ef9b59608c78bff09b7808f076bef014b (diff) | |
download | minetest-bee170570de7a796ac7b5ba6c0b39b253380b5e3.tar.gz minetest-bee170570de7a796ac7b5ba6c0b39b253380b5e3.tar.bz2 minetest-bee170570de7a796ac7b5ba6c0b39b253380b5e3.zip |
On-demand item meshes and textures
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/container.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/util/container.h b/src/util/container.h index bdf560979..8c1ae02fb 100644 --- a/src/util/container.h +++ b/src/util/container.h @@ -107,6 +107,17 @@ public: return true; } + core::list<Value> getValues() + { + core::list<Value> result; + for(typename core::map<Key, Value>::Iterator + i = m_values.getIterator(); + i.atEnd() == false; i++){ + result.push_back(i.getNode()->getValue()); + } + return result; + } + private: core::map<Key, Value> m_values; JMutex m_mutex; |