config.py 763 B

123456789101112131415161718192021222324
  1. # This Python file uses the following encoding: utf-8
  2. # @author runhey
  3. # github https://github.com/runhey
  4. from datetime import timedelta, time
  5. from pydantic import BaseModel, Field
  6. from tasks.Component.config_scheduler import Scheduler
  7. from tasks.Component.config_base import ConfigBase, Time
  8. from tasks.Component.GeneralBattle.config_general_battle import GeneralBattleConfig
  9. from tasks.Component.SwitchSoul.switch_soul_config import SwitchSoulConfig
  10. class WantedQuestsConfig(BaseModel):
  11. before_end: Time = Field(default=Time(0, 0, 0), description='before_end_help')
  12. class WantedQuests(ConfigBase):
  13. scheduler: Scheduler = Field(default_factory=Scheduler)
  14. wanted_quests_config: WantedQuestsConfig = Field(default_factory=WantedQuestsConfig)