From 78e8a36953cc4f45214353ff0b5787241e748627 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?No=C3=A9?= <noe.artru@polytechnique.org>
Date: Sat, 20 May 2023 22:54:07 +0200
Subject: [PATCH] Global settings

---
 projet-code/scenes_inf443/base/src/settings.cpp | 9 +++++++++
 projet-code/scenes_inf443/base/src/settings.hpp | 9 +++++++++
 2 files changed, 18 insertions(+)
 create mode 100644 projet-code/scenes_inf443/base/src/settings.cpp
 create mode 100644 projet-code/scenes_inf443/base/src/settings.hpp

diff --git a/projet-code/scenes_inf443/base/src/settings.cpp b/projet-code/scenes_inf443/base/src/settings.cpp
new file mode 100644
index 0000000..0ada24c
--- /dev/null
+++ b/projet-code/scenes_inf443/base/src/settings.cpp
@@ -0,0 +1,9 @@
+#include "settings.hpp"
+
+int _num_trees = 200;
+int _num_grass = 200;
+float _terrain_length = 250;
+
+int num_trees() { return _num_trees; }
+int num_grass() { return _num_grass; }
+float terrain_length() { return _terrain_length; }
\ No newline at end of file
diff --git a/projet-code/scenes_inf443/base/src/settings.hpp b/projet-code/scenes_inf443/base/src/settings.hpp
new file mode 100644
index 0000000..1a054d7
--- /dev/null
+++ b/projet-code/scenes_inf443/base/src/settings.hpp
@@ -0,0 +1,9 @@
+#pragma once
+
+#include "cgp/cgp.hpp"
+
+using namespace cgp;
+
+int num_trees();
+int num_grass();
+float terrain_length();
\ No newline at end of file
-- 
GitLab