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

Method save

src/Savegame/AlienMission.cpp:98–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98YAML::Node AlienMission::save() const
99{
100 YAML::Node node;
101 node["type"] = _rule.getType();
102 node["region"] = _region;
103 node["race"] = _race;
104 node["nextWave"] = _nextWave;
105 node["nextUfoCounter"] = _nextUfoCounter;
106 node["spawnCountdown"] = _spawnCountdown;
107 node["liveUfos"] = _liveUfos;
108 node["uniqueID"] = _uniqueID;
109 if (_base)
110 {
111 node["alienBase"] = _base->getId();
112 }
113 return node;
114}
115
116const std::string &AlienMission::getType() const
117{

Callers

nothing calls this directly

Calls 2

getTypeMethod · 0.45
getIdMethod · 0.45

Tested by

no test coverage detected