party.proto 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. }
  15. message PartyJoinPush {
  16. UserInfo UserInfo = 1;
  17. }
  18. message PartyLeaveRequest {
  19. }
  20. message PartyLeaveResponse {
  21. Result Result = 1;
  22. }
  23. message PartyLeavePush {
  24. uint32 UserID = 1;
  25. }
  26. message PartyReadyRequest {
  27. }
  28. message PartyReadyResponse {
  29. Result Result = 1;
  30. }
  31. message PartyReadyPush {
  32. uint32 UserID = 1;
  33. }
  34. message PartyFullPush {
  35. }
  36. message PartyStartPush {
  37. }
  38. message PartyFinishPush {
  39. }
  40. message PartyStageCrossRequest {
  41. uint32 StageIndex = 1; // 第几个小关
  42. }
  43. message PartyStageCrossResponse {
  44. Result Result = 1;
  45. uint32 CrossIndex = 2; // 第几个通关的
  46. }
  47. message PartyStageCrossPush {
  48. uint32 UserID = 1;
  49. uint32 StageIndex = 2; // 第几个小关
  50. uint32 CrossIndex = 3; // 第几个通关的
  51. }
  52. message PartyStageStartPush {
  53. uint32 StageIndex = 1; // 第几个小关
  54. repeated uint32 Users = 2; // 参加用户
  55. }
  56. message PartyStageFinishPush {
  57. uint32 StageIndex = 1; // 第几个小关
  58. repeated uint32 Users = 2; // 过关用户
  59. }