diff options
Diffstat (limited to 'proto/data.proto')
-rw-r--r-- | proto/data.proto | 82 |
1 files changed, 76 insertions, 6 deletions
diff --git a/proto/data.proto b/proto/data.proto index 211a7ac..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,13 +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; |
107 | repeated uint64 endings = 16; | 146 | repeated uint64 endings = 16; |
147 | optional bool double_letters = 18; | ||
148 | repeated string senders = 19; | ||
108 | 149 | ||
109 | optional DoorType type = 8; | 150 | optional DoorType type = 8; |
151 | |||
152 | optional string location_name = 17; | ||
110 | } | 153 | } |
111 | 154 | ||
112 | message PanelData { | 155 | message PanelData { |
@@ -124,9 +167,11 @@ message PanelData { | |||
124 | 167 | ||
125 | optional uint64 required_door = 9; | 168 | optional uint64 required_door = 9; |
126 | optional uint64 required_room = 11; | 169 | optional uint64 required_room = 11; |
170 | |||
171 | optional string display_name = 12; | ||
127 | } | 172 | } |
128 | 173 | ||
129 | message Painting { | 174 | message PaintingData { |
130 | optional uint64 id = 1; | 175 | optional uint64 id = 1; |
131 | optional uint64 room_id = 2; | 176 | optional uint64 room_id = 2; |
132 | optional string name = 9; | 177 | optional string name = 9; |
@@ -148,19 +193,24 @@ message Port { | |||
148 | optional uint64 room_id = 2; | 193 | optional uint64 room_id = 2; |
149 | optional string name = 3; | 194 | optional string name = 3; |
150 | 195 | ||
196 | optional string display_name = 10; | ||
151 | optional string path = 4; | 197 | optional string path = 4; |
152 | optional string orientation = 5; | 198 | optional Vec3d destination = 5; |
199 | optional double rotation = 8; | ||
153 | optional AxisDirection gravity = 7; | 200 | optional AxisDirection gravity = 7; |
201 | optional bool no_shuffle = 9; | ||
154 | 202 | ||
155 | optional uint64 required_door = 6; | 203 | optional uint64 required_door = 6; |
156 | } | 204 | } |
157 | 205 | ||
158 | message Keyholder { | 206 | message KeyholderData { |
159 | optional uint64 id = 1; | 207 | optional uint64 id = 1; |
208 | optional uint64 ap_id = 6; | ||
160 | optional uint64 room_id = 2; | 209 | optional uint64 room_id = 2; |
161 | 210 | ||
162 | optional string name = 3; | 211 | optional string name = 3; |
163 | optional string path = 4; | 212 | optional string path = 4; |
213 | optional string key = 5; | ||
164 | } | 214 | } |
165 | 215 | ||
166 | message Letter { | 216 | message Letter { |
@@ -198,6 +248,7 @@ message Room { | |||
198 | optional uint64 map_id = 8; | 248 | optional uint64 map_id = 8; |
199 | optional string name = 2; | 249 | optional string name = 2; |
200 | optional string display_name = 3; | 250 | optional string display_name = 3; |
251 | optional string panel_display_name = 13; | ||
201 | 252 | ||
202 | repeated uint64 panels = 4; | 253 | repeated uint64 panels = 4; |
203 | repeated uint64 paintings = 5; | 254 | repeated uint64 paintings = 5; |
@@ -215,17 +266,36 @@ message Map { | |||
215 | optional string display_name = 3; | 266 | optional string display_name = 3; |
216 | } | 267 | } |
217 | 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 | |||
218 | message AllObjects { | 284 | message AllObjects { |
285 | optional VersionNumber version = 15; | ||
286 | |||
219 | repeated Map maps = 7; | 287 | repeated Map maps = 7; |
220 | repeated Room rooms = 1; | 288 | repeated Room rooms = 1; |
221 | repeated Door doors = 2; | 289 | repeated Door doors = 2; |
222 | repeated PanelData panels = 3; | 290 | repeated PanelData panels = 3; |
223 | repeated Painting paintings = 4; | 291 | repeated PaintingData paintings = 4; |
224 | repeated Port ports = 5; | 292 | repeated Port ports = 5; |
225 | repeated Keyholder keyholders = 11; | 293 | repeated KeyholderData keyholders = 11; |
226 | repeated Letter letters = 9; | 294 | repeated Letter letters = 9; |
227 | repeated Mastery masteries = 10; | 295 | repeated Mastery masteries = 10; |
228 | repeated Ending endings = 12; | 296 | repeated Ending endings = 12; |
229 | repeated Connection connections = 6; | 297 | repeated Connection connections = 6; |
298 | repeated Progressive progressives = 13; | ||
299 | repeated DoorGroup door_groups = 14; | ||
230 | map<string, uint64> special_ids = 8; | 300 | map<string, uint64> special_ids = 8; |
231 | } | 301 | } |