diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-29 23:30:57 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-29 23:30:57 +0100 |
commit | 5c34847218e8d754447f5cf71ed595bbb412eee7 (patch) | |
tree | 2872948e6d2f566dd66cb1a9b2a5d9900db4c44f /frontend/GameData.cpp | |
parent | a04cb74fee079e3ee43ae5fae32fc2674409822c (diff) |
more WIP
Diffstat (limited to 'frontend/GameData.cpp')
-rw-r--r-- | frontend/GameData.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/frontend/GameData.cpp b/frontend/GameData.cpp new file mode 100644 index 0000000..ad22aa0 --- /dev/null +++ b/frontend/GameData.cpp @@ -0,0 +1,15 @@ +#include <memory> + +#include "GameData.h" + +using namespace std; + +GameData & GameData::get_instance() { + static GameData instance; + return instance; +} + +GameData::GameData() { + this->db = make_unique<DB>("kerkersendraken.db"); +} + |