mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 21:41:50 +00:00
add Chunk.encodeV2, decodeV2
This commit is contained in:
parent
cbb0ecd1f6
commit
c18eddb63c
5 changed files with 45 additions and 3 deletions
|
|
@ -66,10 +66,19 @@ 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;
|
||||
|
||||
/// @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);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue