diff options
Diffstat (limited to 'src/database-dummy.h')
-rw-r--r-- | src/database-dummy.h | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/src/database-dummy.h b/src/database-dummy.h index 732a206f8..0cf56928e 100644 --- a/src/database-dummy.h +++ b/src/database-dummy.h @@ -25,22 +25,17 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "database.h" #include "irrlichttypes.h" -class ServerMap; - class Database_Dummy : public Database { public: - Database_Dummy(ServerMap *map); - virtual void beginSave(); - virtual void endSave(); - virtual bool saveBlock(v3s16 blockpos, std::string &data); - virtual std::string loadBlock(v3s16 blockpos); - virtual bool deleteBlock(v3s16 blockpos); + 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); - virtual int Initialized(void); - ~Database_Dummy(); + private: - ServerMap *srvmap; - std::map<u64, std::string> m_database; + std::map<s64, std::string> m_database; }; + #endif + |