fish_dragon_palace.proto 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. package fish_protocols;
  2. import "fish_def.proto";
  3. import "msg_type_def.proto";
  4. import "fish_type_def.proto";
  5. // 龙宫场排行信息
  6. message DragonPalaceRankInfo
  7. {
  8. optional int32 playerId = 1;
  9. optional string nickName = 2;
  10. optional int32 gainDimensity = 3;
  11. optional int32 headid = 4;
  12. optional int32 frameid = 5;
  13. optional int32 gender = 6;
  14. }
  15. // 龙宫界面信息获取
  16. message packetc2l_get_dragon_palace_info
  17. {
  18. optional e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_dragon_palace_info ];
  19. // 返回结果中是否含排行榜列表信息
  20. optional bool isGetRankInfo = 2;
  21. }
  22. message ExchangePriceInfo
  23. {
  24. // 兑换ID
  25. optional int32 exchangeId = 1;
  26. // 兑换价格
  27. optional int32 price = 2;
  28. }
  29. message ExchangeItemInfo
  30. {
  31. // 兑换ID
  32. optional int32 itemid = 1;
  33. // 兑换价格
  34. optional int32 itemcount = 2;
  35. }
  36. // 龙宫界面信息获取结果
  37. message packetl2c_get_dragon_palace_info_result
  38. {
  39. optional e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_dragon_palace_info_result ];
  40. // 当前拥有的魔石数量
  41. optional int32 dimensityCount = 2;
  42. // 今日已兑换次数
  43. optional int32 exchangeCount = 3;
  44. // 今日额外兑换次数
  45. optional int32 exchangeCountEx = 4;
  46. // 今日礼包折扣兑换次数
  47. optional int32 discountExchangeCountLv = 5;
  48. // 排行榜列表(当前周)
  49. repeated DragonPalaceRankInfo curRankList = 6;
  50. // 本周排行时,当前周已获得的魔石
  51. optional int32 gainDimensityCurWeek = 7;
  52. // 功能buff列表. 可否免费使用锁定,冰冻, 能否折扣
  53. repeated FunBuff selfFunBuffList = 8;
  54. repeated ExchangePriceInfo priceInfoList = 9;
  55. // 魔石兑换额外增加的次数
  56. optional int32 exchangeAddCount = 10;
  57. // 每日魔石总获取
  58. optional int32 dailyDimensity = 11;
  59. repeated bool dragonSlayerCheck = 12;
  60. }
  61. // 获取龙宫排行榜
  62. message packetc2l_get_dragon_palace_rank
  63. {
  64. optional e_server_msg_type packet_id = 1 [default = e_mst_c2l_get_dragon_palace_rank ];
  65. // 排行榜类型 0 本周排行榜 1 上周排行
  66. optional int32 rankType = 2;
  67. }
  68. // 获取龙宫排行榜结果
  69. message packetl2c_get_dragon_palace_rank_result
  70. {
  71. optional e_server_msg_type packet_id = 1 [default = e_mst_l2c_get_dragon_palace_rank_result ];
  72. optional int32 rankType = 2;
  73. // 排行榜列表
  74. repeated DragonPalaceRankInfo rankList = 3;
  75. }
  76. // 兑换
  77. message packetc2l_dragon_palace_exchange
  78. {
  79. optional e_server_msg_type packet_id = 1 [default = e_mst_c2l_dragon_palace_exchange ];
  80. // 兑换ID
  81. optional int32 exchangeId = 2;
  82. optional int32 exchangeCount = 3;
  83. }
  84. // 兑换结果
  85. message packetl2c_dragon_palace_exchange_result
  86. {
  87. optional e_server_msg_type packet_id = 1 [default = e_mst_l2c_dragon_palace_exchange_result ];
  88. // 兑换结果
  89. optional int32 result = 2;
  90. repeated ExchangeItemInfo exchangeItems = 3;
  91. // 本次兑换信息
  92. //optional ExchangePriceInfo exchangeInfo = 4;
  93. repeated ExchangePriceInfo priceInfoList = 4;
  94. // 下次兑换价格
  95. optional int32 nextPrice = 5;
  96. }
  97. // 增加兑换次数
  98. message packetc2l_dragon_add_exchange_count
  99. {
  100. optional e_server_msg_type packet_id = 1 [default = e_mst_c2l_dragon_add_exchange_count ];
  101. optional int32 addCount = 2;
  102. }
  103. // 增加兑换次数结果
  104. message packetl2c_dragon_add_exchange_count_result
  105. {
  106. optional e_server_msg_type packet_id = 1 [default = e_mst_l2c_dragon_add_exchange_count_result ];
  107. optional int32 result = 2;
  108. optional int32 addCount = 3;
  109. }
  110. // 魔石達人兑换
  111. message packetc2l_daily_dimensity_exchange
  112. {
  113. optional e_server_msg_type packet_id = 1 [default = e_mst_c2l_daily_dimensity_exchange ];
  114. }
  115. // 增加兑换次数结果
  116. message packetl2c_daily_dimensity_exchange_result
  117. {
  118. optional e_server_msg_type packet_id = 1 [default = e_mst_l2c_daily_dimensity_exchange_result ];
  119. optional int32 result = 2;
  120. repeated ExchangeItemInfo exchangeInfo = 3;
  121. }