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

Method save

src/Savegame/MovingTarget.cpp:69–81  ·  view source on GitHub ↗

* Saves the moving target to a YAML file. * @return YAML node. */

Source from the content-addressed store, hash-verified

67 * @return YAML node.
68 */
69YAML::Node MovingTarget::save() const
70{
71 YAML::Node node = Target::save();
72 if (_dest != 0)
73 {
74 node["dest"] = _dest->saveId();
75 }
76 node["speedLon"] = _speedLon;
77 node["speedLat"] = _speedLat;
78 node["speedRadian"] = _speedRadian;
79 node["speed"] = _speed;
80 return node;
81}
82
83/**
84 * Returns the destination the moving target is heading to.

Callers

nothing calls this directly

Calls 2

saveFunction · 0.85
saveIdMethod · 0.45

Tested by

no test coverage detected