feat: add config
This commit is contained in:
@@ -9,6 +9,13 @@
|
||||
|
||||
#include <nlohmann/json_fwd.hpp>
|
||||
|
||||
struct SpooferConfig
|
||||
{
|
||||
bool spoofCharacterOwnership = false;
|
||||
bool spoofInventory = false;
|
||||
bool spoofCustomization = false;
|
||||
};
|
||||
|
||||
class Spoofer
|
||||
{
|
||||
public:
|
||||
@@ -17,6 +24,7 @@ class Spoofer
|
||||
private:
|
||||
void registerListeners(Proxy* proxy);
|
||||
void loadData();
|
||||
void loadConfig();
|
||||
|
||||
bool parseCatalog(std::string data);
|
||||
bool parseStackable(std::string data, std::unordered_set<std::string>& camperSet,
|
||||
@@ -37,6 +45,8 @@ class Spoofer
|
||||
void serverResponseHandler(const std::string& url, std::string& body, std::string& respHeaders);
|
||||
void clientRequestHandler(std::string& url, const std::string& body, std::string& reqHeaders);
|
||||
|
||||
SpooferConfig _config;
|
||||
|
||||
std::unordered_set<std::string> _camperItemIds;
|
||||
std::unordered_set<std::string> _slasherPowerIds;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user