Aegis2D
Modular C++26 2D game engine for networked games
Loading...
Searching...
No Matches
settings.hpp
Go to the documentation of this file.
1
3#pragma once
4
6#include <aegis2d/platform/export.hpp>
7
8#include <filesystem>
9#include <string_view>
10
11namespace aegis2d::platform {
12
22[[nodiscard]] AEGIS2D_PLATFORM_EXPORT std::filesystem::path
23settings_dir(std::string_view organization, std::string_view application);
24
31[[nodiscard]] AEGIS2D_PLATFORM_EXPORT core::Config read_settings(const std::filesystem::path& file);
32
33} // namespace aegis2d::platform
JSON configuration file (server port, window size...) read through typed getters.
Definition config.hpp:58
JSON configuration with dotted-path lookups, which can be changed and saved.
Window and input on top of SDL3, independent of the graphics API (client only).
Definition actions.hpp:19
core::Config read_settings(const std::filesystem::path &file)
Reads the player's settings file.
std::filesystem::path settings_dir(std::string_view organization, std::string_view application)
Folder of the player's settings for one game, created if needed.