mirror of
https://github.com/DrPerkyLegit/LCEServerTest.git
synced 2026-05-22 03:25:30 +00:00
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
24 lines
491 B
C++
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;
|
|
}; |