forked from elonafoobar/elonafoobar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.hpp
102 lines (85 loc) · 1.99 KB
/
config.hpp
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#pragma once
#include <string>
#include "filesystem.hpp"
#include "lib/noncopyable.hpp"
#include "snail/window.hpp"
namespace elona
{
class config : public lib::noncopyable
{
public:
static config& instance();
int alert;
int alwayscenter;
int animewait;
int attackanime;
int attackwait;
int autonumlock;
int autosave;
int autoturn;
int damage_popup;
std::string display_mode;
int env;
int extraclass;
int extrahelp;
int extrarace;
std::string font1;
std::string font2;
int fullscreen;
int heart;
int hideautoidentify;
int hideshopresult;
int hp_bar;
int ignoredislike;
int joypad;
int keywait;
int language;
int leash_icon;
int msgaddtime;
int msgtrans;
int music;
int net;
int netchat;
int netwish;
int noadebug;
int objectshadow;
int restock_interval;
int runscroll;
int runwait;
int scroll;
int scrsync;
int serverlist;
int shadow;
int skiprandevents;
int sound;
int startrun;
std::string startup_script;
int story;
int wait1;
int walkwait;
int windowanime;
int wizard;
int xkey;
int zkey;
int use_autopick;
int use_autopick_in_home;
int use_autopick_in_dungeon;
int use_autopick_in_shop;
int use_autopick_in_ranch;
int use_autopick_in_crop;
int use_autopick_in_storage_house;
int use_autopick_in_shelter;
int use_autopick_in_town;
int use_autopick_in_conquered_nefia;
int use_autopick_in_conquered_quest_map;
bool is_test = false; // testing use only
private:
config() = default;
};
void load_config2(const fs::path& json_file);
void load_config(const fs::path& json_file);
void set_config(const std::string& key, int value);
void set_config(const std::string& key, const std::string& value);
void set_config(const std::string& key, const std::string& value1, int value2);
snail::window::fullscreen_mode_t config_get_fullscreen_mode();
} // namespace elona