mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2024-11-23 00:03:07 +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):
|
class DoorSaved(BaseModel):
|
||||||
|
# Tag, an dem die Tür aufgeht
|
||||||
day: int
|
day: int
|
||||||
|
|
||||||
|
# Koordinaten für zwei Eckpunkte
|
||||||
x1: int
|
x1: int
|
||||||
y1: int
|
y1: int
|
||||||
x2: int
|
x2: int
|
||||||
|
@ -25,11 +28,27 @@ DoorsSaved: TypeAlias = list[DoorSaved]
|
||||||
|
|
||||||
|
|
||||||
class Puzzle(BaseModel):
|
class Puzzle(BaseModel):
|
||||||
|
# Dateiname Hintergrundbild
|
||||||
background: str
|
background: str
|
||||||
doors: DoorsSaved = []
|
|
||||||
|
# Dateiname Schriftart
|
||||||
font: str
|
font: str
|
||||||
|
|
||||||
|
# Türen für die UI
|
||||||
|
doors: DoorsSaved = []
|
||||||
|
|
||||||
|
# Lösungswort
|
||||||
solution: str
|
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):
|
class Config(BaseModel):
|
||||||
admin: User
|
admin: User
|
||||||
|
|
Loading…
Reference in a new issue