mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 22:41:49 +00:00
Worlds indexing
This commit is contained in:
parent
eea920d98f
commit
f513c094a9
19 changed files with 383 additions and 141 deletions
26
src/files/WorldConverter.h
Normal file
26
src/files/WorldConverter.h
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#ifndef FILES_WORLD_CONVERTER_H_
|
||||
#define FILES_WORLD_CONVERTER_H_
|
||||
|
||||
#include <queue>
|
||||
#include <filesystem>
|
||||
|
||||
class Content;
|
||||
class ContentLUT;
|
||||
class WorldFiles;
|
||||
|
||||
class WorldConverter {
|
||||
WorldFiles* wfile;
|
||||
const ContentLUT* const lut;
|
||||
const Content* const content;
|
||||
std::queue<std::filesystem::path> regions;
|
||||
public:
|
||||
WorldConverter(std::filesystem::path folder, const Content* content, const ContentLUT* lut);
|
||||
~WorldConverter();
|
||||
|
||||
bool hasNext() const;
|
||||
void convertNext();
|
||||
|
||||
void write();
|
||||
};
|
||||
|
||||
#endif // FILES_WORLD_CONVERTER_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue