about summary refs log tree commit diff stats
path: root/proto/data.proto
diff options
context:
space:
mode:
Diffstat (limited to 'proto/data.proto')
-rw-r--r--proto/data.proto95
1 files changed, 89 insertions, 6 deletions
diff --git a/proto/data.proto b/proto/data.proto index d3933c4..e9cc7d7 100644 --- a/proto/data.proto +++ b/proto/data.proto
@@ -27,6 +27,36 @@ 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
35enum 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;
53}
54
55enum MapType {
56 NORMAL_MAP = 0;
57 ICARUS = 1;
58 GIFT_MAP = 2;
59 DEMO = 3;
30} 60}
31 61
32enum AxisDirection { 62enum AxisDirection {
@@ -64,6 +94,18 @@ enum PuzzleSymbol {
64 QUESTION = 19; 94 QUESTION = 19;
65} 95}
66 96
97message Vec3d {
98 optional double x = 1;
99 optional double y = 2;
100 optional double z = 3;
101}
102
103message VersionNumber {
104 optional uint64 major = 1;
105 optional uint64 minor = 2;
106 optional uint64 patch = 3;
107}
108
67message ProxyIdentifier { 109message ProxyIdentifier {
68 optional uint64 panel = 1; 110 optional uint64 panel = 1;
69 optional string answer = 2; 111 optional string answer = 2;
@@ -84,6 +126,11 @@ message Connection {
84 uint64 painting = 5; 126 uint64 painting = 5;
85 ProxyIdentifier panel = 6; 127 ProxyIdentifier panel = 6;
86 } 128 }
129
130 optional bool roof_access = 7;
131 optional bool purple_ending = 8;
132 optional bool cyan_ending = 9;
133 optional bool vanilla_only = 10;
87} 134}
88 135
89message Door { 136message Door {
@@ -100,12 +147,18 @@ message Door {
100 optional uint64 complete_at = 12; 147 optional uint64 complete_at = 12;
101 148
102 optional string control_center_color = 6; 149 optional string control_center_color = 6;
103 repeated string switches = 7;
104 repeated KeyholderAnswer keyholders = 13; 150 repeated KeyholderAnswer keyholders = 13;
105 repeated uint64 rooms = 14; 151 repeated uint64 rooms = 14;
106 repeated uint64 doors = 15; 152 repeated uint64 doors = 15;
153 optional bool white_ending = 16;
154 optional bool double_letters = 18;
155 repeated string senders = 19;
107 156
108 optional DoorType type = 8; 157 optional DoorType type = 8;
158 optional bool latch = 20;
159 optional bool legacy_location = 21;
160
161 optional string location_name = 17;
109} 162}
110 163
111message PanelData { 164message PanelData {
@@ -123,9 +176,11 @@ message PanelData {
123 176
124 optional uint64 required_door = 9; 177 optional uint64 required_door = 9;
125 optional uint64 required_room = 11; 178 optional uint64 required_room = 11;
179
180 optional string display_name = 12;
126} 181}
127 182
128message Painting { 183message PaintingData {
129 optional uint64 id = 1; 184 optional uint64 id = 1;
130 optional uint64 room_id = 2; 185 optional uint64 room_id = 2;
131 optional string name = 9; 186 optional string name = 9;
@@ -144,22 +199,28 @@ message Painting {
144 199
145message Port { 200message Port {
146 optional uint64 id = 1; 201 optional uint64 id = 1;
202 optional uint64 ap_id = 11;
147 optional uint64 room_id = 2; 203 optional uint64 room_id = 2;
148 optional string name = 3; 204 optional string name = 3;
149 205
206 optional string display_name = 10;
150 optional string path = 4; 207 optional string path = 4;
151 optional string orientation = 5; 208 optional Vec3d destination = 5;
209 optional double rotation = 8;
152 optional AxisDirection gravity = 7; 210 optional AxisDirection gravity = 7;
211 optional bool no_shuffle = 9;
153 212
154 optional uint64 required_door = 6; 213 optional uint64 required_door = 6;
155} 214}
156 215
157message Keyholder { 216message KeyholderData {
158 optional uint64 id = 1; 217 optional uint64 id = 1;
218 optional uint64 ap_id = 6;
159 optional uint64 room_id = 2; 219 optional uint64 room_id = 2;
160 220
161 optional string name = 3; 221 optional string name = 3;
162 optional string path = 4; 222 optional string path = 4;
223 optional string key = 5;
163} 224}
164 225
165message Letter { 226message Letter {
@@ -197,6 +258,7 @@ message Room {
197 optional uint64 map_id = 8; 258 optional uint64 map_id = 8;
198 optional string name = 2; 259 optional string name = 2;
199 optional string display_name = 3; 260 optional string display_name = 3;
261 optional string panel_display_name = 13;
200 262
201 repeated uint64 panels = 4; 263 repeated uint64 panels = 4;
202 repeated uint64 paintings = 5; 264 repeated uint64 paintings = 5;
@@ -212,19 +274,40 @@ message Map {
212 optional uint64 id = 1; 274 optional uint64 id = 1;
213 optional string name = 2; 275 optional string name = 2;
214 optional string display_name = 3; 276 optional string display_name = 3;
277 optional uint64 worldport_entrance = 4;
278 optional MapType type = 5;
279}
280
281message Progressive {
282 optional uint64 id = 1;
283 optional string name = 2;
284 optional uint64 ap_id = 3;
285 repeated uint64 doors = 4;
286}
287
288message DoorGroup {
289 optional uint64 id = 1;
290 optional string name = 2;
291 optional uint64 ap_id = 3;
292 optional DoorGroupType type = 4;
293 repeated uint64 doors = 5;
215} 294}
216 295
217message AllObjects { 296message AllObjects {
297 optional VersionNumber version = 15;
298
218 repeated Map maps = 7; 299 repeated Map maps = 7;
219 repeated Room rooms = 1; 300 repeated Room rooms = 1;
220 repeated Door doors = 2; 301 repeated Door doors = 2;
221 repeated PanelData panels = 3; 302 repeated PanelData panels = 3;
222 repeated Painting paintings = 4; 303 repeated PaintingData paintings = 4;
223 repeated Port ports = 5; 304 repeated Port ports = 5;
224 repeated Keyholder keyholders = 11; 305 repeated KeyholderData keyholders = 11;
225 repeated Letter letters = 9; 306 repeated Letter letters = 9;
226 repeated Mastery masteries = 10; 307 repeated Mastery masteries = 10;
227 repeated Ending endings = 12; 308 repeated Ending endings = 12;
228 repeated Connection connections = 6; 309 repeated Connection connections = 6;
310 repeated Progressive progressives = 13;
311 repeated DoorGroup door_groups = 14;
229 map<string, uint64> special_ids = 8; 312 map<string, uint64> special_ids = 8;
230} 313}