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 | Private Attributes | List of all members
cqsp::common::systems::loading::CityLoader Class Reference

This loader has to be loaded after PlanetLoader because it adds the cities to the respectve planets More...

#include <loadcities.h>

Inheritance diagram for cqsp::common::systems::loading::CityLoader:
cqsp::common::systems::loading::HjsonLoader

Public Member Functions

 CityLoader (Universe &universe)
 
const Hjson::Value & GetDefaultValues () override
 
bool LoadValue (const Hjson::Value &values, entt::entity entity) override
 
void PostLoad (const entt::entity &entity) override
 
- Public Member Functions inherited from cqsp::common::systems::loading::HjsonLoader
 HjsonLoader (Universe &universe)
 
virtual ~HjsonLoader ()=default
 
int LoadHjson (const Hjson::Value &values)
 

Private Attributes

Hjson::Value default_val
 

Additional Inherited Members

- Protected Attributes inherited from cqsp::common::systems::loading::HjsonLoader
Universeuniverse
 

Detailed Description

This loader has to be loaded after PlanetLoader because it adds the cities to the respectve planets

Constructor & Destructor Documentation

◆ CityLoader()

cqsp::common::systems::loading::CityLoader::CityLoader ( Universe universe)
inlineexplicit

Member Function Documentation

◆ GetDefaultValues()

const Hjson::Value & cqsp::common::systems::loading::CityLoader::GetDefaultValues ( )
inlineoverridevirtual

◆ LoadValue()

bool cqsp::common::systems::loading::CityLoader::LoadValue ( const Hjson::Value &  values,
entt::entity  entity 
)
overridevirtual

◆ PostLoad()

void cqsp::common::systems::loading::CityLoader::PostLoad ( const entt::entity &  entity)
overridevirtual

Member Data Documentation

◆ default_val

Hjson::Value cqsp::common::systems::loading::CityLoader::default_val
private

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