party.proto 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. syntax = "proto3";
  2. package protos;
  3. import "userinfo.proto";
  4. import "result.proto";
  5. message PartyJoinRequest {
  6. uint64 PartyID = 1;
  7. int32 PartyType = 2; // 1 = 糖豆人; 2 = ** ; 3 = **
  8. int32 Identidy = 3; // 身份 0 = 游戏者; 1 = 观察者
  9. }
  10. message PartyJoinResponse {
  11. Result Result = 1;
  12. uint32 PartyID = 2;
  13. int32 Identidy = 3; // 身份 0 = 游戏者; 1 = 观察者
  14. uint32 sit = 4; // 座位号
  15. }
  16. message PartyJoinPush {
  17. UserInfo UserInfo = 1;
  18. }
  19. message PartyLeaveRequest {
  20. }
  21. message PartyLeaveResponse {
  22. Result Result = 1;
  23. }
  24. message PartyLeavePush {
  25. uint32 UserID = 1;
  26. }
  27. message PartyReadyRequest {
  28. }
  29. message PartyReadyResponse {
  30. Result Result = 1;
  31. }
  32. message PartyReadyPush {
  33. uint32 UserID = 1;
  34. }
  35. message PartyFullPush {
  36. }
  37. message PartyStartPush {
  38. }
  39. message PartyFinishPush {
  40. }
  41. message PartyStageCrossRequest {
  42. uint32 StageIndex = 1; // 第几个小关
  43. }
  44. message PartyStageCrossResponse {
  45. Result Result = 1;
  46. uint32 CrossIndex = 2; // 第几个通关的
  47. }
  48. message PartyStageCrossPush {
  49. uint32 UserID = 1;
  50. uint32 StageIndex = 2; // 第几个小关
  51. uint32 CrossIndex = 3; // 第几个通关的
  52. }
  53. message PartyStageStartPush {
  54. uint32 StageIndex = 1; // 第几个小关
  55. repeated uint32 Users = 2; // 参加用户
  56. }
  57. message PartyStageFinishPush {
  58. uint32 StageIndex = 1; // 第几个小关
  59. repeated uint32 Users = 2; // 过关用户
  60. }