push changement de location
This commit is contained in:
67
SQCSim-common/parameters.cpp
Normal file
67
SQCSim-common/parameters.cpp
Normal 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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user