mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 20:41:49 +00:00
add world.save_chunk_data(...)
This commit is contained in:
parent
0e95d9d1af
commit
f1f81371af
3 changed files with 62 additions and 6 deletions
|
|
@ -5,8 +5,10 @@
|
|||
#include <vector>
|
||||
|
||||
class Chunk;
|
||||
class WorldRegions;
|
||||
|
||||
namespace compressed_chunks {
|
||||
std::vector<ubyte> encode(const Chunk& chunk);
|
||||
void decode(Chunk& chunk, const ubyte* src, size_t size);
|
||||
void save(int x, int z, std::vector<ubyte> bytes, WorldRegions& regions);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue