diff options
Diffstat (limited to 'src/game_data.h')
| -rw-r--r-- | src/game_data.h | 39 |
1 files changed, 36 insertions, 3 deletions
| diff --git a/src/game_data.h b/src/game_data.h index f3edaa2..a5d5699 100644 --- a/src/game_data.h +++ b/src/game_data.h | |||
| @@ -63,6 +63,7 @@ struct ProgressiveRequirement { | |||
| 63 | }; | 63 | }; |
| 64 | 64 | ||
| 65 | struct Door { | 65 | struct Door { |
| 66 | int id; | ||
| 66 | int room; | 67 | int room; |
| 67 | std::string name; | 68 | std::string name; |
| 68 | std::string location_name; | 69 | std::string location_name; |
| @@ -87,14 +88,16 @@ struct Exit { | |||
| 87 | }; | 88 | }; |
| 88 | 89 | ||
| 89 | struct PaintingExit { | 90 | struct PaintingExit { |
| 90 | std::string id; | 91 | int id; |
| 92 | int room; | ||
| 93 | std::string internal_id; | ||
| 91 | std::optional<int> door; | 94 | std::optional<int> door; |
| 92 | }; | 95 | }; |
| 93 | 96 | ||
| 94 | struct Room { | 97 | struct Room { |
| 95 | std::string name; | 98 | std::string name; |
| 96 | std::vector<Exit> exits; | 99 | std::vector<Exit> exits; |
| 97 | std::vector<PaintingExit> paintings; | 100 | std::vector<int> paintings; |
| 98 | std::vector<int> sunwarps; | 101 | std::vector<int> sunwarps; |
| 99 | std::vector<int> panels; | 102 | std::vector<int> panels; |
| 100 | }; | 103 | }; |
| @@ -113,12 +116,37 @@ struct MapArea { | |||
| 113 | int id; | 116 | int id; |
| 114 | std::string name; | 117 | std::string name; |
| 115 | std::vector<Location> locations; | 118 | std::vector<Location> locations; |
| 119 | std::vector<int> paintings; | ||
| 116 | int map_x; | 120 | int map_x; |
| 117 | int map_y; | 121 | int map_y; |
| 118 | int classification = 0; | 122 | int classification = 0; |
| 119 | bool hunt = false; | 123 | bool hunt = false; |
| 120 | }; | 124 | }; |
| 121 | 125 | ||
| 126 | enum class SubwaySunwarpType { | ||
| 127 | kEnter, | ||
| 128 | kExit, | ||
| 129 | kFinal | ||
| 130 | }; | ||
| 131 | |||
| 132 | struct SubwaySunwarp { | ||
| 133 | int dots; | ||
| 134 | SubwaySunwarpType type; | ||
| 135 | |||
| 136 | bool operator<(const SubwaySunwarp& rhs) const; | ||
| 137 | }; | ||
| 138 | |||
| 139 | struct SubwayItem { | ||
| 140 | int id; | ||
| 141 | int x; | ||
| 142 | int y; | ||
| 143 | std::optional<int> door; | ||
| 144 | std::vector<std::string> paintings; | ||
| 145 | std::vector<std::string> tags; | ||
| 146 | std::optional<SubwaySunwarp> sunwarp; | ||
| 147 | std::optional<std::string> special; | ||
| 148 | }; | ||
| 149 | |||
| 122 | const std::vector<MapArea>& GD_GetMapAreas(); | 150 | const std::vector<MapArea>& GD_GetMapAreas(); |
| 123 | const MapArea& GD_GetMapArea(int id); | 151 | const MapArea& GD_GetMapArea(int id); |
| 124 | int GD_GetRoomByName(const std::string& name); | 152 | int GD_GetRoomByName(const std::string& name); |
| @@ -127,10 +155,15 @@ const std::vector<Door>& GD_GetDoors(); | |||
| 127 | const Door& GD_GetDoor(int door_id); | 155 | const Door& GD_GetDoor(int door_id); |
| 128 | int GD_GetDoorByName(const std::string& name); | 156 | int GD_GetDoorByName(const std::string& name); |
| 129 | const Panel& GD_GetPanel(int panel_id); | 157 | const Panel& GD_GetPanel(int panel_id); |
| 130 | int GD_GetRoomForPainting(const std::string& painting_id); | 158 | const PaintingExit& GD_GetPaintingExit(int painting_id); |
| 159 | int GD_GetPaintingByName(const std::string& name); | ||
| 131 | const std::vector<int>& GD_GetAchievementPanels(); | 160 | const std::vector<int>& GD_GetAchievementPanels(); |
| 132 | int GD_GetItemIdForColor(LingoColor color); | 161 | int GD_GetItemIdForColor(LingoColor color); |
| 133 | const std::vector<int>& GD_GetSunwarpDoors(); | 162 | const std::vector<int>& GD_GetSunwarpDoors(); |
| 134 | int GD_GetRoomForSunwarp(int index); | 163 | int GD_GetRoomForSunwarp(int index); |
| 164 | const std::vector<SubwayItem>& GD_GetSubwayItems(); | ||
| 165 | const SubwayItem& GD_GetSubwayItem(int id); | ||
| 166 | int GD_GetSubwayItemForPainting(const std::string& painting_id); | ||
| 167 | int GD_GetSubwayItemForSunwarp(const SubwaySunwarp& sunwarp); | ||
| 135 | 168 | ||
| 136 | #endif /* end of include guard: GAME_DATA_H_9C42AC51 */ | 169 | #endif /* end of include guard: GAME_DATA_H_9C42AC51 */ |
