33bool LoadName(Universe&
universe,
const entt::entity& entity,
const Hjson::Value& value);
43components::ResourceLedger
HjsonToLedger(Universe&, Hjson::Value&);
50bool VerifyInitialValues(
const Hjson::Value& value,
const std::map<std::string, Hjson::Type>& map);
UnitType
Definition: units.h:22
Definition: hjsonloader.cpp:26
bool LoadName(Universe &universe, const entt::entity &entity, const Hjson::Value &value)
Returns true if name exists
Definition: loadutil.cpp:32
bool LoadIdentifier(Universe &universe, const entt::entity &entity, const Hjson::Value &value)
Definition: loadutil.cpp:42
bool LoadDescription(Universe &universe, const entt::entity &entity, const Hjson::Value &value)
Definition: loadutil.cpp:52
components::ResourceLedger HjsonToLedger(Universe &universe, Hjson::Value &hjson)
Definition: loadutil.cpp:68
bool VerifyInitialValues(const Hjson::Value &value, const std::map< std::string, Hjson::Type > &map)
For the values that need to exist
Definition: loadutil.cpp:80
double ReadUnit(std::string_view value, UnitType unit_type, bool *correct)
Definition: loadutil.cpp:100
bool VerifyHjsonValueExists(const Hjson::Value &value, const std::string &name, Hjson::Type type)
Definition: loadutil.cpp:76
bool LoadInitialValues(Universe &universe, const entt::entity &entity, 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:62
common::Universe * universe
Definition: turnsavewindow.h:3