diff options
Diffstat (limited to 'proto')
| -rw-r--r-- | proto/data.proto | 54 | ||||
| -rw-r--r-- | proto/human.proto | 55 |
2 files changed, 107 insertions, 2 deletions
| diff --git a/proto/data.proto b/proto/data.proto index 93f2227..7a1918a 100644 --- a/proto/data.proto +++ b/proto/data.proto | |||
| @@ -27,6 +27,29 @@ enum DoorType { | |||
| 27 | 27 | ||
| 28 | // This door is an item if gravestone shuffle is enabled, and is a location as long as panelsanity is not on. | 28 | // This door is an item if gravestone shuffle is enabled, and is a location as long as panelsanity is not on. |
| 29 | GRAVESTONE = 6; | 29 | GRAVESTONE = 6; |
| 30 | |||
| 31 | // This door is never a location, and is an item as long as gallery painting shuffle is on. | ||
| 32 | GALLERY_PAINTING = 7; | ||
| 33 | } | ||
| 34 | |||
| 35 | enum DoorGroupType { | ||
| 36 | DOOR_GROUP_TYPE_UNKNOWN = 0; | ||
| 37 | |||
| 38 | // These doors border a worldport. They should be grouped when connections are | ||
| 39 | // not shuffled. | ||
| 40 | CONNECTOR = 1; | ||
| 41 | |||
| 42 | // Similar to CONNECTOR, but these doors are also ordinarily opened by solving | ||
| 43 | // the COLOR panel in the Control Center. These should be grouped when | ||
| 44 | // connections are not shuffled, but are not items at all when control center | ||
| 45 | // colors are not shuffled. | ||
| 46 | COLOR_CONNECTOR = 2; | ||
| 47 | |||
| 48 | // Groups with this type become an item if cyan door behavior is set to item. | ||
| 49 | CYAN_DOORS = 3; | ||
| 50 | |||
| 51 | // Groups with this type always become an item if door shuffle is on. | ||
| 52 | SHUFFLE_GROUP = 4; | ||
| 30 | } | 53 | } |
| 31 | 54 | ||
| 32 | enum AxisDirection { | 55 | enum AxisDirection { |
| @@ -84,6 +107,8 @@ message Connection { | |||
| 84 | uint64 painting = 5; | 107 | uint64 painting = 5; |
| 85 | ProxyIdentifier panel = 6; | 108 | ProxyIdentifier panel = 6; |
| 86 | } | 109 | } |
| 110 | |||
| 111 | optional bool roof_access = 7; | ||
| 87 | } | 112 | } |
| 88 | 113 | ||
| 89 | message Door { | 114 | message Door { |
| @@ -100,13 +125,16 @@ message Door { | |||
| 100 | optional uint64 complete_at = 12; | 125 | optional uint64 complete_at = 12; |
| 101 | 126 | ||
| 102 | optional string control_center_color = 6; | 127 | optional string control_center_color = 6; |
| 103 | repeated string switches = 7; | ||
| 104 | repeated KeyholderAnswer keyholders = 13; | 128 | repeated KeyholderAnswer keyholders = 13; |
| 105 | repeated uint64 rooms = 14; | 129 | repeated uint64 rooms = 14; |
| 106 | repeated uint64 doors = 15; | 130 | repeated uint64 doors = 15; |
| 107 | repeated uint64 endings = 16; | 131 | repeated uint64 endings = 16; |
| 132 | optional bool double_letters = 18; | ||
| 133 | repeated string senders = 19; | ||
| 108 | 134 | ||
| 109 | optional DoorType type = 8; | 135 | optional DoorType type = 8; |
| 136 | |||
| 137 | optional string location_name = 17; | ||
| 110 | } | 138 | } |
| 111 | 139 | ||
| 112 | message PanelData { | 140 | message PanelData { |
| @@ -124,6 +152,8 @@ message PanelData { | |||
| 124 | 152 | ||
| 125 | optional uint64 required_door = 9; | 153 | optional uint64 required_door = 9; |
| 126 | optional uint64 required_room = 11; | 154 | optional uint64 required_room = 11; |
| 155 | |||
| 156 | optional string display_name = 12; | ||
| 127 | } | 157 | } |
| 128 | 158 | ||
| 129 | message PaintingData { | 159 | message PaintingData { |
| @@ -157,10 +187,12 @@ message Port { | |||
| 157 | 187 | ||
| 158 | message KeyholderData { | 188 | message KeyholderData { |
| 159 | optional uint64 id = 1; | 189 | optional uint64 id = 1; |
| 190 | optional uint64 ap_id = 6; | ||
| 160 | optional uint64 room_id = 2; | 191 | optional uint64 room_id = 2; |
| 161 | 192 | ||
| 162 | optional string name = 3; | 193 | optional string name = 3; |
| 163 | optional string path = 4; | 194 | optional string path = 4; |
| 195 | optional string key = 5; | ||
| 164 | } | 196 | } |
| 165 | 197 | ||
| 166 | message Letter { | 198 | message Letter { |
| @@ -198,6 +230,7 @@ message Room { | |||
| 198 | optional uint64 map_id = 8; | 230 | optional uint64 map_id = 8; |
| 199 | optional string name = 2; | 231 | optional string name = 2; |
| 200 | optional string display_name = 3; | 232 | optional string display_name = 3; |
| 233 | optional string panel_display_name = 13; | ||
| 201 | 234 | ||
| 202 | repeated uint64 panels = 4; | 235 | repeated uint64 panels = 4; |
| 203 | repeated uint64 paintings = 5; | 236 | repeated uint64 paintings = 5; |
| @@ -215,7 +248,24 @@ message Map { | |||
| 215 | optional string display_name = 3; | 248 | optional string display_name = 3; |
| 216 | } | 249 | } |
| 217 | 250 | ||
| 251 | message Progressive { | ||
| 252 | optional uint64 id = 1; | ||
| 253 | optional string name = 2; | ||
| 254 | optional uint64 ap_id = 3; | ||
| 255 | repeated uint64 doors = 4; | ||
| 256 | } | ||
| 257 | |||
| 258 | message DoorGroup { | ||
| 259 | optional uint64 id = 1; | ||
| 260 | optional string name = 2; | ||
| 261 | optional uint64 ap_id = 3; | ||
| 262 | optional DoorGroupType type = 4; | ||
| 263 | repeated uint64 doors = 5; | ||
| 264 | } | ||
| 265 | |||
| 218 | message AllObjects { | 266 | message AllObjects { |
| 267 | optional uint64 version = 15; | ||
| 268 | |||
| 219 | repeated Map maps = 7; | 269 | repeated Map maps = 7; |
| 220 | repeated Room rooms = 1; | 270 | repeated Room rooms = 1; |
| 221 | repeated Door doors = 2; | 271 | repeated Door doors = 2; |
| @@ -227,5 +277,7 @@ message AllObjects { | |||
| 227 | repeated Mastery masteries = 10; | 277 | repeated Mastery masteries = 10; |
| 228 | repeated Ending endings = 12; | 278 | repeated Ending endings = 12; |
| 229 | repeated Connection connections = 6; | 279 | repeated Connection connections = 6; |
| 280 | repeated Progressive progressives = 13; | ||
| 281 | repeated DoorGroup door_groups = 14; | ||
| 230 | map<string, uint64> special_ids = 8; | 282 | map<string, uint64> special_ids = 8; |
| 231 | } | 283 | } |
| diff --git a/proto/human.proto b/proto/human.proto index 1a15c59..f9517bd 100644 --- a/proto/human.proto +++ b/proto/human.proto | |||
| @@ -62,6 +62,14 @@ message HumanConnection { | |||
| 62 | 62 | ||
| 63 | optional bool oneway = 3; | 63 | optional bool oneway = 3; |
| 64 | optional DoorIdentifier door = 4; | 64 | optional DoorIdentifier door = 4; |
| 65 | |||
| 66 | // If true, this connection will only be logically allowed if the Daedalus | ||
| 67 | // Roof Access option is enabled. | ||
| 68 | optional bool roof_access = 7; | ||
| 69 | |||
| 70 | // This means that the connection intentionally skips the target object's | ||
| 71 | // required door. | ||
| 72 | optional bool bypass_target_door = 8; | ||
| 65 | } | 73 | } |
| 66 | 74 | ||
| 67 | message HumanConnections { | 75 | message HumanConnections { |
| @@ -82,14 +90,19 @@ message HumanDoor { | |||
| 82 | optional uint64 complete_at = 9; | 90 | optional uint64 complete_at = 9; |
| 83 | 91 | ||
| 84 | optional string control_center_color = 6; | 92 | optional string control_center_color = 6; |
| 85 | repeated string switches = 7; | ||
| 86 | repeated KeyholderIdentifier keyholders = 10; | 93 | repeated KeyholderIdentifier keyholders = 10; |
| 87 | repeated RoomIdentifier rooms = 11; | 94 | repeated RoomIdentifier rooms = 11; |
| 88 | repeated DoorIdentifier doors = 12; | 95 | repeated DoorIdentifier doors = 12; |
| 89 | repeated string endings = 13; | 96 | repeated string endings = 13; |
| 97 | optional bool double_letters = 15; | ||
| 98 | |||
| 99 | // Sender nodes to be added to the list of requirements for triggering the | ||
| 100 | // location. Only for senders that have no logic requirements. | ||
| 101 | repeated string senders = 16; | ||
| 90 | 102 | ||
| 91 | optional DoorType type = 4; | 103 | optional DoorType type = 4; |
| 92 | optional string location_room = 5; | 104 | optional string location_room = 5; |
| 105 | optional string location_name = 14; | ||
| 93 | } | 106 | } |
| 94 | 107 | ||
| 95 | message HumanDoors { | 108 | message HumanDoors { |
| @@ -108,6 +121,8 @@ message HumanPanel { | |||
| 108 | 121 | ||
| 109 | optional DoorIdentifier required_door = 7; | 122 | optional DoorIdentifier required_door = 7; |
| 110 | optional RoomIdentifier required_room = 8; | 123 | optional RoomIdentifier required_room = 8; |
| 124 | |||
| 125 | optional string display_name = 9; | ||
| 111 | } | 126 | } |
| 112 | 127 | ||
| 113 | message HumanPainting { | 128 | message HumanPainting { |
| @@ -138,6 +153,13 @@ message HumanPort { | |||
| 138 | message HumanKeyholder { | 153 | message HumanKeyholder { |
| 139 | optional string name = 1; | 154 | optional string name = 1; |
| 140 | optional string path = 2; | 155 | optional string path = 2; |
| 156 | |||
| 157 | // If this is set, the keyholder will become a location when keyholder shuffle | ||
| 158 | // is enabled. This value specifies the key that is required to clear the | ||
| 159 | // location. It should be the same as the key needed for Green Ending. The | ||
| 160 | // only cases when this shouldn't be set is the two disappearing keyholders in | ||
| 161 | // The Congruent. | ||
| 162 | optional string key = 3; | ||
| 141 | } | 163 | } |
| 142 | 164 | ||
| 143 | message HumanLetter { | 165 | message HumanLetter { |
| @@ -161,6 +183,10 @@ message HumanRoom { | |||
| 161 | optional string name = 1; | 183 | optional string name = 1; |
| 162 | optional string display_name = 2; | 184 | optional string display_name = 2; |
| 163 | 185 | ||
| 186 | // This is used in panelsanity location names and location names for STANDARD | ||
| 187 | // doors generated from panels in the same area. | ||
| 188 | optional string panel_display_name = 10; | ||
| 189 | |||
| 164 | repeated HumanPanel panels = 3; | 190 | repeated HumanPanel panels = 3; |
| 165 | repeated HumanPainting paintings = 4; | 191 | repeated HumanPainting paintings = 4; |
| 166 | repeated HumanLetter letters = 5; | 192 | repeated HumanLetter letters = 5; |
| @@ -175,10 +201,35 @@ message HumanMap { | |||
| 175 | repeated string excluded_nodes = 2; | 201 | repeated string excluded_nodes = 2; |
| 176 | } | 202 | } |
| 177 | 203 | ||
| 204 | message HumanProgressive { | ||
| 205 | optional string name = 1; | ||
| 206 | repeated DoorIdentifier doors = 2; | ||
| 207 | } | ||
| 208 | |||
| 209 | message HumanProgressives { | ||
| 210 | repeated HumanProgressive progressives = 1; | ||
| 211 | } | ||
| 212 | |||
| 213 | message HumanDoorGroup { | ||
| 214 | optional string name = 1; | ||
| 215 | optional DoorGroupType type = 2; | ||
| 216 | repeated DoorIdentifier doors = 3; | ||
| 217 | } | ||
| 218 | |||
| 219 | message HumanDoorGroups { | ||
| 220 | repeated HumanDoorGroup door_groups = 1; | ||
| 221 | } | ||
| 222 | |||
| 223 | message HumanGlobalMetadata { | ||
| 224 | repeated string special_names = 1; | ||
| 225 | optional uint64 version = 2; | ||
| 226 | } | ||
| 227 | |||
| 178 | message IdMappings { | 228 | message IdMappings { |
| 179 | message RoomIds { | 229 | message RoomIds { |
| 180 | map<string, uint64> panels = 1; | 230 | map<string, uint64> panels = 1; |
| 181 | map<string, uint64> masteries = 2; | 231 | map<string, uint64> masteries = 2; |
| 232 | map<string, uint64> keyholders = 3; | ||
| 182 | } | 233 | } |
| 183 | 234 | ||
| 184 | message MapIds { | 235 | message MapIds { |
| @@ -190,4 +241,6 @@ message IdMappings { | |||
| 190 | map<string, uint64> special = 2; | 241 | map<string, uint64> special = 2; |
| 191 | map<string, uint64> letters = 3; | 242 | map<string, uint64> letters = 3; |
| 192 | map<string, uint64> endings = 4; | 243 | map<string, uint64> endings = 4; |
| 244 | map<string, uint64> progressives = 5; | ||
| 245 | map<string, uint64> door_groups = 6; | ||
| 193 | } | 246 | } |
