68 lines
1.4 KiB
C++
68 lines
1.4 KiB
C++
#include "parameters.h"
|
|
|
|
Parameters::Parameters() {}
|
|
|
|
Parameters::~Parameters() {}
|
|
|
|
void Parameters::SaveAudioParameters() {
|
|
|
|
}
|
|
|
|
void Parameters::SaveGraphicParameters() {
|
|
|
|
}
|
|
|
|
void Parameters::SaveGameParameters() {
|
|
|
|
}
|
|
|
|
void Parameters::LoadAudioParameters() {
|
|
|
|
}
|
|
|
|
void Parameters::LoadGraphicParameters() {
|
|
|
|
}
|
|
|
|
void Parameters::LoadGameParameters() {
|
|
|
|
}
|
|
|
|
void Parameters::SetAudioParameter(const std::string& key, const ParameterValue& value) {
|
|
m_audioSettings[key] = value;
|
|
}
|
|
|
|
void Parameters::SetGraphicParameter(const std::string& key, const ParameterValue& value) {
|
|
m_graphicSettings[key] = value;
|
|
}
|
|
|
|
void Parameters::SetGameParameter(const std::string& key, const ParameterValue& value) {
|
|
m_gameplaySettings[key] = value;
|
|
}
|
|
|
|
std::optional<ParameterValue> Parameters::GetAudioParameter(const std::string& key) const {
|
|
auto it = m_audioSettings.find(key);
|
|
if (it != m_audioSettings.end()) {
|
|
return it->second;
|
|
}
|
|
return std::nullopt;
|
|
}
|
|
|
|
std::optional<ParameterValue> Parameters::GetGraphicParameter(const std::string& key) const {
|
|
auto it = m_graphicSettings.find(key);
|
|
if (it != m_graphicSettings.end()) {
|
|
return it->second;
|
|
}
|
|
return std::nullopt;
|
|
}
|
|
|
|
std::optional<ParameterValue> Parameters::GetGameParameter(const std::string& key) const {
|
|
auto it = m_gameplaySettings.find(key);
|
|
if (it != m_gameplaySettings.end()) {
|
|
return it->second;
|
|
}
|
|
return std::nullopt;
|
|
}
|
|
|
|
|