UIInterface.ts 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. /** @format */
  2. import {manualGetDataRsp, relicDataNty} from '../proto/game'
  3. import {IRelicConfig} from '../config/RelicConfig'
  4. import {GIFT_ID, GAME_TYPE, SHOP_TYPE, MOD_UI, PREFAB_TYPE, GUIDE_TYPE} from '../enums/Enum'
  5. import {IItemshopConfig} from '../config/ItemshopConfig'
  6. import {IIntegralshopConfig} from '../config/IntegralshopConfig'
  7. import {dailyDungeonsInfo, idNum} from '../proto/typedef'
  8. import {UI} from '../enums/UI'
  9. import {IDailyConfig} from '../config/DailyConfig'
  10. import {ICard, IEquip, IRole} from './GlobalInterface'
  11. import {IGiftConfig} from '../config/GiftConfig'
  12. export interface IRewardNty {
  13. changeArr: idNum[]
  14. iRoles: IRole[]
  15. iCards: ICard[]
  16. debrisArr: idNum[]
  17. iEquips: IEquip[]
  18. }
  19. export interface IGameResult {
  20. isWin: boolean
  21. startTime: number
  22. rewardsNty: IRewardNty
  23. }
  24. export interface IRelicSelect {
  25. cfg: IRelicConfig
  26. relicData: relicDataNty
  27. }
  28. export interface IStageChoose {
  29. gameType: GAME_TYPE
  30. }
  31. export interface IShopItemPop {
  32. type: SHOP_TYPE
  33. cfg: IGiftConfig | IItemshopConfig | IIntegralshopConfig
  34. name: string
  35. }
  36. export interface ITokenBuySure {
  37. buyID: GIFT_ID
  38. mod: MOD_UI
  39. moreGet: idNum[]
  40. }
  41. export interface ILoading {
  42. str: string
  43. isDelay: boolean
  44. cutNet: boolean
  45. timeout: boolean
  46. }
  47. export interface IMessage {
  48. tip: string
  49. sureFuc?: Function
  50. isHideCancel?: boolean
  51. sureLb?: string
  52. }
  53. export interface ItemUICfg {
  54. lvMax?: boolean
  55. hideLv?: boolean
  56. hideCost?: boolean
  57. hideProfession?: boolean
  58. showDetails?: boolean
  59. changeQuality?: number
  60. }
  61. export interface IReward {
  62. idNumArr: idNum[]
  63. itemUICfgArr?: ItemUICfg[]
  64. }
  65. export interface IUserGuide {
  66. guideType: GUIDE_TYPE
  67. path: string
  68. callback?: Function
  69. }
  70. export interface IRule {
  71. title: string
  72. content: string
  73. }
  74. export interface IOnlineRewardData {
  75. //在线奖励
  76. idx: number
  77. time: number
  78. data: idNum
  79. }
  80. export interface ILoginUI {
  81. chooseServer?: boolean
  82. }