oop
This commit is contained in:
@@ -39,7 +39,7 @@ class Player:
|
|||||||
class Save:
|
class Save:
|
||||||
version: int
|
version: int
|
||||||
cat: Cat
|
cat: Cat
|
||||||
player: Player
|
player: Player = field(default_factory=Player) # lazy :)
|
||||||
|
|
||||||
def to_dict(self):
|
def to_dict(self):
|
||||||
return asdict(self)
|
return asdict(self)
|
||||||
|
|||||||
Reference in New Issue
Block a user