diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-08-07 10:48:01 -0400 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-08-07 10:48:01 -0400 |
| commit | 1eacf01378d4dff3aed73fffcc42e0352b93835e (patch) | |
| tree | a90fd3b0e829bab1acef32ffc63aafe1fafc61a9 /proto/data.proto | |
| parent | e36aead557d767539326b230f9ba8b89b4d1d1df (diff) | |
| download | lingo2-archipelago-1eacf01378d4dff3aed73fffcc42e0352b93835e.tar.gz lingo2-archipelago-1eacf01378d4dff3aed73fffcc42e0352b93835e.tar.bz2 lingo2-archipelago-1eacf01378d4dff3aed73fffcc42e0352b93835e.zip | |
Trying out protobuf I guess
Diffstat (limited to 'proto/data.proto')
| -rw-r--r-- | proto/data.proto | 101 |
1 files changed, 101 insertions, 0 deletions
| diff --git a/proto/data.proto b/proto/data.proto new file mode 100644 index 0000000..71c3aeb --- /dev/null +++ b/proto/data.proto | |||
| @@ -0,0 +1,101 @@ | |||
| 1 | edition = "2023"; | ||
| 2 | |||
| 3 | package com.fourisland.lingo2_archipelago; | ||
| 4 | |||
| 5 | message ProxyIdentifier { | ||
| 6 | uint64 panel = 1; | ||
| 7 | string answer = 2; | ||
| 8 | } | ||
| 9 | |||
| 10 | message Connection { | ||
| 11 | uint64 id = 7; | ||
| 12 | |||
| 13 | uint64 from_room = 1; | ||
| 14 | uint64 to_room = 2; | ||
| 15 | repeated uint64 required_door = 3; | ||
| 16 | |||
| 17 | oneof trigger { | ||
| 18 | uint64 port = 4; | ||
| 19 | uint64 painting = 5; | ||
| 20 | ProxyIdentifier panel = 6; | ||
| 21 | } | ||
| 22 | } | ||
| 23 | |||
| 24 | message Door { | ||
| 25 | uint64 id = 1; | ||
| 26 | uint64 map_id = 10; | ||
| 27 | string name = 2; | ||
| 28 | |||
| 29 | repeated string receivers = 3; | ||
| 30 | repeated uint64 move_paintings = 4; | ||
| 31 | |||
| 32 | repeated ProxyIdentifier panels = 5; | ||
| 33 | string control_center_color = 6; | ||
| 34 | repeated string switches = 7; | ||
| 35 | |||
| 36 | repeated string location_tags = 8; | ||
| 37 | repeated string item_tags = 9; | ||
| 38 | } | ||
| 39 | |||
| 40 | message Panel { | ||
| 41 | uint64 id = 1; | ||
| 42 | uint64 room_id = 2; | ||
| 43 | string name = 3; | ||
| 44 | |||
| 45 | string nodepath = 4; | ||
| 46 | |||
| 47 | string clue = 5; | ||
| 48 | string answer = 6; | ||
| 49 | repeated string symbols = 7; | ||
| 50 | |||
| 51 | repeated Proxy proxies = 8; | ||
| 52 | |||
| 53 | uint64 required_door = 9; | ||
| 54 | } | ||
| 55 | |||
| 56 | message Painting { | ||
| 57 | uint64 id = 1; | ||
| 58 | uint64 room_id = 2; | ||
| 59 | string name = 9; | ||
| 60 | |||
| 61 | string path = 10; | ||
| 62 | string display_name = 4; | ||
| 63 | |||
| 64 | string orientation = 3; | ||
| 65 | bool move = 6; | ||
| 66 | bool enter_only = 7; | ||
| 67 | bool flipped = 8; | ||
| 68 | |||
| 69 | uint64 required_door = 5; | ||
| 70 | } | ||
| 71 | |||
| 72 | message Port { | ||
| 73 | uint64 id = 1; | ||
| 74 | uint64 room_id = 2; | ||
| 75 | string name = 3; | ||
| 76 | |||
| 77 | string path = 4; | ||
| 78 | string orientation = 5; | ||
| 79 | |||
| 80 | uint64 required_door = 6; | ||
| 81 | } | ||
| 82 | |||
| 83 | message Room { | ||
| 84 | uint64 id = 1; | ||
| 85 | string name = 2; | ||
| 86 | string display_name = 3; | ||
| 87 | |||
| 88 | repeated uint64 panels = 4; | ||
| 89 | repeated uint64 paintings = 5; | ||
| 90 | repeated Letter letters = 6; | ||
| 91 | repeated uint64 ports = 7; | ||
| 92 | } | ||
| 93 | |||
| 94 | message AllObjects { | ||
| 95 | repeated Room rooms = 1; | ||
| 96 | repeated Door doors = 2; | ||
| 97 | repeated Panel panels = 3; | ||
| 98 | repeated Painting paintings = 4; | ||
| 99 | repeated Port ports = 5; | ||
| 100 | repeated Connection connections = 6; | ||
| 101 | } | ||
