mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 04:51:49 +00:00
'dynamic' namespace refactor + sensitivity is a NumberSetting now
This commit is contained in:
parent
398347bd81
commit
48982e3478
14 changed files with 168 additions and 140 deletions
|
|
@ -2,14 +2,24 @@
|
|||
#define FILES_SETTINGS_IO_H_
|
||||
|
||||
#include <string>
|
||||
#include <unordered_map>
|
||||
#include "../settings.h"
|
||||
#include "../data/dynamic.h"
|
||||
|
||||
namespace toml {
|
||||
class Wrapper;
|
||||
}
|
||||
|
||||
class SettingsHandler {
|
||||
std::unordered_map<std::string, Setting*> map;
|
||||
public:
|
||||
SettingsHandler(EngineSettings& settings);
|
||||
|
||||
dynamic::Value getValue(std::string name) const;
|
||||
};
|
||||
|
||||
extern std::string write_controls();
|
||||
extern toml::Wrapper* create_wrapper(EngineSettings& settings);
|
||||
extern void load_controls(std::string filename, std::string source);
|
||||
|
||||
#endif // FILES_SETTINGS_IO_H_
|
||||
#endif // FILES_SETTINGS_IO_H_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue