From f01072eb4166fc68f59519ebf84de46e7386abf5 Mon Sep 17 00:00:00 2001 From: Aotrix <9aotrix@protonmail.com> Date: Fri, 27 Mar 2026 18:48:55 +0100 Subject: Generate json card lists with static methods Instead of creating a useless instance of HearthstoneApi class, calls static methods. --- battleNetApi/include/tokenPool.hpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 battleNetApi/include/tokenPool.hpp (limited to 'battleNetApi/include/tokenPool.hpp') diff --git a/battleNetApi/include/tokenPool.hpp b/battleNetApi/include/tokenPool.hpp new file mode 100644 index 0000000..6aa2b15 --- /dev/null +++ b/battleNetApi/include/tokenPool.hpp @@ -0,0 +1,16 @@ +#include +#include + +class TokenPool { + private: + TokenPool() = default; + TokenPool(const TokenPool &) = delete; + TokenPool(TokenPool &&) = delete; + TokenPool &operator=(const TokenPool &) = delete; + TokenPool &operator=(TokenPool &&) = delete; + static std::queue mTokenContainer; + + public: + static void fillTokenSource(const std::string &iJsonPath); + static std::optional unusedToken(); +}; -- cgit v1.2.3