mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Fix and simplify game saving / loading
This commit is contained in:
@@ -32,9 +32,12 @@ enum class ESerializationVersion : int32_t
|
||||
NONE = 0,
|
||||
|
||||
RELEASE_160 = 873,
|
||||
MINIMAL = RELEASE_160,
|
||||
|
||||
MAP_HEADER_DISPOSED_HEROES, // map header contains disposed heroes list
|
||||
NO_RAW_POINTERS_IN_SERIALIZER, // large rework that removed all non-owning pointers from serializer
|
||||
|
||||
CURRENT = MAP_HEADER_DISPOSED_HEROES
|
||||
CURRENT = NO_RAW_POINTERS_IN_SERIALIZER,
|
||||
MINIMAL = CURRENT,
|
||||
};
|
||||
|
||||
static_assert(ESerializationVersion::MINIMAL <= ESerializationVersion::CURRENT, "Invalid serialization version definition!");
|
||||
|
||||
Reference in New Issue
Block a user