StarRailCopilot/tasks/map/route/model.py

13 lines
213 B
Python
Raw Normal View History

2023-10-01 15:03:57 +00:00
from pydantic import BaseModel, RootModel
class RouteModel(BaseModel):
name: str
route: str
plane: str
floor: str
position: tuple[float, float]
RouteListModel = RootModel[list[RouteModel]]