mirror of
https://github.com/minetest/minetestmapper.git
synced 2025-07-04 17:40:22 +02:00
LevelDB support
This commit is contained in:
18
db.h
Normal file
18
db.h
Normal file
@ -0,0 +1,18 @@
|
||||
#ifndef _DB_H
|
||||
#define _DB_H
|
||||
|
||||
#include <cstdint>
|
||||
#include <vector>
|
||||
#include <list>
|
||||
#include <string>
|
||||
|
||||
typedef std::pair<int64_t, std::basic_string<unsigned char>> DBBlock;
|
||||
typedef std::list<DBBlock> DBBlockList;
|
||||
|
||||
class DB {
|
||||
public:
|
||||
virtual std::vector<int64_t> getBlockPos()=0;
|
||||
virtual DBBlockList getBlocksOnZ(int zPos)=0;
|
||||
};
|
||||
|
||||
#endif // _DB_H
|
Reference in New Issue
Block a user