33bool LoadName(
const Node& node,
const Hjson::Value& value);
36bool LoadTags(
const Node& node,
const Hjson::Value& value);
44components::ResourceLedger
HjsonToLedger(Universe&, Hjson::Value&);
51bool VerifyInitialValues(
const Hjson::Value& value,
const std::map<std::string, Hjson::Type>& map);
UnitType
Definition: units.h:22
Definition: fields.cpp:36
bool LoadName(const Node &node, const Hjson::Value &value)
Returns true if name exists
Definition: loadutil.cpp:31
bool LoadInitialValues(const Node &node, const Hjson::Value &value)
Loads all the values that should be on every single data type Returns true if an identifier exists
Definition: loadutil.cpp:81
bool VerifyInitialValues(const Hjson::Value &value, const std::map< std::string, Hjson::Type > &map)
For the values that need to exist
Definition: loadutil.cpp:105
bool LoadDescription(const Node &node, const Hjson::Value &value)
Definition: loadutil.cpp:51
double ReadUnit(std::string_view value, UnitType unit_type, bool *correct)
Definition: loadutil.cpp:125
bool LoadTags(const Node &node, const Hjson::Value &value)
Definition: loadutil.cpp:61
bool VerifyHjsonValueExists(const Hjson::Value &value, const std::string &name, Hjson::Type type)
Definition: loadutil.cpp:101
bool LoadIdentifier(const Node &node, const Hjson::Value &value)
Definition: loadutil.cpp:41
components::ResourceLedger HjsonToLedger(Universe &universe, Hjson::Value &hjson)
Definition: loadutil.cpp:88