python-genshin-artifact/python_genshin_artifact/models/calculator.py
洛水居室 aa9049f851
🐛 Fix bug
2023-05-16 17:25:12 +08:00

21 lines
699 B
Python

from typing import List, Optional
from pydantic import BaseModel
from python_genshin_artifact.models.artifact import ArtifactInfo
from python_genshin_artifact.models.buff import BuffInfo
from python_genshin_artifact.models.characterInfo import CharacterInfo
from python_genshin_artifact.models.enemy import EnemyInfo
from python_genshin_artifact.models.skill import SkillInfo
from python_genshin_artifact.models.weapon import WeaponInfo
class CalculatorConfig(BaseModel):
character: CharacterInfo
weapon: WeaponInfo
buffs: List[BuffInfo] = []
artifacts: List[ArtifactInfo] = []
artifact_config: Optional[str] = None
skill: SkillInfo
enemy: Optional[EnemyInfo] = None