From 3bf42c6ff3805a0d42bbc661794a95ff31bedc26 Mon Sep 17 00:00:00 2001 From: untodesu Date: Sat, 15 Mar 2025 16:22:09 +0500 Subject: Add whatever I was working on for the last month --- game/shared/voxel_storage.hh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 game/shared/voxel_storage.hh (limited to 'game/shared/voxel_storage.hh') diff --git a/game/shared/voxel_storage.hh b/game/shared/voxel_storage.hh new file mode 100644 index 0000000..08d234d --- /dev/null +++ b/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