MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / saveAnimationPack

Method saveAnimationPack

game/state/gamestate_serialize.cpp:662–671  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

660}
661
662bool 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
673bool BattleUnitAnimationPack::loadAnimationPack(GameState &state, const UString &path)
674{

Callers 1

main.cppFile · 0.80

Calls 3

serializeFunction · 0.85
writeMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected