diff --git a/scripts/models.py b/scripts/models.py index 101b919..4ce034e 100644 --- a/scripts/models.py +++ b/scripts/models.py @@ -9,14 +9,14 @@ class Tile: def grid_key(self) -> str: """Erzeugt den String-Key für die Tilemap.""" - return f"{self.pos[0]};{self.post[1]}" - + return f"{self.pos[0]};{self.pos[1]}" + def to_dict(self) -> dict: """Konvertiert zurück in ein Dict (für JSON-Speicherung).""" return { 'type': self.type, 'variant': self.variant, - 'pos': list(self.post) + 'pos': list(self.pos) } @staticmethod