diff options
Diffstat (limited to 'proto')
| -rw-r--r-- | proto/data.proto | 83 | ||||
| -rw-r--r-- | proto/human.proto | 76 |
2 files changed, 151 insertions, 8 deletions
| diff --git a/proto/data.proto b/proto/data.proto index d3933c4..d79f47d 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 { |
| @@ -64,6 +87,18 @@ enum PuzzleSymbol { | |||
| 64 | QUESTION = 19; | 87 | QUESTION = 19; |
| 65 | } | 88 | } |
| 66 | 89 | ||
| 90 | message Vec3d { | ||
| 91 | optional double x = 1; | ||
| 92 | optional double y = 2; | ||
| 93 | optional double z = 3; | ||
| 94 | } | ||
| 95 | |||
| 96 | message VersionNumber { | ||
| 97 | optional uint64 major = 1; | ||
| 98 | optional uint64 minor = 2; | ||
| 99 | optional uint64 patch = 3; | ||
| 100 | } | ||
| 101 | |||
| 67 | message ProxyIdentifier { | 102 | message ProxyIdentifier { |
| 68 | optional uint64 panel = 1; | 103 | optional uint64 panel = 1; |
| 69 | optional string answer = 2; | 104 | optional string answer = 2; |
| @@ -84,6 +119,11 @@ message Connection { | |||
| 84 | uint64 painting = 5; | 119 | uint64 painting = 5; |
| 85 | ProxyIdentifier panel = 6; | 120 | ProxyIdentifier panel = 6; |
| 86 | } | 121 | } |
| 122 | |||
| 123 | optional bool roof_access = 7; | ||
| 124 | optional bool purple_ending = 8; | ||
| 125 | optional bool cyan_ending = 9; | ||
| 126 | optional bool vanilla_only = 10; | ||
| 87 | } | 127 | } |
| 88 | 128 | ||
| 89 | message Door { | 129 | message Door { |
| @@ -100,12 +140,16 @@ message Door { | |||
| 100 | optional uint64 complete_at = 12; | 140 | optional uint64 complete_at = 12; |
| 101 | 141 | ||
| 102 | optional string control_center_color = 6; | 142 | optional string control_center_color = 6; |
| 103 | repeated string switches = 7; | ||
| 104 | repeated KeyholderAnswer keyholders = 13; | 143 | repeated KeyholderAnswer keyholders = 13; |
| 105 | repeated uint64 rooms = 14; | 144 | repeated uint64 rooms = 14; |
| 106 | repeated uint64 doors = 15; | 145 | repeated uint64 doors = 15; |
| 146 | repeated uint64 endings = 16; | ||
| 147 | optional bool double_letters = 18; | ||
| 148 | repeated string senders = 19; | ||
| 107 | 149 | ||
| 108 | optional DoorType type = 8; | 150 | optional DoorType type = 8; |
| 151 | |||
| 152 | optional string location_name = 17; | ||
| 109 | } | 153 | } |
| 110 | 154 | ||
| 111 | message PanelData { | 155 | message PanelData { |
| @@ -123,9 +167,11 @@ message PanelData { | |||
| 123 | 167 | ||
| 124 | optional uint64 required_door = 9; | 168 | optional uint64 required_door = 9; |
| 125 | optional uint64 required_room = 11; | 169 | optional uint64 required_room = 11; |
| 170 | |||
| 171 | optional string display_name = 12; | ||
| 126 | } | 172 | } |
| 127 | 173 | ||
| 128 | message Painting { | 174 | message PaintingData { |
| 129 | optional uint64 id = 1; | 175 | optional uint64 id = 1; |
| 130 | optional uint64 room_id = 2; | 176 | optional uint64 room_id = 2; |
| 131 | optional string name = 9; | 177 | optional string name = 9; |
| @@ -147,19 +193,24 @@ message Port { | |||
| 147 | optional uint64 room_id = 2; | 193 | optional uint64 room_id = 2; |
| 148 | optional string name = 3; | 194 | optional string name = 3; |
| 149 | 195 | ||
| 196 | optional string display_name = 10; | ||
| 150 | optional string path = 4; | 197 | optional string path = 4; |
| 151 | optional string orientation = 5; | 198 | optional Vec3d destination = 5; |
| 199 | optional double rotation = 8; | ||
| 152 | optional AxisDirection gravity = 7; | 200 | optional AxisDirection gravity = 7; |
| 201 | optional bool no_shuffle = 9; | ||
| 153 | 202 | ||
| 154 | optional uint64 required_door = 6; | 203 | optional uint64 required_door = 6; |
| 155 | } | 204 | } |
| 156 | 205 | ||
| 157 | message Keyholder { | 206 | message KeyholderData { |
| 158 | optional uint64 id = 1; | 207 | optional uint64 id = 1; |
| 208 | optional uint64 ap_id = 6; | ||
| 159 | optional uint64 room_id = 2; | 209 | optional uint64 room_id = 2; |
| 160 | 210 | ||
| 161 | optional string name = 3; | 211 | optional string name = 3; |
| 162 | optional string path = 4; | 212 | optional string path = 4; |
| 213 | optional string key = 5; | ||
| 163 | } | 214 | } |
| 164 | 215 | ||
| 165 | message Letter { | 216 | message Letter { |
| @@ -197,6 +248,7 @@ message Room { | |||
| 197 | optional uint64 map_id = 8; | 248 | optional uint64 map_id = 8; |
| 198 | optional string name = 2; | 249 | optional string name = 2; |
| 199 | optional string display_name = 3; | 250 | optional string display_name = 3; |
| 251 | optional string panel_display_name = 13; | ||
| 200 | 252 | ||
| 201 | repeated uint64 panels = 4; | 253 | repeated uint64 panels = 4; |
| 202 | repeated uint64 paintings = 5; | 254 | repeated uint64 paintings = 5; |
| @@ -214,17 +266,36 @@ message Map { | |||
| 214 | optional string display_name = 3; | 266 | optional string display_name = 3; |
| 215 | } | 267 | } |
| 216 | 268 | ||
| 269 | message Progressive { | ||
| 270 | optional uint64 id = 1; | ||
| 271 | optional string name = 2; | ||
| 272 | optional uint64 ap_id = 3; | ||
| 273 | repeated uint64 doors = 4; | ||
| 274 | } | ||
| 275 | |||
| 276 | message DoorGroup { | ||
| 277 | optional uint64 id = 1; | ||
| 278 | optional string name = 2; | ||
| 279 | optional uint64 ap_id = 3; | ||
| 280 | optional DoorGroupType type = 4; | ||
| 281 | repeated uint64 doors = 5; | ||
| 282 | } | ||
| 283 | |||
| 217 | message AllObjects { | 284 | message AllObjects { |
| 285 | optional VersionNumber version = 15; | ||
| 286 | |||
| 218 | repeated Map maps = 7; | 287 | repeated Map maps = 7; |
| 219 | repeated Room rooms = 1; | 288 | repeated Room rooms = 1; |
| 220 | repeated Door doors = 2; | 289 | repeated Door doors = 2; |
| 221 | repeated PanelData panels = 3; | 290 | repeated PanelData panels = 3; |
| 222 | repeated Painting paintings = 4; | 291 | repeated PaintingData paintings = 4; |
| 223 | repeated Port ports = 5; | 292 | repeated Port ports = 5; |
| 224 | repeated Keyholder keyholders = 11; | 293 | repeated KeyholderData keyholders = 11; |
| 225 | repeated Letter letters = 9; | 294 | repeated Letter letters = 9; |
| 226 | repeated Mastery masteries = 10; | 295 | repeated Mastery masteries = 10; |
| 227 | repeated Ending endings = 12; | 296 | repeated Ending endings = 12; |
| 228 | repeated Connection connections = 6; | 297 | repeated Connection connections = 6; |
| 298 | repeated Progressive progressives = 13; | ||
| 299 | repeated DoorGroup door_groups = 14; | ||
| 229 | map<string, uint64> special_ids = 8; | 300 | map<string, uint64> special_ids = 8; |
| 230 | } | 301 | } |
| diff --git a/proto/human.proto b/proto/human.proto index e0021c2..8e7767a 100644 --- a/proto/human.proto +++ b/proto/human.proto | |||
| @@ -62,6 +62,25 @@ 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; | ||
| 73 | |||
| 74 | // This means that the connection should additionally require all purple | ||
| 75 | // letters when the Strict Purple Ending option is on. | ||
| 76 | optional bool purple_ending = 9; | ||
| 77 | |||
| 78 | // This means that the connection should additionally require all cyan letters | ||
| 79 | // when the Strict Cyan Ending option is on. | ||
| 80 | optional bool cyan_ending = 10; | ||
| 81 | |||
| 82 | // This means that the connection only exists when doors are not shuffled. | ||
| 83 | optional bool vanilla_only = 11; | ||
| 65 | } | 84 | } |
| 66 | 85 | ||
| 67 | message HumanConnections { | 86 | message HumanConnections { |
| @@ -82,13 +101,19 @@ message HumanDoor { | |||
| 82 | optional uint64 complete_at = 9; | 101 | optional uint64 complete_at = 9; |
| 83 | 102 | ||
| 84 | optional string control_center_color = 6; | 103 | optional string control_center_color = 6; |
| 85 | repeated string switches = 7; | ||
| 86 | repeated KeyholderIdentifier keyholders = 10; | 104 | repeated KeyholderIdentifier keyholders = 10; |
| 87 | repeated RoomIdentifier rooms = 11; | 105 | repeated RoomIdentifier rooms = 11; |
| 88 | repeated DoorIdentifier doors = 12; | 106 | repeated DoorIdentifier doors = 12; |
| 107 | repeated string endings = 13; | ||
| 108 | optional bool double_letters = 15; | ||
| 109 | |||
| 110 | // Sender nodes to be added to the list of requirements for triggering the | ||
| 111 | // location. Only for senders that have no logic requirements. | ||
| 112 | repeated string senders = 16; | ||
| 89 | 113 | ||
| 90 | optional DoorType type = 4; | 114 | optional DoorType type = 4; |
| 91 | optional string location_room = 5; | 115 | optional string location_room = 5; |
| 116 | optional string location_name = 14; | ||
| 92 | } | 117 | } |
| 93 | 118 | ||
| 94 | message HumanDoors { | 119 | message HumanDoors { |
| @@ -107,6 +132,8 @@ message HumanPanel { | |||
| 107 | 132 | ||
| 108 | optional DoorIdentifier required_door = 7; | 133 | optional DoorIdentifier required_door = 7; |
| 109 | optional RoomIdentifier required_room = 8; | 134 | optional RoomIdentifier required_room = 8; |
| 135 | |||
| 136 | optional string display_name = 9; | ||
| 110 | } | 137 | } |
| 111 | 138 | ||
| 112 | message HumanPainting { | 139 | message HumanPainting { |
| @@ -126,9 +153,16 @@ message HumanPainting { | |||
| 126 | 153 | ||
| 127 | message HumanPort { | 154 | message HumanPort { |
| 128 | optional string name = 1; | 155 | optional string name = 1; |
| 156 | optional string display_name = 8; | ||
| 129 | optional string path = 2; | 157 | optional string path = 2; |
| 130 | 158 | ||
| 131 | optional string orientation = 3; | 159 | optional bool no_shuffle = 7; |
| 160 | |||
| 161 | // These specify how the player should be placed when a randomized entrance | ||
| 162 | // sends them to this port. "rotation" is in degrees and is counter-clockwise | ||
| 163 | // from the positive X axis. | ||
| 164 | optional Vec3d destination = 3; | ||
| 165 | optional double rotation = 6; | ||
| 132 | optional AxisDirection gravity = 5 [default = Y_MINUS]; | 166 | optional AxisDirection gravity = 5 [default = Y_MINUS]; |
| 133 | 167 | ||
| 134 | optional DoorIdentifier required_door = 4; | 168 | optional DoorIdentifier required_door = 4; |
| @@ -137,6 +171,13 @@ message HumanPort { | |||
| 137 | message HumanKeyholder { | 171 | message HumanKeyholder { |
| 138 | optional string name = 1; | 172 | optional string name = 1; |
| 139 | optional string path = 2; | 173 | optional string path = 2; |
| 174 | |||
| 175 | // If this is set, the keyholder will become a location when keyholder shuffle | ||
| 176 | // is enabled. This value specifies the key that is required to clear the | ||
| 177 | // location. It should be the same as the key needed for Green Ending. The | ||
| 178 | // only cases when this shouldn't be set is the two disappearing keyholders in | ||
| 179 | // The Congruent. | ||
| 180 | optional string key = 3; | ||
| 140 | } | 181 | } |
| 141 | 182 | ||
| 142 | message HumanLetter { | 183 | message HumanLetter { |
| @@ -160,6 +201,10 @@ message HumanRoom { | |||
| 160 | optional string name = 1; | 201 | optional string name = 1; |
| 161 | optional string display_name = 2; | 202 | optional string display_name = 2; |
| 162 | 203 | ||
| 204 | // This is used in panelsanity location names and location names for STANDARD | ||
| 205 | // doors generated from panels in the same area. | ||
| 206 | optional string panel_display_name = 10; | ||
| 207 | |||
| 163 | repeated HumanPanel panels = 3; | 208 | repeated HumanPanel panels = 3; |
| 164 | repeated HumanPainting paintings = 4; | 209 | repeated HumanPainting paintings = 4; |
| 165 | repeated HumanLetter letters = 5; | 210 | repeated HumanLetter letters = 5; |
| @@ -174,10 +219,35 @@ message HumanMap { | |||
| 174 | repeated string excluded_nodes = 2; | 219 | repeated string excluded_nodes = 2; |
| 175 | } | 220 | } |
| 176 | 221 | ||
| 222 | message HumanProgressive { | ||
| 223 | optional string name = 1; | ||
| 224 | repeated DoorIdentifier doors = 2; | ||
| 225 | } | ||
| 226 | |||
| 227 | message HumanProgressives { | ||
| 228 | repeated HumanProgressive progressives = 1; | ||
| 229 | } | ||
| 230 | |||
| 231 | message HumanDoorGroup { | ||
| 232 | optional string name = 1; | ||
| 233 | optional DoorGroupType type = 2; | ||
| 234 | repeated DoorIdentifier doors = 3; | ||
| 235 | } | ||
| 236 | |||
| 237 | message HumanDoorGroups { | ||
| 238 | repeated HumanDoorGroup door_groups = 1; | ||
| 239 | } | ||
| 240 | |||
| 241 | message HumanGlobalMetadata { | ||
| 242 | repeated string special_names = 1; | ||
| 243 | optional VersionNumber version = 2; | ||
| 244 | } | ||
| 245 | |||
| 177 | message IdMappings { | 246 | message IdMappings { |
| 178 | message RoomIds { | 247 | message RoomIds { |
| 179 | map<string, uint64> panels = 1; | 248 | map<string, uint64> panels = 1; |
| 180 | map<string, uint64> masteries = 2; | 249 | map<string, uint64> masteries = 2; |
| 250 | map<string, uint64> keyholders = 3; | ||
| 181 | } | 251 | } |
| 182 | 252 | ||
| 183 | message MapIds { | 253 | message MapIds { |
| @@ -189,4 +259,6 @@ message IdMappings { | |||
| 189 | map<string, uint64> special = 2; | 259 | map<string, uint64> special = 2; |
| 190 | map<string, uint64> letters = 3; | 260 | map<string, uint64> letters = 3; |
| 191 | map<string, uint64> endings = 4; | 261 | map<string, uint64> endings = 4; |
| 262 | map<string, uint64> progressives = 5; | ||
| 263 | map<string, uint64> door_groups = 6; | ||
| 192 | } | 264 | } |
