Conquer Space 0.0.0
A space themed grand strategy game set in the near future, with realistic orbital mechanics, and an emphasis on economics and politics.
Namespaces | Functions
loadutil.h File Reference
#include <hjson.h>
#include <map>
#include <string>
#include "core/components/resource.h"
#include "core/components/units.h"
#include "core/universe.h"

Go to the source code of this file.

Namespaces

namespace  cqsp
 
namespace  cqsp::core
 
namespace  cqsp::core::loading
 

Functions

bool cqsp::core::loading::LoadName (const Node &node, const Hjson::Value &value)
 Returns true if name exists More...
 
bool cqsp::core::loading::LoadIdentifier (const Node &node, const Hjson::Value &value)
 
bool cqsp::core::loading::LoadDescription (const Node &node, const Hjson::Value &value)
 
bool cqsp::core::loading::LoadTags (const Node &node, const Hjson::Value &value)
 
bool cqsp::core::loading::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 More...
 
components::ResourceLedger cqsp::core::loading::HjsonToLedger (Universe &universe, Hjson::Value &hjson)
 
bool cqsp::core::loading::VerifyHjsonValueExists (const Hjson::Value &value, const std::string &name, Hjson::Type type)
 
bool cqsp::core::loading::VerifyInitialValues (const Hjson::Value &value, const std::map< std::string, Hjson::Type > &map)
 For the values that need to exist More...
 
double cqsp::core::loading::ReadUnit (std::string_view value, components::types::UnitType unit_type, bool *correct=nullptr)
 Gets the unit from the value from expected unit type. More...