diff options
Diffstat (limited to 'apworld/static_logic.py')
-rw-r--r-- | apworld/static_logic.py | 9 |
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 @@ | |||
1 | from .generated import data_pb2 as data_pb2 | ||
2 | import pkgutil | ||
3 | |||
4 | class 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)) | ||