]> git.localhorst.tv Git - blank.git/blob - src/app/Config.hpp
add TCP based CLI
[blank.git] / src / app / Config.hpp
1 #ifndef BLANK_APP_CONFIG_HPP_
2 #define BLANK_APP_CONFIG_HPP_
3
4 #include <cstdint>
5 #include <iosfwd>
6 #include <string>
7
8
9 namespace blank {
10
11 struct Config {
12
13         struct Audio {
14
15                 bool enabled = true;
16
17         } audio;
18
19         struct Input {
20
21                 bool keyboard = true;
22                 bool mouse = true;
23
24                 float pitch_sensitivity = -0.0025f;
25                 float yaw_sensitivity = -0.001f;
26
27         } input;
28
29         struct Network {
30
31                 std::string host = "localhost";
32                 std::uint16_t port = 12354;
33                 std::uint16_t cmd_port = 0;
34
35         } net;
36
37         struct Player {
38
39                 std::string name = "default";
40
41         } player;
42
43         struct Video {
44
45                 bool dblbuf = true;
46                 bool vsync = true;
47                 int msaa = 1;
48
49                 bool hud = true;
50                 bool world = true;
51                 bool debug = false;
52
53         } video;
54
55         void Load(std::istream &);
56         void Save(std::ostream &);
57
58 };
59
60 }
61
62 #endif