forked from xsoma/saphire
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKit_parser.h
50 lines (39 loc) · 927 Bytes
/
Kit_parser.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
#pragma once
#include <vector>
#include <string>
#include <set>
#include <unordered_map>
namespace game_data
{
struct paint_kit
{
int id;
std::string name;
std::string szImagePath = { };
int rarity = 0;
auto operator < (const paint_kit& other) const -> bool
{
return name < other.name;
}
};
extern std::vector<paint_kit> skin_kits;
extern std::vector<paint_kit> glove_kits;
extern std::vector<paint_kit> sticker_kits;
extern auto initialize_kits() -> void;
extern int ParseSkins();
}
struct skinInfo {
int seed = -1;
int paintkit;
int rarity;
std::string tagName;
std::string shortname; // shortname
std::string name; // full skin name
};
class SkinData {
public:
std::unordered_map<std::string, std::set<std::string>> weaponSkins;
std::unordered_map<std::string, skinInfo> skinMap;
std::unordered_map<std::string, std::string> skinNames;
};
inline SkinData g_SkinData;