diff options
Diffstat (limited to 'src/game_data.h')
| -rw-r--r-- | src/game_data.h | 11 |
1 files changed, 10 insertions, 1 deletions
| diff --git a/src/game_data.h b/src/game_data.h index 8a38264..2c18588 100644 --- a/src/game_data.h +++ b/src/game_data.h | |||
| @@ -23,6 +23,14 @@ constexpr int kLOCATION_NORMAL = 1; | |||
| 23 | constexpr int kLOCATION_REDUCED = 2; | 23 | constexpr int kLOCATION_REDUCED = 2; |
| 24 | constexpr int kLOCATION_INSANITY = 4; | 24 | constexpr int kLOCATION_INSANITY = 4; |
| 25 | 25 | ||
| 26 | enum class EntranceType { | ||
| 27 | kNormal, | ||
| 28 | kPainting, | ||
| 29 | kSunwarp, | ||
| 30 | kWarp, | ||
| 31 | kPilgrimage, | ||
| 32 | }; | ||
| 33 | |||
| 26 | struct Panel { | 34 | struct Panel { |
| 27 | int id; | 35 | int id; |
| 28 | int room; | 36 | int room; |
| @@ -66,7 +74,7 @@ struct Door { | |||
| 66 | struct Exit { | 74 | struct Exit { |
| 67 | int destination_room; | 75 | int destination_room; |
| 68 | std::optional<int> door; | 76 | std::optional<int> door; |
| 69 | bool painting = false; | 77 | EntranceType type = EntranceType::kNormal; |
| 70 | }; | 78 | }; |
| 71 | 79 | ||
| 72 | struct PaintingExit { | 80 | struct PaintingExit { |
| @@ -107,6 +115,7 @@ int GD_GetRoomByName(const std::string& name); | |||
| 107 | const Room& GD_GetRoom(int room_id); | 115 | const Room& GD_GetRoom(int room_id); |
| 108 | const std::vector<Door>& GD_GetDoors(); | 116 | const std::vector<Door>& GD_GetDoors(); |
| 109 | const Door& GD_GetDoor(int door_id); | 117 | const Door& GD_GetDoor(int door_id); |
| 118 | int GD_GetDoorByName(const std::string& name); | ||
| 110 | const Panel& GD_GetPanel(int panel_id); | 119 | const Panel& GD_GetPanel(int panel_id); |
| 111 | int GD_GetRoomForPainting(const std::string& painting_id); | 120 | int GD_GetRoomForPainting(const std::string& painting_id); |
| 112 | const std::vector<int>& GD_GetAchievementPanels(); | 121 | const std::vector<int>& GD_GetAchievementPanels(); |
