|
|
@@ -0,0 +1,29 @@
|
|
|
+# This Python file uses the following encoding: utf-8
|
|
|
+# @author runhey
|
|
|
+# github https://github.com/runhey
|
|
|
+from pydantic import BaseModel, Field
|
|
|
+from datetime import time
|
|
|
+
|
|
|
+from tasks.Component.config_scheduler import Scheduler
|
|
|
+from tasks.Component.config_base import ConfigBase
|
|
|
+from tasks.Component.GeneralBattle.config_general_battle import GreenMarkType
|
|
|
+
|
|
|
+class DuelConfig(ConfigBase):
|
|
|
+ # 一键切换斗技御魂
|
|
|
+ switch_all_soul: bool = Field(default=False, description='switch_all_soul_help')
|
|
|
+ # 限制时间
|
|
|
+ limit_time: time = Field(default=time(minute=30), description='limit_time_help')
|
|
|
+ # 目标分数
|
|
|
+ target_score: int = Field(default=2000, description='target_score_help')
|
|
|
+ # 刷满荣誉就退出
|
|
|
+ honor_full_exit: bool = Field(default=False, description='honor_full_exit_help')
|
|
|
+ # 是否开启绿标
|
|
|
+ green_enable: bool = Field(default=False, description='green_enable_help')
|
|
|
+ # 选哪一个绿标
|
|
|
+ green_mark: GreenMarkType = Field(default=GreenMarkType.GREEN_LEFT1, description='green_mark_help')
|
|
|
+
|
|
|
+
|
|
|
+class Duel(ConfigBase):
|
|
|
+ scheduler: Scheduler = Field(default_factory=Scheduler)
|
|
|
+ duel_soul: DuelConfig = Field(default_factory=DuelConfig)
|
|
|
+
|