PtlHcInfo.ts 840 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /**
  2. * 获取合成信息
  3. */
  4. export interface ReqHcInfo {
  5. }
  6. /**
  7. * 返回合成信息
  8. */
  9. export interface ResHcInfo {
  10. chapterId:number //章节ID
  11. tili:number //体力
  12. lastTime:number //最后一次结算体力时间
  13. list:HcInfoList //格子列表
  14. }
  15. export interface HcInfoList {
  16. [gzid: string]: HcInfoGeziInfo;
  17. }
  18. export interface HcInfoGeziInfo {
  19. type:HcType //具体物品类型 0:无物品 1:发射器 2:怪物 3:装备 4:材料
  20. unlock:HcUnlock //解锁状态
  21. correlationId:number //物品ID
  22. }
  23. //具体物品类型
  24. export enum HcType {
  25. wu = 0, //无物品
  26. material = 2, //材料
  27. emitter = 3, //发射器
  28. monster = 50, //怪物
  29. equip = 4, //装备
  30. }
  31. //解锁状态
  32. export enum HcUnlock {
  33. off = 0, //关
  34. on = 1, //开
  35. }
  36. export const conf = {
  37. connet: "ws"
  38. }