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

Function deserialize

game/state/gamestate_serialize.cpp:531–544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

529}
530
531static bool deserialize(BattleMapTileset &tileSet, const GameState &state,
532 SerializationArchive *archive)
533{
534 try
535 {
536 serializeIn(&state, archive->getRoot("", "tileset"), tileSet);
537 }
538 catch (SerializationException &e)
539 {
540 LogError("Serialization failed: \"%s\"", e.what());
541 return false;
542 }
543 return true;
544}
545
546bool BattleMapTileset::saveTileset(const UString &path, bool pack, bool pretty)
547{

Callers 5

loadGameMethod · 0.85
loadTilesetMethod · 0.85
loadImagePackMethod · 0.85
loadAnimationPackMethod · 0.85
loadSectorMethod · 0.85

Calls 2

getRootMethod · 0.80
serializeInFunction · 0.70

Tested by

no test coverage detected