fish_turntablefish.proto 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. package fish_protocols;
  2. import "fish_def.proto";
  3. import "fish_type_def.proto";
  4. import "msg_type_def.proto";
  5. // 转盘竞猜
  6. // message packetc2l_tfish_guess
  7. // {
  8. // optional e_server_msg_type packet_id = 1 [default = e_mst_c2l_tfish_guess];
  9. // // 竞猜选项 0-章鱼 1-水母 2-放弃不猜
  10. // optional int32 option = 2;
  11. // // 转盘ID。 可能一次出现多个转盘
  12. // optional int32 turnId = 3;
  13. // }
  14. // // 转盘竞猜结果
  15. // message packetl2c_tfish_guess_result
  16. // {
  17. // optional e_server_msg_type packet_id = 1 [default = e_mst_l2c_tfish_guess_result];
  18. // // 客户端提交的选项
  19. // optional int32 cOption = 2;
  20. // // 服务器随机的选项, 比较两者相等,则猜中
  21. // optional int32 sOption = 3;
  22. // optional int32 result = 4;
  23. // // 剩余的时光令牌个数
  24. // optional int32 timeCardCount = 5;
  25. // optional int32 turnId = 6;
  26. // // 猜错时,返回使用时光令牌,需要消耗多少个
  27. // optional int32 costTimeCardCount = 7;
  28. // }
  29. // // 使用时光令牌
  30. // message packetc2l_tfish_use_timecard
  31. // {
  32. // optional e_server_msg_type packet_id = 1 [default = e_mst_c2l_tfish_use_timecard];
  33. // // 转盘ID
  34. // optional int32 turnId = 2;
  35. // }
  36. // // 使用时光令牌结果
  37. // message packetl2c_tfish_use_timecard_result
  38. // {
  39. // optional e_server_msg_type packet_id = 1 [default = e_mst_l2c_tfish_use_timecard_result];
  40. // // 转盘ID
  41. // optional int32 turnId = 2;
  42. // // 消耗了多少时光令牌
  43. // optional int32 costTimeCard = 3;
  44. // optional int32 result = 4;
  45. // }
  46. // // 获取获奖列表
  47. // message packetc2l_tfish_get_reward_list
  48. // {
  49. // optional e_server_msg_type packet_id = 1 [default = e_mst_c2l_tfish_get_reward_list];
  50. // // 初始为0
  51. // optional int32 lastId = 2;
  52. // }
  53. // message TFRewardInfo
  54. // {
  55. // optional string nickName = 1;
  56. // // 获得金币
  57. // optional int32 gainGold = 2;
  58. // // 连胜局数
  59. // optional int32 correct = 3;
  60. // }
  61. // // 获奖列表结果
  62. // message packetl2c_tfish_get_reward_list_result
  63. // {
  64. // optional e_server_msg_type packet_id = 1 [default = e_mst_l2c_tfish_get_reward_list_result];
  65. // optional int32 lastId = 2;
  66. // repeated TFRewardInfo rewardList = 3;
  67. // }
  68. // /////////////////////////// 转盘乐翻天活动 //////////////////////////////////////////
  69. // // 获取活动界面信息
  70. // message packetc2l_tfishact_get_info
  71. // {
  72. // optional e_server_msg_type packet_id = 1 [default = e_mst_c2l_tfishact_get_info];
  73. // }
  74. // message TFishRankInfo
  75. // {
  76. // optional int32 playerId = 1;
  77. // optional string nickName = 2;
  78. // // 活动期间活动的金币
  79. // optional int32 gainGold = 3;
  80. // }
  81. // // 获取活动界面信息结果
  82. // message packetl2c_tfishact_get_info_result
  83. // {
  84. // optional e_server_msg_type packet_id = 1 [default = e_mst_l2c_tfishact_get_info_result];
  85. // repeated TFishRankInfo rankList = 2;
  86. // // 自己的信息
  87. // optional TFishRankInfo self = 3;
  88. // // 剩余的时光令牌数量
  89. // optional int32 selfRemainTimeCard = 4;
  90. // }