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

Method saveImagePack

game/state/gamestate_serialize.cpp:600–609  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

598}
599
600bool 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
611bool BattleUnitImagePack::loadImagePack(GameState &state, const UString &path)
612{

Callers 1

main.cppFile · 0.80

Calls 3

serializeFunction · 0.85
writeMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected