aboutsummaryrefslogtreecommitdiff
path: root/src/database-dummy.h
blob: 5a6921370b46ab92f6894c77de0a0bf7e54c4146 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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(std::list<v3s16> &dst);
        virtual int Initialized(void);
	~Database_Dummy();
private:
	ServerMap *srvmap;
	std::map<unsigned long long, std::string> m_database;
};
#endif