| 660 | } |
| 661 | |
| 662 | bool BattleUnitAnimationPack::saveAnimationPack(const UString &path, bool pack, bool pretty) |
| 663 | { |
| 664 | auto archive = SerializationArchive::createArchive(); |
| 665 | if (serialize(*this, archive.get())) |
| 666 | { |
| 667 | archive->write(path, pack, pretty); |
| 668 | return true; |
| 669 | } |
| 670 | return false; |
| 671 | } |
| 672 | |
| 673 | bool BattleUnitAnimationPack::loadAnimationPack(GameState &state, const UString &path) |
| 674 | { |