| 555 | } |
| 556 | |
| 557 | bool BattleMapTileset::loadTileset(GameState &state, const UString &path) |
| 558 | { |
| 559 | |
| 560 | auto archive = SerializationArchive::readArchive(path); |
| 561 | if (!archive) |
| 562 | { |
| 563 | LogError("Failed to read \"%s\"", path); |
| 564 | return false; |
| 565 | } |
| 566 | |
| 567 | return deserialize(*this, state, archive.get()); |
| 568 | } |
| 569 | |
| 570 | static bool serialize(const BattleUnitImagePack &imagePack, SerializationArchive *archive) |
| 571 | { |
no test coverage detected