summary refs log tree commit diff stats
path: root/apworld/static_logic.py
diff options
context:
space:
mode:
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))