This commit is contained in:
bridge
2025-08-18 23:58:44 +08:00
parent 58e485806a
commit b309b2749c
6 changed files with 35 additions and 2 deletions

View File

@@ -9,9 +9,13 @@ class Gender(Enum):
@dataclass
class Avatar:
"""
NPC的类。
包含了这个角色的一切信息。
"""
name: str
id: int
brith_month: Month
birth_month: Month
birth_year: Year
age: int
gender: Gender

View File

@@ -1,5 +1,7 @@
from enum import Enum
from dataclasses import dataclass
class Month(Enum):
JANUARY = "January"
FEBRUARY = "February"