about summary refs log tree commit diff stats
path: root/src/game_data.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/game_data.h')
-rw-r--r--src/game_data.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/game_data.h b/src/game_data.h index b787e6f..1f6d247 100644 --- a/src/game_data.h +++ b/src/game_data.h
@@ -43,6 +43,7 @@ struct Panel {
43 int id; 43 int id;
44 int room; 44 int room;
45 std::string name; 45 std::string name;
46 std::string nodepath;
46 std::vector<LingoColor> colors; 47 std::vector<LingoColor> colors;
47 std::vector<int> required_rooms; 48 std::vector<int> required_rooms;
48 std::vector<int> required_doors; 49 std::vector<int> required_doors;
@@ -83,6 +84,7 @@ struct Door {
83}; 84};
84 85
85struct Exit { 86struct Exit {
87 int source_room;
86 int destination_room; 88 int destination_room;
87 std::optional<int> door; 89 std::optional<int> door;
88 EntranceType type = EntranceType::kNormal; 90 EntranceType type = EntranceType::kNormal;
@@ -112,6 +114,7 @@ struct Location {
112 std::vector<int> panels; 114 std::vector<int> panels;
113 int classification = 0; 115 int classification = 0;
114 bool hunt = false; 116 bool hunt = false;
117 std::optional<int> single_panel;
115}; 118};
116 119
117struct MapArea { 120struct MapArea {
@@ -123,6 +126,7 @@ struct MapArea {
123 int map_y; 126 int map_y;
124 int classification = 0; 127 int classification = 0;
125 bool hunt = false; 128 bool hunt = false;
129 bool has_single_panel = false;
126}; 130};
127 131
128enum class SubwaySunwarpType { 132enum class SubwaySunwarpType {
@@ -144,9 +148,13 @@ struct SubwayItem {
144 int y; 148 int y;
145 std::optional<int> door; 149 std::optional<int> door;
146 std::vector<std::string> paintings; 150 std::vector<std::string> paintings;
147 std::vector<std::string> tags; 151 std::vector<std::string> tags; // 2-way teleports
152 std::vector<std::string> entrances; // teleport entrances
153 std::vector<std::string> exits; // teleport exits
148 std::optional<SubwaySunwarp> sunwarp; 154 std::optional<SubwaySunwarp> sunwarp;
149 std::optional<std::string> special; 155 std::optional<std::string> special;
156
157 bool HasWarps() const;
150}; 158};
151 159
152const std::vector<MapArea>& GD_GetMapAreas(); 160const std::vector<MapArea>& GD_GetMapAreas();