Reading and writing saved games now uses the new tagfile system.

This should avoid any format inconsistencies, like missing newlines and the like.
Although a basic save and load works, there may still be some issues with the format.
This probably renders older saved games incompatible.
The format is mostly the same, but there are a few small changes
in the name of making the format more uniform.
This commit is contained in:
2023-01-18 00:39:12 -05:00
parent 99bd1678e4
commit 2492610ec7
27 changed files with 994 additions and 1098 deletions

View File

@@ -113,8 +113,6 @@ public:
explicit cTown(cScenario& scenario, size_t dim);
void import_legacy(legacy::town_record_type& old);
void reattach(cScenario& to);
void writeTerrainTo(std::ostream& file);
void readTerrainFrom(std::istream& file);
// Work with the item_taken bitset
bool is_item_taken(size_t i) const;
void clear_items_taken();