MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / load

Method load

src/Savegame/TerrorSite.cpp:44–51  ·  view source on GitHub ↗

* Loads the terror site from a YAML file. * @param node YAML node. */

Source from the content-addressed store, hash-verified

42 * @param node YAML node.
43 */
44void TerrorSite::load(const YAML::Node &node)
45{
46 Target::load(node);
47 _id = node["id"].as<int>(_id);
48 _secondsRemaining = node["secondsRemaining"].as<size_t>(_secondsRemaining);
49 _race = node["race"].as<std::string>(_race);
50 _inBattlescape = node["inBattlescape"].as<bool>(_inBattlescape);
51}
52
53/**
54 * Saves the terror site to a YAML file.

Callers

nothing calls this directly

Calls 1

loadFunction · 0.85

Tested by

no test coverage detected