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

Method loadTileset

game/state/gamestate_serialize.cpp:557–568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

555}
556
557bool BattleMapTileset::loadTileset(GameState &state, const UString &path)
558{
559
560 auto archive = SerializationArchive::readArchive(path);
561 if (!archive)
562 {
563 LogError("Failed to read \"%s\"", path);
564 return false;
565 }
566
567 return deserialize(*this, state, archive.get());
568}
569
570static bool serialize(const BattleUnitImagePack &imagePack, SerializationArchive *archive)
571{

Callers 1

loadTilesetsMethod · 0.80

Calls 2

deserializeFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected