From 6cd00aacfa22fed6a54a9b812f6b069ad16feec0 Mon Sep 17 00:00:00 2001 From: untodesu Date: Sun, 29 Jun 2025 22:24:42 +0500 Subject: Move game sources into src subdirectory --- src/game/shared/voxel_storage.hh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/game/shared/voxel_storage.hh (limited to 'src/game/shared/voxel_storage.hh') diff --git a/src/game/shared/voxel_storage.hh b/src/game/shared/voxel_storage.hh new file mode 100644 index 0000000..a31cf3e --- /dev/null +++ b/src/game/shared/voxel_storage.hh @@ -0,0 +1,18 @@ +#ifndef SHARED_VOXEL_STORAGE_HH +#define SHARED_VOXEL_STORAGE_HH 1 +#pragma once + +#include "shared/const.hh" +#include "shared/types.hh" + +class ReadBuffer; +class WriteBuffer; + +class VoxelStorage final : public std::array { +public: + using std::array::array; + void serialize(WriteBuffer& buffer) const; + void deserialize(ReadBuffer& buffer); +}; + +#endif /* SHARED_VOXEL_STORAGE_HH */ -- cgit