| 598 | } |
| 599 | |
| 600 | bool BattleUnitImagePack::saveImagePack(const UString &path, bool pack, bool pretty) |
| 601 | { |
| 602 | auto archive = SerializationArchive::createArchive(); |
| 603 | if (serialize(*this, archive.get())) |
| 604 | { |
| 605 | archive->write(path, pack, pretty); |
| 606 | return true; |
| 607 | } |
| 608 | return false; |
| 609 | } |
| 610 | |
| 611 | bool BattleUnitImagePack::loadImagePack(GameState &state, const UString &path) |
| 612 | { |