config.py 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # This Python file uses the following encoding: utf-8
  2. # @author runhey
  3. # github https://github.com/runhey
  4. from pydantic import BaseModel, Field
  5. from enum import Enum
  6. # 庭院皮肤
  7. class MainType(str, Enum):
  8. COSTUME_MAIN = 'costume_main' # 初语谧景
  9. COSTUME_MAIN_1 = 'costume_main_1' # 织梦莲庭
  10. COSTUME_MAIN_2 = 'costume_main_2' # 琼夜淬光
  11. COSTUME_MAIN_3 = 'costume_main_3' # 烬夜韶阁
  12. COSTUME_MAIN_4 = 'costume_main_4' # 笔墨山河
  13. COSTUME_MAIN_5 = 'costume_main_5' # 枫色秋庭
  14. COSTUME_MAIN_6 = 'costume_main_6' # 暖池青苑
  15. COSTUME_MAIN_7 = 'costume_main_7' # 盛夏幽庭
  16. COSTUME_MAIN_8 = 'costume_main_8' # 远海航船
  17. COSTUME_MAIN_9 = 'costume_main_9' # 结缘神社
  18. COSTUME_MAIN_10 = 'costume_main_10' # 望月幽庭
  19. # 结界皮肤
  20. class RealmType(str, Enum):
  21. COSTUME_REALM_DEFAULT = 'costume_realm_default' # 妖扇结界
  22. COSTUME_REALM_1 = 'costume_realm_1' # 鬼灵咒符
  23. COSTUME_REALM_2 = 'costume_realm_2' # 狐梦之乡
  24. COSTUME_REALM_3 = 'costume_realm_3' # 编心织忆
  25. COSTUME_REALM_4 = 'costume_realm_4' # 花海繁生
  26. # 主题,就是庭院最右下角的展开按钮
  27. class ThemeType(str, Enum):
  28. COSTUME_THEME_DEFAULT = 'costume_theme_default' # 伊始之卷
  29. # 幕间,就是式神录这里
  30. class ShikigamiType(str, Enum):
  31. COSTUME_SHIKIGAMI_DEFAULT = 'costume_shikigami_default' # 静栖走廊
  32. # 签到主题
  33. class SignType(str, Enum):
  34. COSTUME_SIGN_DEFAULT = 'costume_sign_default' # 默认
  35. # 战斗主题
  36. class BattleType(str, Enum):
  37. COSTUME_BATTLE_DEFAULT = 'costume_battle_default' # 简约主题 / 不支持怀旧
  38. COSTUME_BATTLE_1 = 'costume_battle_1' # 雅乐之邦
  39. COSTUME_BATTLE_2 = 'costume_battle_2' # 蝶寻花踪
  40. COSTUME_BATTLE_3 = 'costume_battle_3' # 凛霜寒雪
  41. COSTUME_BATTLE_4 = 'costume_battle_4' # 春缕含青
  42. COSTUME_BATTLE_5 = 'costume_battle_5' # 祥夜幽芳
  43. COSTUME_BATTLE_6 = 'costume_battle_6' # 桂馥金秋
  44. COSTUME_BATTLE_7 = 'costume_battle_7' # 笼梦之境
  45. COSTUME_BATTLE_8 = 'costume_battle_8' # 藏金台阁
  46. COSTUME_BATTLE_9 = 'costume_battle_9' # 莲华圣域
  47. class CostumeConfig(BaseModel):
  48. # 皮肤配置
  49. costume_main_type: MainType = Field(default=MainType.COSTUME_MAIN, description='costume_main_type_help')
  50. costume_realm_type: RealmType = Field(default=RealmType.COSTUME_REALM_DEFAULT, description='costume_realm_type_help')
  51. costume_theme_type: ThemeType = Field(default=ThemeType.COSTUME_THEME_DEFAULT, description='costume_theme_type_help')
  52. costume_shikigami_type: ShikigamiType = Field(default=ShikigamiType.COSTUME_SHIKIGAMI_DEFAULT, description='costume_shikigami_type_help')
  53. costume_sign_type: SignType = Field(default=SignType.COSTUME_SIGN_DEFAULT, description='costume_sign_type_help')
  54. costume_battle_type: BattleType = Field(default=BattleType.COSTUME_BATTLE_DEFAULT, description='costume_battle_type_help')