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

Method save

src/Savegame/TerrorSite.cpp:57–67  ·  view source on GitHub ↗

* Saves the terror site to a YAML file. * @return YAML node. */

Source from the content-addressed store, hash-verified

55 * @return YAML node.
56 */
57YAML::Node TerrorSite::save() const
58{
59 YAML::Node node = Target::save();
60 node["id"] = _id;
61 if (_secondsRemaining)
62 node["secondsRemaining"] = _secondsRemaining;
63 node["race"] = _race;
64 if (_inBattlescape)
65 node["inBattlescape"] = _inBattlescape;
66 return node;
67}
68
69/**
70 * Saves the terror site's unique identifiers to a YAML file.

Callers

nothing calls this directly

Calls 1

saveFunction · 0.85

Tested by

no test coverage detected