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

Method load

src/Savegame/MovingTarget.cpp:56–63  ·  view source on GitHub ↗

* Loads the moving target from a YAML file. * @param node YAML node. */

Source from the content-addressed store, hash-verified

54 * @param node YAML node.
55 */
56void MovingTarget::load(const YAML::Node &node)
57{
58 Target::load(node);
59 _speedLon = node["speedLon"].as<double>(_speedLon);
60 _speedLat = node["speedLat"].as<double>(_speedLat);
61 _speedRadian = node["speedRadian"].as<double>(_speedRadian);
62 _speed = node["speed"].as<int>(_speed);
63}
64
65/**
66 * Saves the moving target to a YAML file.

Callers

nothing calls this directly

Calls 1

loadFunction · 0.85

Tested by

no test coverage detected