mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 22:11:51 +00:00
upgrade regions format version to 3
This commit is contained in:
parent
69b90f53c3
commit
e30c1b3c03
15 changed files with 138 additions and 149 deletions
|
|
@ -66,20 +66,12 @@ public:
|
|||
flags.unsaved = true;
|
||||
}
|
||||
|
||||
/// @brief Encode chunk to bytes array of size CHUNK_DATA_LEN
|
||||
/// @see /doc/specs/outdated/region_voxels_chunk_spec_v1.md
|
||||
std::unique_ptr<ubyte[]> encode() const;
|
||||
|
||||
/// @brief Encode chunk to bytes array of size CHUNK_DATA_LEN
|
||||
/// @see /doc/specs/region_voxels_chunk_spec.md
|
||||
std::unique_ptr<ubyte[]> encodeV2() const;
|
||||
std::unique_ptr<ubyte[]> encode() const;
|
||||
|
||||
/// @return true if all is fine
|
||||
bool decode(const ubyte* data);
|
||||
|
||||
/// @return true if all is fine
|
||||
bool decodeV2(const ubyte* data);
|
||||
|
||||
static void convert(ubyte* data, const ContentReport* report);
|
||||
static void convertV2(ubyte* data, const ContentReport* report);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue