mirror of
https://github.com/minetest/minetestmapper.git
synced 2024-11-21 23:13:53 +01:00
23 lines
401 B
C++
23 lines
401 B
C++
#ifndef _DB_LEVELDB_H
|
|
#define _DB_LEVELDB_H
|
|
|
|
#include "db.h"
|
|
#include <leveldb/db.h>
|
|
|
|
class DBLevelDB : public DB {
|
|
public:
|
|
DBLevelDB(const std::string &mapdir);
|
|
virtual std::vector<int64_t> getBlockPos();
|
|
virtual DBBlockList getBlocksOnZ(int zPos);
|
|
~DBLevelDB();
|
|
private:
|
|
void loadPosCache();
|
|
|
|
leveldb::DB *db;
|
|
|
|
bool posCacheLoaded;
|
|
std::vector<int64_t> posCache;
|
|
};
|
|
|
|
#endif // _DB_LEVELDB_H
|