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

Method deserialize

game/state/gamestate_serialize.cpp:502–514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

500}
501
502bool GameState::deserialize(SerializationArchive *archive)
503{
504 try
505 {
506 serializeIn(this, archive->getRoot("", "gamestate"), *this);
507 }
508 catch (SerializationException &e)
509 {
510 LogError("Serialization failed: \"%s\"", e.what());
511 return false;
512 }
513 return true;
514}
515
516static bool serialize(const BattleMapTileset &tileSet, SerializationArchive *archive)
517{

Callers

nothing calls this directly

Calls 2

getRootMethod · 0.80
serializeInFunction · 0.70

Tested by

no test coverage detected