From 189574c94576a76c992655ab0ae2c8a7a9cb9e2a Mon Sep 17 00:00:00 2001 From: altalk23 Date: Mon, 6 Jun 2022 19:32:53 +0300 Subject: [PATCH] add contains function to ds --- include/loader/Mod.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/loader/Mod.hpp b/include/loader/Mod.hpp index 54a7a3fb..6e149e80 100644 --- a/include/loader/Mod.hpp +++ b/include/loader/Mod.hpp @@ -160,10 +160,11 @@ namespace geode { DataStore(Mod* m, nlohmann::json& j) : m_mod(m), m_store(j) {} friend class Mod; - public: + public: ~DataStore(); nlohmann::json& operator[](std::string const&); DataStore& operator=(nlohmann::json&); + bool contains(std::string const&); operator nlohmann::json(); };