Falling sand and gravel
[oweals/minetest.git] / src / tooldef.h
index 2c758d902466b97bd8917b8230bc77de1d4d6cbf..9741d7088719e22400851b11c5e3874d71f354f5 100644 (file)
@@ -23,10 +23,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include <string>
 #include <iostream>
 
-/*
-       TODO: Rename to tooldef.h
-*/
-
 struct ToolDiggingProperties
 {
        // time = basetime + sum(feature here * feature in MaterialProperties)
@@ -72,6 +68,8 @@ public:
        virtual std::string getImagename(const std::string &toolname) const =0;
        virtual ToolDiggingProperties getDiggingProperties(
                        const std::string &toolname) const =0;
+       
+       virtual void serialize(std::ostream &os)=0;
 };
 
 class IWritableToolDefManager : public IToolDefManager
@@ -85,6 +83,7 @@ public:
                        const std::string &toolname) const =0;
                        
        virtual bool registerTool(std::string toolname, const ToolDefinition &def)=0;
+       virtual void clear()=0;
 
        virtual void serialize(std::ostream &os)=0;
        virtual void deSerialize(std::istream &is)=0;