Player's position is reset when close to ghosts

This commit is contained in:
five-hundred-eleven
2025-08-03 11:15:54 -04:00
parent 4aee63a4d3
commit faf3f239d8
12 changed files with 268 additions and 20 deletions

20
config.h Normal file
View File

@@ -0,0 +1,20 @@
#ifndef CONFIG_H
#define CONFIG_H
#include <string>
#include <map>
class Config {
public:
static bool loadFromFile(const std::string& filename);
static float getFloat(const std::string& key, float defaultValue);
static int getInt(const std::string& key, int defaultValue);
static std::string getString(const std::string& key, const std::string& defaultValue);
private:
static std::map<std::string, std::string> values;
static std::string trim(const std::string& str);
static bool parseJsonValue(const std::string& line, std::string& key, std::string& value);
};
#endif