|
Cytopia
0.3
A city building simulation game
|
the settings of the client More...
#include <Settings.hxx>
Inheritance diagram for Settings:
Collaboration diagram for Settings:Public Member Functions | |
| void | readFile () |
| Load settings from file. More... | |
| void | writeFile () |
| Save settings to file. More... | |
| void | resetSettingsToDefaults () |
| Reset settings to defaults from local settings file. More... | |
Public Attributes | |
| friend | Singleton< Settings > |
Public Attributes inherited from SettingsData | |
| int | settingsVersion |
| the version of the Settings file. Overwrite cache settings if a newer version exists More... | |
| int | mapSize |
| the size of the map More... | |
| ScreenDimension | screenWidth |
| the screen width More... | |
| ScreenDimension | screenHeight |
| the screen height More... | |
| ScreenDimension | currentScreenWidth |
| the actual screen width (can differ from the one that's set in borderless fullscreen) More... | |
| ScreenDimension | currentScreenHeight |
| the actual screen height (can differ from the one that's set in borderless fullscreen) More... | |
| int | maxElevationHeight |
| the maximum elevation height More... | |
| float | zoneLayerTransparency |
| the value of the zone layer transparency, (0 - 1.0). where 0 is full opaque and 1 for full transparency. More... | |
| bool | vSync |
| if vSync is enabled or not More... | |
| bool | fullScreen |
| int | fullScreenMode |
| float | musicVolume |
| the volume of music as float between [0, 1] More... | |
| float | soundEffectsVolume |
| the volume of sound effects as float between [0, 1] More... | |
| bool | playMusic |
| true if music should be played More... | |
| bool | playSoundEffects |
| true if sound effects should be played More... | |
| int | audioChannels |
| the number of channels used for sound playback 1=Mono,2=Stereo More... | |
| bool | audio3DStatus |
| whether to play 3D sound or not More... | |
| std::string | buildMenuPosition |
| location of the build menu More... | |
| std::string | biome |
| this is used for biomedata More... | |
| FilePath | uiDataJSONFile |
| JSONFile that contains uiData. More... | |
| FilePath | tileDataJSONFile |
| JSONFile that contains tileData. More... | |
| FilePath | uiLayoutJSONFile |
| The file path to the UI layout file. More... | |
| FilePath | audioConfigJSONFile |
| file path to Audio Configuration More... | |
| FilePath | audioConfig3DJSONFile |
| the file path to Audio Configuration 3D More... | |
| std::string | gameLanguage |
| the code for the current game language More... | |
| FilePath | fontFileName |
| FilePath of the Font that should be used. More... | |
| int | subMenuButtonWidth |
| The width in pixels of the buttons used in the build sub menues on the UI. More... | |
| int | subMenuButtonHeight |
| The height in pixels of the buttons used in the build sub menues on the UI. More... | |
| uint32_t | defaultFontSize |
| bool | showBuildingsInBlueprint |
| indicates whether we want to see buildings inside Blueprint layer or not More... | |
| bool | writeErrorLogFile |
| Write errors to a log file. More... | |
Private Member Functions | |
| Settings () | |
| ~Settings ()=default | |
| json | parseSettingsFile (const std::string &fileName) const |
Additional Inherited Members | |
Static Public Member Functions inherited from Singleton< Settings > | |
| static Settings & | instance (void) |
| Get an instance of the singleton. More... | |
Protected Member Functions inherited from Singleton< Settings > | |
| Singleton () noexcept=default | |
| ~Singleton () noexcept=default | |
the settings of the client
Definition at line 175 of file Settings.hxx.
|
private |
|
privatedefault |
|
private |
Definition at line 75 of file Settings.cxx.
Here is the call graph for this function:
Here is the caller graph for this function:| void Settings::readFile | ( | ) |
Load settings from file.
| ConfigurationError | when loading configuration results in an error |
Definition at line 14 of file Settings.cxx.
Here is the call graph for this function:
Here is the caller graph for this function:| void Settings::resetSettingsToDefaults | ( | ) |
Reset settings to defaults from local settings file.
| ConfigurationError | when loading configuration results in an error |
Definition at line 88 of file Settings.cxx.
Here is the call graph for this function:
Here is the caller graph for this function:| void Settings::writeFile | ( | ) |
Save settings to file.
Definition at line 57 of file Settings.cxx.
Here is the call graph for this function:
Here is the caller graph for this function:| friend Settings::Singleton< Settings > |
Definition at line 178 of file Settings.hxx.