-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathClassDB.cpp
More file actions
53 lines (50 loc) · 2.07 KB
/
Copy pathClassDB.cpp
File metadata and controls
53 lines (50 loc) · 2.07 KB
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
// ClassDB.cpp – job-ID → { asset key, display text } lookup
#include "ClassDB.h"
#include <unordered_map>
// convenience alias
using Entry = std::pair<const char*, const char*>; // {asset, display}
static const std::unordered_map<int, Entry> g_Table = {
{ 1, {"schoolgirl", "Schoolgirl"} },
{ 2, {"fighter", "Fighter"} },
{ 3, {"librarian", "Librarian"} },
{ 4, {"shaman", "Shaman"} },
{ 5, {"archeologist", "Archeologist"} },
{ 6, {"engineer", "Engineer"} },
{ 7, {"model", "Model"} },
{ 8, {"teacher", "Teacher"} },
{ 9, {"boxer", "Boxer"} },
{ 10, {"warrior", "Warrior"} },
{ 11, {"bard", "Bard"} },
{ 12, {"magician", "Magician"} },
{ 13, {"explorer", "Explorer"} },
{ 14, {"inventor", "Inventor"} },
{ 15, {"entertainer", "Entertainer"} },
{ 16, {"card_master", "Card Master"} },
{ 17, {"champion", "Champion"} },
{ 18, {"duelist", "Duelist"} },
{ 19, {"mercenary", "Mercenary"} },
{ 20, {"gladiator", "Gladiator"} },
{ 21, {"soul_master", "Soul Master"} },
{ 22, {"witch", "Witch"} },
{ 23, {"wizard", "Wizard"} },
{ 24, {"darklord", "Dark Lord"} },
{ 25, {"priest", "Priest"} },
{ 26, {"thief_master", "Thief Master"} },
{ 27, {"hunter_lord", "Hunter Lord"} },
{ 28, {"cyber_hunter", "Cyber Hunter"} },
{ 29, {"scientist", "Scientist"} },
{ 30, {"primadonna", "Primadonna"} },
{ 31, {"diva", "Diva"} },
{ 32, {"duke", "Duke"} },
{ 33, {"gambler", "Gambler"} }
};
bool GetJobInfo(int id,
std::string& asset,
std::string& display)
{
auto it = g_Table.find(id);
if (it == g_Table.end()) return false;
asset = it->second.first;
display = it->second.second;
return true;
}