push changement de location

This commit is contained in:
mduval76
2023-11-16 20:47:20 -05:00
parent f654c5effa
commit 6bb3ee9667
8 changed files with 130 additions and 13 deletions

View File

@@ -0,0 +1,67 @@
#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;
}