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.
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
cqsp::core::loading::HjsonLoader Class Referenceabstract

#include <hjsonloader.h>

Inheritance diagram for cqsp::core::loading::HjsonLoader:
cqsp::core::loading::CityLoader cqsp::core::loading::CountryLoader cqsp::core::loading::GoodLoader cqsp::core::loading::LaborLoader cqsp::core::loading::ModifierLoader cqsp::core::loading::PlanetLoader cqsp::core::loading::PowerGridLoader cqsp::core::loading::PowerPlantLoader cqsp::core::loading::ProjectLoader cqsp::core::loading::ProvinceLoader cqsp::core::loading::RecipeLoader cqsp::core::loading::SatelliteLoader cqsp::core::loading::TimezoneLoader cqsp::core::loading::ZoningLoader

Public Member Functions

 HjsonLoader (Universe &universe)
 
virtual ~HjsonLoader ()=default
 
virtual const Hjson::Value & GetDefaultValues ()=0
 
int LoadHjson (const Hjson::Value &values)
 
virtual bool LoadValue (const Hjson::Value &values, Node &node)=0
 
virtual void PostLoad (const Node &node)
 
virtual bool NeedIdentifier ()
 

Protected Member Functions

glm::vec3 LoadColor (const Hjson::Value &value, std::string_view identifier)
 
glm::vec3 LoadColor (const Hjson::Value &value)
 
uint32_t StringHash (std::string_view)
 

Protected Attributes

Universe & universe
 

Constructor & Destructor Documentation

◆ HjsonLoader()

cqsp::core::loading::HjsonLoader::HjsonLoader ( Universe &  universe)
inlineexplicit

◆ ~HjsonLoader()

virtual cqsp::core::loading::HjsonLoader::~HjsonLoader ( )
virtualdefault

Member Function Documentation

◆ GetDefaultValues()

virtual const Hjson::Value & cqsp::core::loading::HjsonLoader::GetDefaultValues ( )
pure virtual

◆ LoadColor() [1/2]

glm::vec3 cqsp::core::loading::HjsonLoader::LoadColor ( const Hjson::Value &  value)
protected

◆ LoadColor() [2/2]

glm::vec3 cqsp::core::loading::HjsonLoader::LoadColor ( const Hjson::Value &  value,
std::string_view  identifier 
)
protected

◆ LoadHjson()

int cqsp::core::loading::HjsonLoader::LoadHjson ( const Hjson::Value &  values)

Loads the hjson struct for an entire asset.

◆ LoadValue()

virtual bool cqsp::core::loading::HjsonLoader::LoadValue ( const Hjson::Value &  values,
Node &  node 
)
pure virtual

◆ NeedIdentifier()

virtual bool cqsp::core::loading::HjsonLoader::NeedIdentifier ( )
inlinevirtual

◆ PostLoad()

virtual void cqsp::core::loading::HjsonLoader::PostLoad ( const Node &  node)
inlinevirtual

◆ StringHash()

uint32_t cqsp::core::loading::HjsonLoader::StringHash ( std::string_view  string)
protected

Member Data Documentation

◆ universe

Universe& cqsp::core::loading::HjsonLoader::universe
protected

The documentation for this class was generated from the following files: