mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 21:11:50 +00:00
implement blocks data conversion
This commit is contained in:
parent
28d746f371
commit
bc05716772
16 changed files with 341 additions and 23 deletions
|
|
@ -24,6 +24,8 @@ enum class ConvertTaskType {
|
|||
PLAYER,
|
||||
/// @brief refresh region file version
|
||||
UPGRADE_REGION,
|
||||
/// @brief convert blocks data to updated layouts
|
||||
CONVERT_BLOCKS_DATA,
|
||||
};
|
||||
|
||||
struct ConvertTask {
|
||||
|
|
@ -49,6 +51,7 @@ class WorldConverter : public Task {
|
|||
void convertPlayer(const fs::path& file) const;
|
||||
void convertVoxels(const fs::path& file, int x, int z) const;
|
||||
void convertInventories(const fs::path& file, int x, int z) const;
|
||||
void convertBlocksData(int x, int z, const ContentReport& report) const;
|
||||
|
||||
void addRegionsTasks(
|
||||
RegionLayerIndex layerid,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue