diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-08 22:20:20 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-08 22:20:20 +0200 |
| commit | e301c700764f2eca2498c5e95e5cc44dab2f5b5c (patch) | |
| tree | c0ae2582392799f294745933cb2858e6121c3bd4 /serialize/world-impl.hpp | |
| parent | 9cca30206a8de348bde4bddfa8ae10bd35ea8b66 (diff) | |
serialize/save: add RLE for empty tiles
Diffstat (limited to 'serialize/world-impl.hpp')
| -rw-r--r-- | serialize/world-impl.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/serialize/world-impl.hpp b/serialize/world-impl.hpp index a869e022..ea7e8792 100644 --- a/serialize/world-impl.hpp +++ b/serialize/world-impl.hpp @@ -23,6 +23,7 @@ * 8) Entity subtypes. * 9) Interned strings. * 10) Chunk Z level. + * 11) RLE empty tiles. */ namespace floormat { @@ -49,7 +50,7 @@ constexpr inline auto null_atlas = (atlasid)-1LL; constexpr inline size_t character_name_max = 128; constexpr inline size_t string_max = 512; -constexpr inline proto_t proto_version = 10; +constexpr inline proto_t proto_version = 11; constexpr inline proto_t min_proto_version = 1; constexpr inline auto chunk_magic = (uint16_t)~0xc0d3; constexpr inline auto scenery_magic = (uint16_t)~0xb00b; @@ -76,6 +77,8 @@ enum : tilemeta { meta_ground = 1 << 2, meta_wall_n = 1 << 3, meta_wall_w = 1 << 4, + meta_rle = 1 << 7, + meta_short_atlasid_ = 1 << 5, meta_short_variant_ = 1 << 6, meta_scenery_ = 1 << 7, |
