<filename>eilib/database/levers.py<gh_stars>0
# Autogenerated file. Do not modify
from .abstract import EiDatabase, EiDatabaseCustomType, EiDatabaseTable, EiDatabaseTableRow


class PlaceType(EiDatabaseCustomType):

    __slots__ = (
        "p1_x",
        "p1_y",
        "p2_x",
        "p2_y",
    )

    def __init__(self):
        self.p1_x: float = None
        self.p1_y: float = None
        self.p2_x: float = None
        self.p2_y: float = None
        super().__init__()


class LeverPrototype(EiDatabaseTableRow):

    __slots__ = (
        "name",
        "places",
        "placesnum",
        "scale",
        "switch_time",
        "material",
        "switch_sound",
        "lever_text",
    )

    def __init__(self):
        self.name: str = None
        self.places: PlaceType = None
        self.placesnum: int = None
        self.scale: float = None
        self.switch_time: int = None
        self.material: str = None
        self.switch_sound: str = None
        self.lever_text: str = None
        super().__init__()

    @property
    def _db_type(self):
        return LeversDatabase


class LeverPrototypes(EiDatabaseTable[LeverPrototype]):

    _row_type = LeverPrototype


class LeversDatabase(EiDatabase):

    __slots__ = (
        "lever_prototypes",
    )
    _custom_types = {t.__name__: t for t in (PlaceType,)}

    def __init__(self):
        self.lever_prototypes = LeverPrototypes()
        super().__init__()

<filename>eilib/database/levers.py<gh_stars>0
# Autogenerated file. Do not modify
from .abstract import EiDatabase, EiDatabaseCustomType, EiDatabaseTable, EiDatabaseTableRow


class PlaceType(EiDatabaseCustomType):

    __slots__ = (
        "p1_x",
        "p1_y",
        "p2_x",
        "p2_y",
    )

    def __init__(self):
        self.p1_x: float = None
        self.p1_y: float = None
        self.p2_x: float = None
        self.p2_y: float = None
        super().__init__()


class LeverPrototype(EiDatabaseTableRow):

    __slots__ = (
        "name",
        "places",
        "placesnum",
        "scale",
        "switch_time",
        "material",
        "switch_sound",
        "lever_text",
    )

    def __init__(self):
        self.name: str = None
        self.places: PlaceType = None
        self.placesnum: int = None
        self.scale: float = None
        self.switch_time: int = None
        self.material: str = None
        self.switch_sound: str = None
        self.lever_text: str = None
        super().__init__()

    @property
    def _db_type(self):
        return LeversDatabase


class LeverPrototypes(EiDatabaseTable[LeverPrototype]):

    _row_type = LeverPrototype


class LeversDatabase(EiDatabase):

    __slots__ = (
        "lever_prototypes",
    )
    _custom_types = {t.__name__: t for t in (PlaceType,)}

    def __init__(self):
        self.lever_prototypes = LeverPrototypes()
        super().__init__()

# Autogenerated file. Do not modify