UIInterface.ts 1.7 KB

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