]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/database-dummy.h
Fix click-digging torches (#5652)
[dragonfireclient.git] / src / database-dummy.h
index 0cf56928e08d314f2ad11edf5fcc172b106cbc0f..7d1cb2279f32fe3f701c815e9b2a15c0dac61158 100644 (file)
@@ -25,17 +25,23 @@ 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:
-       virtual bool saveBlock(const v3s16 &pos, const std::string &data);
-       virtual std::string loadBlock(const v3s16 &pos);
-       virtual bool deleteBlock(const v3s16 &pos);
-       virtual void listAllLoadableBlocks(std::vector<v3s16> &dst);
-
+       bool saveBlock(const v3s16 &pos, const std::string &data);
+       void loadBlock(const v3s16 &pos, std::string *block);
+       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
-