-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathconfiguration.h
53 lines (41 loc) · 1.04 KB
/
configuration.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef CONFIGURATION_H
#define CONFIGURATION_H
#include <cstdint>
#include <string>
#include <vector>
#include <glibmm/ustring.h>
class Logger;
class Configuration {
public:
// [normal] section
int normal_half_seconds;
int normal_half_time_seconds;
unsigned int normal_timeout_seconds;
unsigned int normal_timeouts;
// [overtime] section
int overtime_break_seconds;
int overtime_half_seconds;
int overtime_half_time_seconds;
unsigned int overtime_timeout_seconds;
unsigned int overtime_timeouts;
// [shootout] section
int shootout_break_seconds;
// [global] section
unsigned int yellow_card_seconds;
bool team_names_required;
bool rcon_enabled_by_default;
// [files] section
std::string save_filename;
std::string log_filename;
// [ip] section
std::string address;
std::string legacy_port;
std::string protobuf_port;
std::string interface;
uint16_t rcon_port;
// [teams] section
std::vector<Glib::ustring> teams;
Configuration(const std::string &filename);
void dump(Logger &logger);
};
#endif