Helper class to encapsulate our global settings we want to quickly access across app.
More...
#include <Settings.hpp>
|
static auto | set_config_to_default () -> void |
| Restore all config settings to default.
|
|
static auto | set_settings_from_config () -> void |
| Set all our settings using the provided config file.
|
|
static auto | root_dir () noexcept -> std::filesystem::path |
| Current root directory of application, unless it has been changed.
|
|
static auto | assets_dir () noexcept -> std::filesystem::path |
| Main data directory.
|
|
static auto | editor_dir () noexcept -> std::filesystem::path |
| Directory for editor specific stuff.
|
|
static auto | asset_pack () noexcept -> const std::string & |
| Name of packed assets file.
|
|
static auto | use_loose_assets () noexcept -> bool |
| Should asset data be read from pack or assets dir.
|
|
static auto | assets_dir_music () noexcept -> const std::string & |
| Music asset location.
|
|
static auto | assets_dir_sfx () noexcept -> const std::string & |
| SFX asset location.
|
|
static auto | assets_dir_voice () noexcept -> const std::string & |
| Voice asset location.
|
|
static auto | assets_dir_font () noexcept -> const std::string & |
| Font asset location.
|
|
static auto | assets_dir_script () noexcept -> const std::string & |
| Scripts asset location.
|
|
static auto | assets_dir_shaders () noexcept -> const std::string & |
| Shaders asset location.
|
|
static auto | assets_dir_animation () noexcept -> const std::string & |
| Animation data location.
|
|
static auto | assets_dir_texture () noexcept -> const std::string & |
| Textures asset location.
|
|
static auto | assets_dir_prefabs () noexcept -> const std::string & |
| Prefab asset location.
|
|
static auto | assets_dir_maps () noexcept -> const std::string & |
| Maps asset location.
|
|
static auto | assets_dir_video () noexcept -> const std::string & |
| Video asset location.
|
|
static auto | assets_dir_ui () noexcept -> const std::string & |
| UI asset location.
|
|
Helper class to encapsulate our global settings we want to quickly access across app.
Definition at line 18 of file Settings.hpp.
◆ set_config_to_default()
auto galaxy::settings::set_config_to_default |
( |
| ) |
-> void |
|
static |
Restore all config settings to default.
Definition at line 22 of file Settings.cpp.
◆ set_settings_from_config()
auto galaxy::settings::set_settings_from_config |
( |
| ) |
-> void |
|
static |
Set all our settings using the provided config file.
Definition at line 67 of file Settings.cpp.
◆ root_dir()
auto galaxy::settings::root_dir |
( |
| ) |
-> std::filesystem::path |
|
staticnodiscardnoexcept |
Current root directory of application, unless it has been changed.
Definition at line 200 of file Settings.cpp.
◆ assets_dir()
auto galaxy::settings::assets_dir |
( |
| ) |
-> std::filesystem::path |
|
staticnodiscardnoexcept |
◆ editor_dir()
auto galaxy::settings::editor_dir |
( |
| ) |
-> std::filesystem::path |
|
staticnodiscardnoexcept |
Directory for editor specific stuff.
Definition at line 210 of file Settings.cpp.
◆ asset_pack()
auto galaxy::settings::asset_pack |
( |
| ) |
-> const std::string& |
|
staticnodiscardnoexcept |
◆ use_loose_assets()
auto galaxy::settings::use_loose_assets |
( |
| ) |
-> bool |
|
staticnodiscardnoexcept |
Should asset data be read from pack or assets dir.
Definition at line 220 of file Settings.cpp.
◆ assets_dir_music()
auto galaxy::settings::assets_dir_music |
( |
| ) |
-> const std::string& |
|
staticnodiscardnoexcept |
◆ assets_dir_sfx()
auto galaxy::settings::assets_dir_sfx |
( |
| ) |
-> const std::string& |
|
staticnodiscardnoexcept |
◆ assets_dir_voice()
auto galaxy::settings::assets_dir_voice |
( |
| ) |
-> const std::string& |
|
staticnodiscardnoexcept |
◆ assets_dir_font()
auto galaxy::settings::assets_dir_font |
( |
| ) |
-> const std::string& |
|
staticnodiscardnoexcept |
◆ assets_dir_script()
auto galaxy::settings::assets_dir_script |
( |
| ) |
-> const std::string& |
|
staticnodiscardnoexcept |
◆ assets_dir_shaders()
auto galaxy::settings::assets_dir_shaders |
( |
| ) |
-> const std::string& |
|
staticnodiscardnoexcept |
◆ assets_dir_animation()
auto galaxy::settings::assets_dir_animation |
( |
| ) |
-> const std::string& |
|
staticnodiscardnoexcept |
◆ assets_dir_texture()
auto galaxy::settings::assets_dir_texture |
( |
| ) |
-> const std::string& |
|
staticnodiscardnoexcept |
◆ assets_dir_prefabs()
auto galaxy::settings::assets_dir_prefabs |
( |
| ) |
-> const std::string& |
|
staticnodiscardnoexcept |
◆ assets_dir_maps()
auto galaxy::settings::assets_dir_maps |
( |
| ) |
-> const std::string& |
|
staticnodiscardnoexcept |
◆ assets_dir_video()
auto galaxy::settings::assets_dir_video |
( |
| ) |
-> const std::string& |
|
staticnodiscardnoexcept |
◆ assets_dir_ui()
auto galaxy::settings::assets_dir_ui |
( |
| ) |
-> const std::string& |
|
staticnodiscardnoexcept |
◆ s_assets_dir
std::filesystem::path galaxy::settings::s_assets_dir |
|
inlinestaticprivate |
◆ s_editor_dir
std::filesystem::path galaxy::settings::s_editor_dir |
|
inlinestaticprivate |
◆ s_asset_pack
std::string galaxy::settings::s_asset_pack |
|
inlinestaticprivate |
◆ s_use_loose_assets
bool galaxy::settings::s_use_loose_assets |
|
inlinestaticprivate |
◆ s_assets_music
std::string galaxy::settings::s_assets_music |
|
inlinestaticprivate |
◆ s_assets_sfx
std::string galaxy::settings::s_assets_sfx |
|
inlinestaticprivate |
◆ s_assets_voice
std::string galaxy::settings::s_assets_voice |
|
inlinestaticprivate |
◆ s_assets_font
std::string galaxy::settings::s_assets_font |
|
inlinestaticprivate |
◆ s_assets_script
std::string galaxy::settings::s_assets_script |
|
inlinestaticprivate |
◆ s_assets_shaders
std::string galaxy::settings::s_assets_shaders |
|
inlinestaticprivate |
◆ s_assets_animation
std::string galaxy::settings::s_assets_animation |
|
inlinestaticprivate |
◆ s_assets_texture
std::string galaxy::settings::s_assets_texture |
|
inlinestaticprivate |
◆ s_assets_prefabs
std::string galaxy::settings::s_assets_prefabs |
|
inlinestaticprivate |
◆ s_assets_maps
std::string galaxy::settings::s_assets_maps |
|
inlinestaticprivate |
◆ s_assets_video
std::string galaxy::settings::s_assets_video |
|
inlinestaticprivate |
◆ s_assets_ui
std::string galaxy::settings::s_assets_ui |
|
inlinestaticprivate |
The documentation for this struct was generated from the following files: