* Loads the terror site from a YAML file. * @param node YAML node. */
| 42 | * @param node YAML node. |
| 43 | */ |
| 44 | void 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. |