From f654c5effa41a6f6318f8c2e71333594778554a1 Mon Sep 17 00:00:00 2001
From: mduval76 <9343789@etu.cegepsth.qc.ca>
Date: Thu, 16 Nov 2023 18:01:00 -0500
Subject: [PATCH 01/12] =?UTF-8?q?Push=20initial=20pour=20sauvegarde=20des?=
=?UTF-8?q?=20param=C3=A8tres?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
SQCSim2021/SQCSim2021.vcxproj | 2 ++
SQCSim2021/SQCSim2021.vcxproj.filters | 6 ++++++
SQCSim2021/parameters.cpp | 1 +
SQCSim2021/parameters.h | 8 ++++++++
4 files changed, 17 insertions(+)
create mode 100644 SQCSim2021/parameters.cpp
create mode 100644 SQCSim2021/parameters.h
diff --git a/SQCSim2021/SQCSim2021.vcxproj b/SQCSim2021/SQCSim2021.vcxproj
index fc67c42..b306010 100644
--- a/SQCSim2021/SQCSim2021.vcxproj
+++ b/SQCSim2021/SQCSim2021.vcxproj
@@ -25,6 +25,7 @@
+
@@ -41,6 +42,7 @@
+
diff --git a/SQCSim2021/SQCSim2021.vcxproj.filters b/SQCSim2021/SQCSim2021.vcxproj.filters
index 5c8a864..271ff00 100644
--- a/SQCSim2021/SQCSim2021.vcxproj.filters
+++ b/SQCSim2021/SQCSim2021.vcxproj.filters
@@ -53,6 +53,9 @@
Fichiers d%27en-tête
+
+ Fichiers d%27en-tête
+
@@ -97,5 +100,8 @@
Fichiers sources
+
+ Fichiers sources
+
\ No newline at end of file
diff --git a/SQCSim2021/parameters.cpp b/SQCSim2021/parameters.cpp
new file mode 100644
index 0000000..5dd7956
--- /dev/null
+++ b/SQCSim2021/parameters.cpp
@@ -0,0 +1 @@
+#include "parameters.h"
diff --git a/SQCSim2021/parameters.h b/SQCSim2021/parameters.h
new file mode 100644
index 0000000..51a477e
--- /dev/null
+++ b/SQCSim2021/parameters.h
@@ -0,0 +1,8 @@
+#ifndef PARAMETERS_H
+#define PARAMETERS_H
+
+class Parameters {
+
+};
+
+#endif // PARAMETERS_H
\ No newline at end of file
From 6bb3ee96671aaf67ceaaf8847b723aea2f0e6064 Mon Sep 17 00:00:00 2001
From: mduval76 <9343789@etu.cegepsth.qc.ca>
Date: Thu, 16 Nov 2023 20:47:20 -0500
Subject: [PATCH 02/12] push changement de location
---
SQCSim-common/SQCSim-common.vcxproj | 2 +
SQCSim-common/SQCSim-common.vcxproj.filters | 6 ++
SQCSim-common/parameters.cpp | 67 +++++++++++++++++++++
SQCSim-common/parameters.h | 55 +++++++++++++++++
SQCSim2021/define.h | 1 -
SQCSim2021/engine.h | 3 -
SQCSim2021/parameters.cpp | 1 -
SQCSim2021/parameters.h | 8 ---
8 files changed, 130 insertions(+), 13 deletions(-)
create mode 100644 SQCSim-common/parameters.cpp
create mode 100644 SQCSim-common/parameters.h
delete mode 100644 SQCSim2021/parameters.cpp
delete mode 100644 SQCSim2021/parameters.h
diff --git a/SQCSim-common/SQCSim-common.vcxproj b/SQCSim-common/SQCSim-common.vcxproj
index 4cebfaf..a2259e3 100644
--- a/SQCSim-common/SQCSim-common.vcxproj
+++ b/SQCSim-common/SQCSim-common.vcxproj
@@ -139,6 +139,7 @@
+
@@ -151,6 +152,7 @@
+
diff --git a/SQCSim-common/SQCSim-common.vcxproj.filters b/SQCSim-common/SQCSim-common.vcxproj.filters
index 26c6c05..9f3461d 100644
--- a/SQCSim-common/SQCSim-common.vcxproj.filters
+++ b/SQCSim-common/SQCSim-common.vcxproj.filters
@@ -54,6 +54,9 @@
Fichiers d%27en-tête
+
+ Fichiers d%27en-tête
+
@@ -80,5 +83,8 @@
Fichiers sources
+
+ Fichiers sources
+
\ No newline at end of file
diff --git a/SQCSim-common/parameters.cpp b/SQCSim-common/parameters.cpp
new file mode 100644
index 0000000..4fd9ff1
--- /dev/null
+++ b/SQCSim-common/parameters.cpp
@@ -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 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 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 Parameters::GetGameParameter(const std::string& key) const {
+ auto it = m_gameplaySettings.find(key);
+ if (it != m_gameplaySettings.end()) {
+ return it->second;
+ }
+ return std::nullopt;
+}
+
+
diff --git a/SQCSim-common/parameters.h b/SQCSim-common/parameters.h
new file mode 100644
index 0000000..3e2acea
--- /dev/null
+++ b/SQCSim-common/parameters.h
@@ -0,0 +1,55 @@
+#ifndef PARAMETERS_H
+#define PARAMETERS_H
+
+#include
+#include
+#include
+#include
+#include
+#include
+#include