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

Method save

src/Savegame/ResearchProject.cpp:123–131  ·  view source on GitHub ↗

* Saves the research project to a YAML file. * @return YAML node. */

Source from the content-addressed store, hash-verified

121 * @return YAML node.
122 */
123YAML::Node ResearchProject::save() const
124{
125 YAML::Node node;
126 node["project"] = getRules ()->getName ();
127 node["assigned"] = getAssigned ();
128 node["spent"] = getSpent ();
129 node["cost"] = getCost ();
130 return node;
131}
132
133/**
134 * Return a string describing Research progress.

Callers

nothing calls this directly

Calls 1

getNameMethod · 0.45

Tested by

no test coverage detected