* Saves the terror site to a YAML file. * @return YAML node. */
| 55 | * @return YAML node. |
| 56 | */ |
| 57 | YAML::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. |