diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-08-07 13:34:42 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-08-07 13:34:42 -0400 |
commit | e9d9da34e86a1e5f0de155bf9086d3e5ff6b2da0 (patch) | |
tree | 432e1177f11e7e2b5e0d6400fad977def7d31129 /proto/data.proto | |
parent | 1eacf01378d4dff3aed73fffcc42e0352b93835e (diff) | |
download | lingo2-archipelago-e9d9da34e86a1e5f0de155bf9086d3e5ff6b2da0.tar.gz lingo2-archipelago-e9d9da34e86a1e5f0de155bf9086d3e5ff6b2da0.tar.bz2 lingo2-archipelago-e9d9da34e86a1e5f0de155bf9086d3e5ff6b2da0.zip |
Protobuf works! Parsing connections
Diffstat (limited to 'proto/data.proto')
-rw-r--r-- | proto/data.proto | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/proto/data.proto b/proto/data.proto index 71c3aeb..b3b6e6b 100644 --- a/proto/data.proto +++ b/proto/data.proto | |||
@@ -1,5 +1,7 @@ | |||
1 | edition = "2023"; | 1 | edition = "2023"; |
2 | 2 | ||
3 | import "common.proto"; | ||
4 | |||
3 | package com.fourisland.lingo2_archipelago; | 5 | package com.fourisland.lingo2_archipelago; |
4 | 6 | ||
5 | message ProxyIdentifier { | 7 | message ProxyIdentifier { |
@@ -8,11 +10,9 @@ message ProxyIdentifier { | |||
8 | } | 10 | } |
9 | 11 | ||
10 | message Connection { | 12 | message Connection { |
11 | uint64 id = 7; | ||
12 | |||
13 | uint64 from_room = 1; | 13 | uint64 from_room = 1; |
14 | uint64 to_room = 2; | 14 | uint64 to_room = 2; |
15 | repeated uint64 required_door = 3; | 15 | uint64 required_door = 3; |
16 | 16 | ||
17 | oneof trigger { | 17 | oneof trigger { |
18 | uint64 port = 4; | 18 | uint64 port = 4; |
@@ -82,6 +82,7 @@ message Port { | |||
82 | 82 | ||
83 | message Room { | 83 | message Room { |
84 | uint64 id = 1; | 84 | uint64 id = 1; |
85 | uint64 map_id = 8; | ||
85 | string name = 2; | 86 | string name = 2; |
86 | string display_name = 3; | 87 | string display_name = 3; |
87 | 88 | ||
@@ -91,7 +92,13 @@ message Room { | |||
91 | repeated uint64 ports = 7; | 92 | repeated uint64 ports = 7; |
92 | } | 93 | } |
93 | 94 | ||
95 | message Map { | ||
96 | uint64 id = 1; | ||
97 | string name = 2; | ||
98 | } | ||
99 | |||
94 | message AllObjects { | 100 | message AllObjects { |
101 | repeated Map maps = 7; | ||
95 | repeated Room rooms = 1; | 102 | repeated Room rooms = 1; |
96 | repeated Door doors = 2; | 103 | repeated Door doors = 2; |
97 | repeated Panel panels = 3; | 104 | repeated Panel panels = 3; |