config.py 3.0 KB

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