33bool LoadName(Universe&
universe,
const entt::entity& entity,
const Hjson::Value& value);
50bool VerifyInitialValues(
const Hjson::Value& value,
const std::map<std::string, Hjson::Type>& map);
Definition: universe.h:32
UnitType
Definition: units.h:22
Definition: hjsonloader.cpp:26
cqsp::common::components::ResourceLedger HjsonToLedger(cqsp::common::Universe &universe, Hjson::Value &hjson)
Definition: loadutil.cpp:60
bool LoadName(Universe &universe, const entt::entity &entity, const Hjson::Value &value)
Returns true if name exists
Definition: loadutil.cpp:24
bool LoadIdentifier(Universe &universe, const entt::entity &entity, const Hjson::Value &value)
Definition: loadutil.cpp:34
double ReadUnit(std::string_view value, components::types::UnitType unit_type, bool *correct)
Gets the unit from the value from expected unit type.
Definition: loadutil.cpp:92
bool LoadDescription(Universe &universe, const entt::entity &entity, const Hjson::Value &value)
Definition: loadutil.cpp:44
bool VerifyInitialValues(const Hjson::Value &value, const std::map< std::string, Hjson::Type > &map)
For the values that need to exist
Definition: loadutil.cpp:72
bool VerifyHjsonValueExists(const Hjson::Value &value, const std::string &name, Hjson::Type type)
Definition: loadutil.cpp:68
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:54
common::Universe * universe
Definition: turnsavewindow.h:3