-
Notifications
You must be signed in to change notification settings - Fork 3
/
RegionUtils.hpp
76 lines (69 loc) · 1 KB
/
RegionUtils.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
#pragma once
#include <map>
#include <memory>
#include "game/region.hpp"
#include "game/game.hpp"
#include "game/world.hpp"
#include "game/debug_menu.hpp"
struct MenuRegionStrip
{
const char* name = "";
size_t name_length = 0;
};
static MenuRegionStrip s_RegionStrips[] =
{
{"A"},
{"B"},
{"C"},
{"D"},
{"DBG"},
{"E"},
{"F"},
{"G"},
{"H"},
{"HA"},
{"J"},
{"K"},
{"L"},
{"M"},
{"MA1"},
{"MA2"},
{"MA4"},
{"MA5"},
{"MB2"},
{"MB3"},
{"MC2"},
{"MC3"},
{"MC5"},
{"MD1"},
{"MD2"},
{"ME3"},
{"ME4"},
{"MH1"},
{"N"},
{"P"},
{"Q"},
{"R"},
{"SEW_A"},
{"SEW_B"},
{"SEW_C"},
{"SEW_D"},
{"SEW_E"},
{"SEW_F"},
{"SEW_G"},
{"SUB_A"},
{"SUB_B"},
{"SUB_C"},
{"SUB_D"},
{"SUB_E"},
{"SUB_F"}
};
struct MenuRegionInfo
{
std::shared_ptr<debug_menu_entry> region_entry;
std::shared_ptr<debug_menu_entry> region_entry_parent;
};
extern std::map<region*, MenuRegionInfo> s_MenuRegions;
region* GetRegionByName(const char* s);
void UnlockAllUndergroundInteriors();
void LoadInterior(region* target);