From 1eacf01378d4dff3aed73fffcc42e0352b93835e Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Thu, 7 Aug 2025 10:48:01 -0400 Subject: Trying out protobuf I guess --- proto/data.proto | 101 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 proto/data.proto (limited to 'proto/data.proto') 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 @@ +edition = "2023"; + +package com.fourisland.lingo2_archipelago; + +message ProxyIdentifier { + uint64 panel = 1; + string answer = 2; +} + +message Connection { + uint64 id = 7; + + uint64 from_room = 1; + uint64 to_room = 2; + repeated uint64 required_door = 3; + + oneof trigger { + uint64 port = 4; + uint64 painting = 5; + ProxyIdentifier panel = 6; + } +} + +message Door { + uint64 id = 1; + uint64 map_id = 10; + string name = 2; + + repeated string receivers = 3; + repeated uint64 move_paintings = 4; + + repeated ProxyIdentifier panels = 5; + string control_center_color = 6; + repeated string switches = 7; + + repeated string location_tags = 8; + repeated string item_tags = 9; +} + +message Panel { + uint64 id = 1; + uint64 room_id = 2; + string name = 3; + + string nodepath = 4; + + string clue = 5; + string answer = 6; + repeated string symbols = 7; + + repeated Proxy proxies = 8; + + uint64 required_door = 9; +} + +message Painting { + uint64 id = 1; + uint64 room_id = 2; + string name = 9; + + string path = 10; + string display_name = 4; + + string orientation = 3; + bool move = 6; + bool enter_only = 7; + bool flipped = 8; + + uint64 required_door = 5; +} + +message Port { + uint64 id = 1; + uint64 room_id = 2; + string name = 3; + + string path = 4; + string orientation = 5; + + uint64 required_door = 6; +} + +message Room { + uint64 id = 1; + string name = 2; + string display_name = 3; + + repeated uint64 panels = 4; + repeated uint64 paintings = 5; + repeated Letter letters = 6; + repeated uint64 ports = 7; +} + +message AllObjects { + repeated Room rooms = 1; + repeated Door doors = 2; + repeated Panel panels = 3; + repeated Painting paintings = 4; + repeated Port ports = 5; + repeated Connection connections = 6; +} -- cgit 1.4.1