Noise: Prevent unittest crash caused by division by zero
[oweals/minetest.git] / src / database-dummy.h
index 72100edd0bdcb1f3c952db1db3a16d6317ab167a..c4060d5f19ad383f023ee4588bc67df95122d5b1 100644 (file)
@@ -25,7 +25,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "database.h"
 #include "irrlichttypes.h"
 
-class Database_Dummy : public Database
+class Database_Dummy : public MapDatabase, public PlayerDatabase
 {
 public:
        bool saveBlock(const v3s16 &pos, const std::string &data);
@@ -33,9 +33,16 @@ public:
        bool deleteBlock(const v3s16 &pos);
        void listAllLoadableBlocks(std::vector<v3s16> &dst);
 
+       void savePlayer(RemotePlayer *player) {}
+       bool loadPlayer(RemotePlayer *player, PlayerSAO *sao) { return true; }
+       bool removePlayer(const std::string &name) { return true; }
+       void listPlayers(std::vector<std::string> &) {}
+
+       void beginSave() {}
+       void endSave() {}
+
 private:
        std::map<s64, std::string> m_database;
 };
 
 #endif
-