17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-17 03:59:19 +02:00

feat(terrain): binary terrain (BTF2) keeps the sweeps and the //$ lines of its text file and loads them with the terrain; a sweep in the text file no longer stops the conversion; binary files of the version before made again from the text

This commit is contained in:
maj00r
2026-10-08 00:51:29 +02:00
parent ca208b3ed1
commit b451f80c6d
3 changed files with 71 additions and 2 deletions

View File

@@ -46,6 +46,7 @@ class terrain_file
static bool attach(std::string const &Binaryfile, basic_region &Region, bool Deferred);
// loads specified piece of a binary terrain file into provided section
static void load(basic_section &Section, terrain_block const &Block);
static std::string extra(std::string const &Binaryfile);
private:
// converts provided content of a text terrain file to binary format and stores it in specified file. returns: true on success, false otherwise