about summary refs log tree commit diff stats
path: root/proto
diff options
context:
space:
mode:
Diffstat (limited to 'proto')
-rw-r--r--proto/data.proto34
-rw-r--r--proto/human.proto38
2 files changed, 66 insertions, 6 deletions
diff --git a/proto/data.proto b/proto/data.proto index 64e3ddc..e9cc7d7 100644 --- a/proto/data.proto +++ b/proto/data.proto
@@ -52,6 +52,13 @@ enum DoorGroupType {
52 SHUFFLE_GROUP = 4; 52 SHUFFLE_GROUP = 4;
53} 53}
54 54
55enum MapType {
56 NORMAL_MAP = 0;
57 ICARUS = 1;
58 GIFT_MAP = 2;
59 DEMO = 3;
60}
61
55enum AxisDirection { 62enum AxisDirection {
56 AXIS_DIRECTION_UNKNOWN = 0; 63 AXIS_DIRECTION_UNKNOWN = 0;
57 64
@@ -87,6 +94,18 @@ enum PuzzleSymbol {
87 QUESTION = 19; 94 QUESTION = 19;
88} 95}
89 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
90message ProxyIdentifier { 109message ProxyIdentifier {
91 optional uint64 panel = 1; 110 optional uint64 panel = 1;
92 optional string answer = 2; 111 optional string answer = 2;
@@ -111,6 +130,7 @@ message Connection {
111 optional bool roof_access = 7; 130 optional bool roof_access = 7;
112 optional bool purple_ending = 8; 131 optional bool purple_ending = 8;
113 optional bool cyan_ending = 9; 132 optional bool cyan_ending = 9;
133 optional bool vanilla_only = 10;
114} 134}
115 135
116message Door { 136message Door {
@@ -130,11 +150,13 @@ message Door {
130 repeated KeyholderAnswer keyholders = 13; 150 repeated KeyholderAnswer keyholders = 13;
131 repeated uint64 rooms = 14; 151 repeated uint64 rooms = 14;
132 repeated uint64 doors = 15; 152 repeated uint64 doors = 15;
133 repeated uint64 endings = 16; 153 optional bool white_ending = 16;
134 optional bool double_letters = 18; 154 optional bool double_letters = 18;
135 repeated string senders = 19; 155 repeated string senders = 19;
136 156
137 optional DoorType type = 8; 157 optional DoorType type = 8;
158 optional bool latch = 20;
159 optional bool legacy_location = 21;
138 160
139 optional string location_name = 17; 161 optional string location_name = 17;
140} 162}
@@ -177,12 +199,16 @@ message PaintingData {
177 199
178message Port { 200message Port {
179 optional uint64 id = 1; 201 optional uint64 id = 1;
202 optional uint64 ap_id = 11;
180 optional uint64 room_id = 2; 203 optional uint64 room_id = 2;
181 optional string name = 3; 204 optional string name = 3;
182 205
206 optional string display_name = 10;
183 optional string path = 4; 207 optional string path = 4;
184 optional string orientation = 5; 208 optional Vec3d destination = 5;
209 optional double rotation = 8;
185 optional AxisDirection gravity = 7; 210 optional AxisDirection gravity = 7;
211 optional bool no_shuffle = 9;
186 212
187 optional uint64 required_door = 6; 213 optional uint64 required_door = 6;
188} 214}
@@ -248,6 +274,8 @@ message Map {
248 optional uint64 id = 1; 274 optional uint64 id = 1;
249 optional string name = 2; 275 optional string name = 2;
250 optional string display_name = 3; 276 optional string display_name = 3;
277 optional uint64 worldport_entrance = 4;
278 optional MapType type = 5;
251} 279}
252 280
253message Progressive { 281message Progressive {
@@ -266,7 +294,7 @@ message DoorGroup {
266} 294}
267 295
268message AllObjects { 296message AllObjects {
269 optional uint64 version = 15; 297 optional VersionNumber version = 15;
270 298
271 repeated Map maps = 7; 299 repeated Map maps = 7;
272 repeated Room rooms = 1; 300 repeated Room rooms = 1;
diff --git a/proto/human.proto b/proto/human.proto index c247edf..c586599 100644 --- a/proto/human.proto +++ b/proto/human.proto
@@ -78,6 +78,9 @@ message HumanConnection {
78 // This means that the connection should additionally require all cyan letters 78 // This means that the connection should additionally require all cyan letters
79 // when the Strict Cyan Ending option is on. 79 // when the Strict Cyan Ending option is on.
80 optional bool cyan_ending = 10; 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;
81} 84}
82 85
83message HumanConnections { 86message HumanConnections {
@@ -101,7 +104,7 @@ message HumanDoor {
101 repeated KeyholderIdentifier keyholders = 10; 104 repeated KeyholderIdentifier keyholders = 10;
102 repeated RoomIdentifier rooms = 11; 105 repeated RoomIdentifier rooms = 11;
103 repeated DoorIdentifier doors = 12; 106 repeated DoorIdentifier doors = 12;
104 repeated string endings = 13; 107 optional bool white_ending = 13;
105 optional bool double_letters = 15; 108 optional bool double_letters = 15;
106 109
107 // Sender nodes to be added to the list of requirements for triggering the 110 // Sender nodes to be added to the list of requirements for triggering the
@@ -111,6 +114,16 @@ message HumanDoor {
111 optional DoorType type = 4; 114 optional DoorType type = 4;
112 optional string location_room = 5; 115 optional string location_room = 5;
113 optional string location_name = 14; 116 optional string location_name = 14;
117
118 // Non-item doors that are latched will stay open once opened, even if the
119 // opening trigger is deactivated. This applies to EVENT/LOCATION_ONLY doors,
120 // as well as item-locked doors when not shuffling doors.
121 optional bool latch = 17;
122
123 // If true, the client will treat this door like a location, even though no
124 // location is created for it in the generator. This helps provide backwards
125 // compatability with older worlds.
126 optional bool legacy_location = 18;
114} 127}
115 128
116message HumanDoors { 129message HumanDoors {
@@ -150,9 +163,16 @@ message HumanPainting {
150 163
151message HumanPort { 164message HumanPort {
152 optional string name = 1; 165 optional string name = 1;
166 optional string display_name = 8;
153 optional string path = 2; 167 optional string path = 2;
154 168
155 optional string orientation = 3; 169 optional bool no_shuffle = 7;
170
171 // These specify how the player should be placed when a randomized entrance
172 // sends them to this port. "rotation" is in degrees and is counter-clockwise
173 // from the positive X axis.
174 optional Vec3d destination = 3;
175 optional double rotation = 6;
156 optional AxisDirection gravity = 5 [default = Y_MINUS]; 176 optional AxisDirection gravity = 5 [default = Y_MINUS];
157 177
158 optional DoorIdentifier required_door = 4; 178 optional DoorIdentifier required_door = 4;
@@ -206,7 +226,18 @@ message HumanRoom {
206 226
207message HumanMap { 227message HumanMap {
208 optional string display_name = 1; 228 optional string display_name = 1;
229 optional MapType type = 4;
230
231 optional PortIdentifier worldport_entrance = 3;
232
233 // These two fields are used by the validator and nothing else. excluded_nodes
234 // are objects in the tscn that are intentionally not mentioned in the txtpb.
235 // custom_nodes are the reverse of that; objects that are mentioned in the
236 // txtpb but not present in the tscn. These are generally created dynamically
237 // by the game mod, but may also be used for places where the validator is
238 // just wrong about the contents of the map file.
209 repeated string excluded_nodes = 2; 239 repeated string excluded_nodes = 2;
240 repeated string custom_nodes = 5;
210} 241}
211 242
212message HumanProgressive { 243message HumanProgressive {
@@ -230,7 +261,7 @@ message HumanDoorGroups {
230 261
231message HumanGlobalMetadata { 262message HumanGlobalMetadata {
232 repeated string special_names = 1; 263 repeated string special_names = 1;
233 optional uint64 version = 2; 264 optional VersionNumber version = 2;
234} 265}
235 266
236message IdMappings { 267message IdMappings {
@@ -238,6 +269,7 @@ message IdMappings {
238 map<string, uint64> panels = 1; 269 map<string, uint64> panels = 1;
239 map<string, uint64> masteries = 2; 270 map<string, uint64> masteries = 2;
240 map<string, uint64> keyholders = 3; 271 map<string, uint64> keyholders = 3;
272 map<string, uint64> ports = 4;
241 } 273 }
242 274
243 message MapIds { 275 message MapIds {