diff options
Diffstat (limited to 'src/database-dummy.h')
-rw-r--r-- | src/database-dummy.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/database-dummy.h b/src/database-dummy.h new file mode 100644 index 000000000..55b21532c --- /dev/null +++ b/src/database-dummy.h @@ -0,0 +1,26 @@ +#ifndef DATABASE_DUMMY_HEADER +#define DATABASE_DUMMY_HEADER + +#include "map.h" +#include "mapsector.h" +#include "mapblock.h" +#include "main.h" +#include "filesys.h" +#include "database.h" + +class Database_Dummy : public Database +{ +public: + Database_Dummy(ServerMap *map); + virtual void beginSave(); + virtual void endSave(); + virtual void saveBlock(MapBlock *block); + virtual MapBlock* loadBlock(v3s16 blockpos); + virtual void listAllLoadableBlocks(core::list<v3s16> &dst); + virtual int Initialized(void); + ~Database_Dummy(); +private: + ServerMap *srvmap; + std::map<unsigned long long, std::string> m_database; +}; +#endif |