summary refs log tree commit diff stats
path: root/apworld/static_logic.py
blob: 6c38f1f92d99468beebaad468481c4a372e7b636 (plain) (blame)
1
2
3
4
5
6
7
8
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))