forked from R3nzTheCodeGOD/R3nzSkin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Config.hpp
51 lines (40 loc) · 1.23 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
#pragma once
#include <cstdint>
#include <filesystem>
#include <map>
#include "json/json.hpp"
#include "Utils.hpp"
using json = nlohmann::json;
class Config {
public:
void init() noexcept;
void save() noexcept;
void load() noexcept;
void reset() noexcept;
KeyBind menuKey{ KeyBind(KeyBind::INSERT) };
KeyBind nextSkinKey{ KeyBind(KeyBind::PAGE_UP) };
KeyBind previousSkinKey{ KeyBind(KeyBind::PAGE_DOWN) };
bool rainbowText{ false };
float fontScale{ 1.0f };
bool heroName{ true };
bool quickSkinChange{ false };
// player
std::int32_t current_combo_skin_index{ 0 };
// minion
std::int32_t current_combo_minion_index{ 0 };
std::int32_t current_minion_skin_index{ -1 };
// ward
std::int32_t current_combo_ward_index{ 0 };
std::int32_t current_ward_skin_index{ -1 };
// turrets, don't save them in config
std::int32_t current_combo_order_turret_index{ 0 };
std::int32_t current_combo_chaos_turret_index{ 0 };
// other champions
std::map<std::uint64_t, std::int32_t> current_combo_ally_skin_index;
std::map<std::uint64_t, std::int32_t> current_combo_enemy_skin_index;
// jungle mobs
std::map<std::uint64_t, std::int32_t> current_combo_jungle_mob_skin_index;
private:
std::filesystem::path path;
json config_json{ json() };
};