chat.proto 731 B

12345678910111213141516171819202122232425
  1. syntax = "proto3";
  2. package protos;
  3. import "userinfo.proto";
  4. import "result.proto";
  5. message ChatNotify {
  6. uint32 Type = 1; // 0=世界;1=大厅;2=队伍;3=派对;4=好友(私聊)
  7. uint64 Target = 2; // 对象id, 对应Type字段的世界id,roomid partyid, 好友id
  8. string Msg = 3; // 消息正文, 客户端自行编码解码
  9. }
  10. message ChatPush {
  11. uint32 Type = 1; // 0=世界;1=大厅;2=队伍;3=派对;4=好友(私聊)
  12. uint64 Target = 2; // 对象id, 对应Type字段的世界id,roomid partyid, 好友id
  13. string Msg = 3; // 消息正文, 客户端自行编码解码
  14. UserInfo Sender = 4;
  15. }
  16. message SwitchWorldRequest {
  17. uint32 WorldID = 1;
  18. }
  19. message SwitchWorldResponse {
  20. Result Result = 1;
  21. }