From c9da387ede51f207825b63d9f13036a7b661d4b3 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Thu, 7 Aug 2025 16:05:15 -0400 Subject: Started apworld vcpkg's libprotobuf is older than what PIP has, but neither are completely up to date either. Ugh. Doors have a room now because that's where the location will go. --- apworld/static_logic.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 apworld/static_logic.py (limited to 'apworld/static_logic.py') diff --git a/apworld/static_logic.py b/apworld/static_logic.py new file mode 100644 index 0000000..6c38f1f --- /dev/null +++ b/apworld/static_logic.py @@ -0,0 +1,9 @@ +from .generated import data_pb2 as data_pb2 +import pkgutil + +class Lingo2StaticLogic: + def __init__(self): + file = pkgutil.get_data(__name__, "generated/data.binpb") + + self.objects = data_pb2.AllObjects() + self.objects.ParseFromString(bytearray(file)) -- cgit 1.4.1