summary refs log tree commit diff stats
path: root/apworld/static_logic.py
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2025-08-07 16:05:15 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2025-08-07 16:05:15 -0400
commitc9da387ede51f207825b63d9f13036a7b661d4b3 (patch)
tree08425dbc57c92ac72fef43c32ecbd5805f18f1f8 /apworld/static_logic.py
parent3c26cedd030c464e3b8a5576a98c19eb45134658 (diff)
downloadlingo2-archipelago-c9da387ede51f207825b63d9f13036a7b661d4b3.tar.gz
lingo2-archipelago-c9da387ede51f207825b63d9f13036a7b661d4b3.tar.bz2
lingo2-archipelago-c9da387ede51f207825b63d9f13036a7b661d4b3.zip
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.
Diffstat (limited to 'apworld/static_logic.py')
-rw-r--r--apworld/static_logic.py9
1 files changed, 9 insertions, 0 deletions
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 @@
1from .generated import data_pb2 as data_pb2
2import pkgutil
3
4class Lingo2StaticLogic:
5 def __init__(self):
6 file = pkgutil.get_data(__name__, "generated/data.binpb")
7
8 self.objects = data_pb2.AllObjects()
9 self.objects.ParseFromString(bytearray(file))