mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2024-12-24 21:43:00 +00:00
documentation
This commit is contained in:
parent
90c3643bf1
commit
d05e3b94be
1 changed files with 20 additions and 1 deletions
|
@ -14,7 +14,10 @@ class User(BaseModel):
|
|||
|
||||
|
||||
class DoorSaved(BaseModel):
|
||||
# Tag, an dem die Tür aufgeht
|
||||
day: int
|
||||
|
||||
# Koordinaten für zwei Eckpunkte
|
||||
x1: int
|
||||
y1: int
|
||||
x2: int
|
||||
|
@ -25,11 +28,27 @@ DoorsSaved: TypeAlias = list[DoorSaved]
|
|||
|
||||
|
||||
class Puzzle(BaseModel):
|
||||
# Dateiname Hintergrundbild
|
||||
background: str
|
||||
doors: DoorsSaved = []
|
||||
|
||||
# Dateiname Schriftart
|
||||
font: str
|
||||
|
||||
# Türen für die UI
|
||||
doors: DoorsSaved = []
|
||||
|
||||
# Lösungswort
|
||||
solution: str
|
||||
|
||||
# Monat, während dem der Kalender läuft
|
||||
month: int = 12
|
||||
|
||||
# Letzter Tag des Kalenders
|
||||
max_day: int = 24
|
||||
|
||||
# Alle Türen bleiben noch so viele Monate offen
|
||||
keep_open: int = 3
|
||||
|
||||
|
||||
class Config(BaseModel):
|
||||
admin: User
|
||||
|
|
Loading…
Reference in a new issue