Tramway SDK
settings.h
Go to the documentation of this file.
1// TRAMWAY DRIFT AND DUNGEON EXPLORATION SIMULATOR 2022
2// All rights reserved.
3
4#ifndef TRAM_SDK_FRAMEWORK_SETTINGS_H
5#define TRAM_SDK_FRAMEWORK_SETTINGS_H
6
7#include <framework/value.h>
8
9namespace tram::Settings {
10
11void Register(ValuePtr ptr, name_t name);
12void Register(Value value, name_t name);
13
14Value Get(name_t name);
15void Set(name_t name, Value value);
16
17void Parse(const char** argv, int argc);
18
19void Save(const char* file);
20void Load(const char* file);
21
22}
23
24#endif // TRAM_SDK_FRAMEWORK_SETTINGS_H
Definition: settings.cpp:5
void Parse(const char **argv, int argc)
Definition: settings.cpp:28
Value Get(name_t name)
Definition: settings.cpp:19
void Set(name_t name, Value value)
Definition: settings.cpp:23
void Load(const char *file)
Definition: settings.cpp:77
void Save(const char *file)
Definition: settings.cpp:73
void Register(ValuePtr ptr, name_t name)
Definition: settings.cpp:9
UID name_t
Definition: uid.h:40