mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2024-11-23 08:13:01 +00:00
26 lines
432 B
Python
26 lines
432 B
Python
|
from typing import TypeAlias
|
||
|
|
||
|
from pydantic import BaseModel
|
||
|
|
||
|
|
||
|
class DoorSaved(BaseModel):
|
||
|
# Tag, an dem die Tür aufgeht
|
||
|
day: int
|
||
|
|
||
|
# Koordinaten für zwei Eckpunkte
|
||
|
x1: int
|
||
|
y1: int
|
||
|
x2: int
|
||
|
y2: int
|
||
|
|
||
|
|
||
|
DoorsSaved: TypeAlias = list[DoorSaved]
|
||
|
|
||
|
|
||
|
class CalendarConfig(BaseModel):
|
||
|
# Dateiname Hintergrundbild
|
||
|
background: str = "adventskalender.jpg"
|
||
|
|
||
|
# Türen für die UI
|
||
|
doors: DoorsSaved = []
|