diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-08-12 16:55:17 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-08-12 16:55:17 -0400 |
commit | 4c8a38dfc0121343396d2a0d734cf1445d05b60c (patch) | |
tree | ccaf6dd1dc6fee60ced5ae19c5d0bb5db1217fcb /proto/common.proto | |
parent | 447a222b57e498f7904033c59e68d21d6a246abd (diff) | |
download | lingo2-archipelago-4c8a38dfc0121343396d2a0d734cf1445d05b60c.tar.gz lingo2-archipelago-4c8a38dfc0121343396d2a0d734cf1445d05b60c.tar.bz2 lingo2-archipelago-4c8a38dfc0121343396d2a0d734cf1445d05b60c.zip |
Converted to proto2
This will let us use an older version of protobuf in Python, and allows us to use the Godot protobuf implementation at all. Scalar fields with custom defaults in data.proto were changed to not have a default, because Godot doesn't handle it properly. The equivalent fields in human.proto still have the defaults, and datapacker copies the default value in if necessary. The Panel message in data.proto was also renamed to PanelData because otherwise it conflicts with the native Godot class named Panel. The double field in Letter was renamed to level2, because Godot couldn't handle it well. Finally, common.proto was removed and its contents were moved into data.proto, which allows us to generate code for Python without needing to edit it. NOTE: I had to slightly modify the Godot protobuf code generator. I'll need to upload that somewhere.
Diffstat (limited to 'proto/common.proto')
-rw-r--r-- | proto/common.proto | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/proto/common.proto b/proto/common.proto deleted file mode 100644 index e37f670..0000000 --- a/proto/common.proto +++ /dev/null | |||
@@ -1,38 +0,0 @@ | |||
1 | edition = "2023"; | ||
2 | |||
3 | package com.fourisland.lingo2_archipelago; | ||
4 | |||
5 | message Proxy { | ||
6 | string answer = 1; | ||
7 | string path = 2; | ||
8 | } | ||
9 | |||
10 | enum DoorType { | ||
11 | DOOR_TYPE_UNKNOWN = 0; | ||
12 | |||
13 | // This door is a location unless panelsanity is on, and it is an item as long as door shuffle is on. | ||
14 | STANDARD = 1; | ||
15 | |||
16 | // This door is never an item or a location. | ||
17 | EVENT = 2; | ||
18 | |||
19 | // This door is never a location, and is an item as long as door shuffle is on. | ||
20 | ITEM_ONLY = 3; | ||
21 | |||
22 | // This door is never a location, and is an item as long as control center color shuffle is on. | ||
23 | CONTROL_CENTER_COLOR = 4; | ||
24 | |||
25 | // This door is never an item, and is a location as long as panelsanity is not on. | ||
26 | LOCATION_ONLY = 5; | ||
27 | } | ||
28 | |||
29 | enum AxisDirection { | ||
30 | AXIS_DIRECTION_UNKNOWN = 0; | ||
31 | |||
32 | X_PLUS = 1; | ||
33 | X_MINUS = 2; | ||
34 | Y_PLUS = 3; | ||
35 | Y_MINUS = 4; | ||
36 | Z_PLUS = 5; | ||
37 | Z_MINUS = 6; | ||
38 | } | ||