the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 21 lines 697 B view raw
1#pragma once 2class File; 3using namespace std; 4 5class Settings 6{ 7// public static Logger logger = Logger.getLogger("Minecraft"); 8// private Properties properties = new Properties(); 9private: 10 unordered_map<wstring,wstring> properties; // 4J - TODO was Properties type, will need to implement something we can serialise/deserialise too 11 //File *file; 12 13public: 14 Settings(File *file); 15 void generateNewProperties(); 16 void saveProperties(); 17 wstring getString(const wstring& key, const wstring& defaultValue); 18 int getInt(const wstring& key, int defaultValue); 19 bool getBoolean(const wstring& key, bool defaultValue); 20 void setBooleanAndSave(const wstring& key, bool value); 21};