client2world_chat.proto 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. import "client2world_msg_type.proto";
  2. import "msg_type_def.proto";
  3. import "msg_info_def.proto";
  4. package client2world_protocols;
  5. // 发送聊天
  6. // message packetc2w_chat
  7. // {
  8. // optional e_server_msg_type packet_id = 1 [default = e_mst_c2w_chat];
  9. // optional string content = 2;
  10. // //录音时长
  11. // optional int32 audio_time = 3 [default = 0];
  12. // }
  13. // // 聊天结果
  14. // message packetw2c_chat_result
  15. // {
  16. // optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_chat_result];
  17. // optional string content = 2;
  18. // // 说话者昵称
  19. // optional string talkerNickName = 3;
  20. // // 说话者ID
  21. // optional int32 talkerId = 4;
  22. // //结果
  23. // optional int32 result = 5;
  24. // //录音时长
  25. // optional int32 audio_time = 6 [default = 0];
  26. // //录音长度
  27. // optional int32 audio_len = 7 [default = 0];
  28. // // 说话者的VIP等级
  29. // optional int32 talkerVIPLevel = 8;
  30. // // 说话者是否还有月卡
  31. // optional bool hasMonthCard = 9;
  32. // // 聊天类型,默认值为0 1表示某VIP玩家进入了游戏
  33. // optional int32 chatType = 10 [default = 0];
  34. // // 说话者头像
  35. // optional string talkerHeadIcon = 11;
  36. // // 性别
  37. // optional int32 talkerSex = 12;
  38. // }
  39. // 通告消息
  40. message packetw2c_notify
  41. {
  42. optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_notify];
  43. optional string content = 2;
  44. optional int32 notifyType = 3;
  45. // 通告者昵称
  46. optional string talkerNickName = 4;
  47. // 玩家ID,0是系统发送的
  48. optional int32 playerId = 5;
  49. // 说话者的VIP等级
  50. optional int32 talkerVIPLevel = 6;
  51. // 若由玩家发出,表示该玩家是否还有月卡。系统的忽略此字段
  52. optional bool hasMonthCard = 7;
  53. // 重复次数,本条消息从左到右共滚动次数
  54. optional int32 repCount = 8[default = 1];
  55. // 重复间隔,条条消息2次滚动之间间隔
  56. optional int32 interval = 9[default = 0];
  57. // 出现位置 ENotifyShowPos类型
  58. optional int32 showPos = 10;
  59. }
  60. // 玩家发起的通告消息
  61. // message packetc2w_player_notify
  62. // {
  63. // optional e_server_msg_type packet_id = 1 [default = e_mst_c2w_player_notify];
  64. // optional string content = 2;
  65. // }
  66. // // 玩家发起的通告消息结果
  67. // message packetw2c_player_notify_result
  68. // {
  69. // optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_player_notify_result];
  70. // optional int32 result = 2;
  71. // }
  72. // // 玩家连续发小喇叭
  73. // message packetc2w_player_continuous_send_speaker
  74. // {
  75. // optional e_server_msg_type packet_id = 1 [default = e_mst_c2w_player_continuous_send_speaker];
  76. // optional string content = 2;
  77. // // 连续发送次数
  78. // optional int32 count = 3;
  79. // }
  80. // // 玩家连续发小喇叭结果
  81. // message packetw2c_player_continuous_send_speaker_result
  82. // {
  83. // optional e_server_msg_type packet_id = 1 [default = e_mst_w2c_player_continuous_send_speaker_result];
  84. // optional int32 result = 2;
  85. // // 连续发送次数
  86. // optional int32 count = 3;
  87. // // 当返回结果是 上次未发完时,这里是剩余次数,
  88. // optional int32 remainCount = 4;
  89. // }