summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-01-23 08:56:32 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-01-23 08:56:43 +0100
commit068e5dd08439932604e5ad5d1f22826107a3f308 (patch)
tree601f69ce0f3a273bfd6025a419bd4cdee606191c /src
parentb7779f7736afedd041f49bcdf36647687bf3d456 (diff)
a
Diffstat (limited to 'src')
-rw-r--r--src/tile-defs.hpp2
-rw-r--r--src/world.hpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/tile-defs.hpp b/src/tile-defs.hpp
index 0dc74e20..2a8a7865 100644
--- a/src/tile-defs.hpp
+++ b/src/tile-defs.hpp
@@ -4,7 +4,7 @@
namespace floormat {
-using variant_t = uint8_t; // todo change later to 16 bits
+using variant_t = uint16_t;
constexpr inline uint32_t TILE_MAX_DIM = 16;
constexpr inline size_t TILE_COUNT = size_t{TILE_MAX_DIM}*size_t{TILE_MAX_DIM};
diff --git a/src/world.hpp b/src/world.hpp
index 6bb85a18..2f5813dd 100644
--- a/src/world.hpp
+++ b/src/world.hpp
@@ -68,7 +68,8 @@ public:
const auto& chunks() const noexcept { return _chunks; }
void serialize(StringView filename);
- static world deserialize(StringView filename) noexcept(false);
+ static class world deserialize(StringView filename) noexcept(false);
+ static void deserialize_old(class world& w, ArrayView<const char> buf, uint16_t proto) noexcept(false);
void set_collect_threshold(size_t value) { _collect_every = value; }
size_t collect_threshold() const noexcept { return _collect_every; }
auto frame_no() const { return _current_frame; }