]> git.lizzy.rs Git - minetest.git/blobdiff - src/nodemetadata.h
Change lower limit of display_gamma to 1.0 (linear light)
[minetest.git] / src / nodemetadata.h
index 6baf3b3d37bf3808bedab05e768c6472ccaaed13..acd45bdf9bde4f3b7c85a6029a84bb536bfe7c01 100644 (file)
@@ -23,6 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "irr_v3d.h"
 #include <string>
 #include <iostream>
+#include <vector>
 #include <map>
 
 /*
@@ -42,10 +43,10 @@ class NodeMetadata
 public:
        NodeMetadata(IGameDef *gamedef);
        ~NodeMetadata();
-       
+
        void serialize(std::ostream &os) const;
        void deSerialize(std::istream &is);
-       
+
        void clear();
 
        // Generic key/value store
@@ -81,18 +82,20 @@ class NodeMetadataList
 
        void serialize(std::ostream &os) const;
        void deSerialize(std::istream &is, IGameDef *gamedef);
-       
+
+       // Add all keys in this list to the vector keys
+       std::vector<v3s16> getAllKeys();
        // Get pointer to data
-       NodeMetadataget(v3s16 p);
+       NodeMetadata *get(v3s16 p);
        // Deletes data
        void remove(v3s16 p);
        // Deletes old data and sets a new one
        void set(v3s16 p, NodeMetadata *d);
        // Deletes all
        void clear();
-       
+
 private:
-       std::map<v3s16, NodeMetadata*> m_data;
+       std::map<v3s16, NodeMetadata *> m_data;
 };
 
 #endif