mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 14:31:50 +00:00
inventory reindexing
This commit is contained in:
parent
1409df4b86
commit
51ffb93230
12 changed files with 174 additions and 51 deletions
|
|
@ -11,11 +11,23 @@ class Content;
|
|||
class ContentLUT;
|
||||
class WorldFiles;
|
||||
|
||||
enum class convert_task_type {
|
||||
region, player
|
||||
};
|
||||
|
||||
struct convert_task {
|
||||
convert_task_type type;
|
||||
fs::path file;
|
||||
};
|
||||
|
||||
class WorldConverter {
|
||||
WorldFiles* wfile;
|
||||
std::shared_ptr<ContentLUT> const lut;
|
||||
const Content* const content;
|
||||
std::queue<fs::path> regions;
|
||||
std::queue<convert_task> tasks;
|
||||
|
||||
void convertPlayer(fs::path file);
|
||||
void convertRegion(fs::path file);
|
||||
public:
|
||||
WorldConverter(fs::path folder, const Content* content,
|
||||
std::shared_ptr<ContentLUT> lut);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue