blob: ef427b363237ab872ddb08e471b867004f8907c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#pragma once
#include "shared/const.hh"
#include "shared/types.hh"
class ReadBuffer;
class WriteBuffer;
class VoxelStorage final : public std::array<voxel_id, CHUNK_VOLUME> {
public:
using std::array<voxel_id, CHUNK_VOLUME>::array;
void serialize(WriteBuffer& buffer) const;
void deserialize(ReadBuffer& buffer);
};
|