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.proto83
1 files changed, 77 insertions, 6 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
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;
30} 53}
31 54
32enum AxisDirection { 55enum AxisDirection {
@@ -64,6 +87,18 @@ enum PuzzleSymbol {
64 QUESTION = 19; 87 QUESTION = 19;
65} 88}
66 89
90message Vec3d {
91 optional double x = 1;
92 optional double y = 2;
93 optional double z = 3;
94}
95
96message VersionNumber {
97 optional uint64 major = 1;
98 optional uint64 minor = 2;
99 optional uint64 patch = 3;
100}
101
67message ProxyIdentifier { 102message 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
89message Door { 129message 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
111message PanelData { 155message 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
128message Painting { 174message 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
157message Keyholder { 206message 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
165message Letter { 216message 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
269message Progressive {
270 optional uint64 id = 1;
271 optional string name = 2;
272 optional uint64 ap_id = 3;
273 repeated uint64 doors = 4;
274}
275
276message 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
217message AllObjects { 284message 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}