config.py 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. COSTUME_MAIN_11 = 'costume_main_11' # 鏖刀禁府
  20. COSTUME_MAIN_12 = 'costume_main_12' # 龙吟溯玉
  21. COSTUME_MAIN_13 = 'costume_main_13' # 云景阆苑
  22. # 结界皮肤
  23. class RealmType(str, Enum):
  24. COSTUME_REALM_DEFAULT = 'costume_realm_default' # 妖扇结界
  25. COSTUME_REALM_1 = 'costume_realm_1' # 鬼灵咒符
  26. COSTUME_REALM_2 = 'costume_realm_2' # 狐梦之乡
  27. COSTUME_REALM_3 = 'costume_realm_3' # 编心织忆
  28. COSTUME_REALM_4 = 'costume_realm_4' # 花海繁生
  29. # 主题,就是庭院最右下角的展开按钮
  30. class ThemeType(str, Enum):
  31. COSTUME_THEME_DEFAULT = 'costume_theme_default' # 伊始之卷
  32. # 幕间,就是式神录这里
  33. class ShikigamiType(str, Enum):
  34. COSTUME_SHIKIGAMI_DEFAULT = 'costume_shikigami_default' # 静栖走廊
  35. COSTUME_SHIKIGAMI_1 = 'costume_shikigami_1' # 妙音空境
  36. COSTUME_SHIKIGAMI_2 = 'costume_shikigami_2' # 缘台樱垂
  37. COSTUME_SHIKIGAMI_3 = 'costume_shikigami_3' # 启程之刻
  38. COSTUME_SHIKIGAMI_4 = 'costume_shikigami_4' # 冥夜游火
  39. COSTUME_SHIKIGAMI_5 = 'costume_shikigami_5' # 契光水境
  40. # 签到主题
  41. class SignType(str, Enum):
  42. COSTUME_SIGN_DEFAULT = 'costume_sign_default' # 默认
  43. # 战斗主题
  44. class BattleType(str, Enum):
  45. COSTUME_BATTLE_DEFAULT = 'costume_battle_default' # 简约主题 / 不支持怀旧
  46. COSTUME_BATTLE_1 = 'costume_battle_1' # 雅乐之邦
  47. COSTUME_BATTLE_2 = 'costume_battle_2' # 蝶寻花踪
  48. COSTUME_BATTLE_3 = 'costume_battle_3' # 凛霜寒雪
  49. COSTUME_BATTLE_4 = 'costume_battle_4' # 春缕含青
  50. COSTUME_BATTLE_5 = 'costume_battle_5' # 祥夜幽芳
  51. COSTUME_BATTLE_6 = 'costume_battle_6' # 桂馥金秋
  52. COSTUME_BATTLE_7 = 'costume_battle_7' # 笼梦之境
  53. COSTUME_BATTLE_8 = 'costume_battle_8' # 藏金台阁
  54. COSTUME_BATTLE_9 = 'costume_battle_9' # 莲华圣域
  55. COSTUME_BATTLE_10 = 'costume_battle_10' # 流焰蝶舞
  56. class CostumeConfig(BaseModel):
  57. # 皮肤配置
  58. costume_main_type: MainType = Field(default=MainType.COSTUME_MAIN, description='costume_main_type_help')
  59. costume_realm_type: RealmType = Field(default=RealmType.COSTUME_REALM_DEFAULT, description='costume_realm_type_help')
  60. costume_theme_type: ThemeType = Field(default=ThemeType.COSTUME_THEME_DEFAULT, description='costume_theme_type_help')
  61. costume_shikigami_type: ShikigamiType = Field(default=ShikigamiType.COSTUME_SHIKIGAMI_DEFAULT, description='costume_shikigami_type_help')
  62. costume_sign_type: SignType = Field(default=SignType.COSTUME_SIGN_DEFAULT, description='costume_sign_type_help')
  63. costume_battle_type: BattleType = Field(default=BattleType.COSTUME_BATTLE_DEFAULT, description='costume_battle_type_help')