Files
DrPerkyLegit 96ac80730a lots of changes
removed stdafx from server namespace
logger is now header only
added class stubs
added accessor classes and minor code in them
added nlohmann_json to includes
protocol switch back to 560 while we wait for next neolegacy release
2026-05-17 17:28:22 -04:00

24 lines
491 B
C++

#pragma once
#include "../../include/nlohmann_json/json.hpp"
class GenericStorage {
public:
GenericStorage(std::string name, std::string path);
~GenericStorage();
void SaveToDisk();
bool inline LoadedFromFile() const { return this->loadedFromFile; }
nlohmann::json& GetData() { return data; }
private:
//do we really need to save the file and the path like this?
std::string name;
std::string path;
std::string filePath;
nlohmann::json data;
bool loadedFromFile = false;
};