HGHHMessage_C_40001.proto 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. syntax = "proto3";
  2. package ET;
  3. import 'Common.proto';
  4. // 黄冈晃晃 玩家准备
  5. //ResponseType G2C_HGHHReady
  6. message C2G_HGHHReady // IRequest
  7. {
  8. int32 RpcId = 1;
  9. }
  10. message G2C_HGHHReady // IResponse
  11. {
  12. int32 RpcId = 1;
  13. int32 Error = 2;
  14. string Message = 3;
  15. bool IsReady = 4;
  16. }
  17. message G2C_HGHHReadyPush // IActorMessage
  18. {
  19. RoomInfo info = 1; // 房间信息
  20. }
  21. // 黄冈晃晃 踢出房间
  22. //ResponseType G2C_HGHHKick
  23. message C2G_HGHHKick // IRequest
  24. {
  25. int32 RpcId = 1;
  26. int32 RoomId = 2; // 房间号
  27. int64 PlayerId = 3; // 玩家id
  28. }
  29. message G2C_HGHHKick // IResponse
  30. {
  31. int32 RpcId = 1;
  32. int32 Error = 2;
  33. string Message = 3;
  34. }
  35. message G2C_HGHHKickPush // IActorMessage
  36. {
  37. RoomInfo info = 1; // 房间信息(给其他3个玩家推送信息)
  38. }
  39. // 黄冈晃晃 准备开始推送
  40. message G2C_HGHHReadyStartPush // IActorMessage
  41. {
  42. int64 ReadyStartTime = 1; // x秒倒计时动画
  43. }
  44. // 黄冈晃晃 牌局开始推送
  45. message G2C_HGHHStartPush // IActorMessage
  46. {
  47. RoomInfo info = 1; // 房间信息
  48. }
  49. // 黄冈晃晃 摸牌推送
  50. message G2C_HGHHDrawCardPush // IActorMessage
  51. {
  52. RoomInfo info = 1; // 房间信息
  53. }
  54. // 黄冈晃晃 玩家出牌
  55. //ResponseType G2C_HGHHDisCard
  56. message C2G_HGHHDisCard // IRequest
  57. {
  58. int32 RpcId = 1;
  59. int32 Card = 2; // 出的牌
  60. }
  61. message G2C_HGHHDisCard // IResponse
  62. {
  63. int32 RpcId = 1;
  64. int32 Error = 2;
  65. string Message = 3;
  66. }
  67. message G2C_HGHHDisCardPush // IActorMessage
  68. {
  69. RoomInfo info = 1; // 房间信息(给其他3个玩家推送xx出牌信息)
  70. }
  71. // 黄冈晃晃 玩家操作吃 碰 杠 胡 过
  72. //ResponseType G2C_HGHHOperation
  73. message C2G_HGHHOperation // IRequest
  74. {
  75. int32 RpcId = 1;
  76. int32 OpType = 2; // 1吃 2碰 3杠 4胡 5过
  77. int32 Card = 3; // 杠:想杠的牌 吃:顺子第一张
  78. }
  79. message G2C_HGHHOperation // IResponse
  80. {
  81. int32 RpcId = 1;
  82. int32 Error = 2;
  83. string Message = 3;
  84. }
  85. message G2C_HGHHOperationPush // IActorMessage
  86. {
  87. RoomInfo info = 1; // 房间信息
  88. int32 OpType = 2; // 操作类型 1吃 2碰 3杠 4胡 5过
  89. }
  90. message G2C_HGHHSettlementPush // IActorMessage
  91. {
  92. int32 CurRound = 1; // 当前局数
  93. repeated PlayerInfo PlayerInfo = 2; // 输赢玩家数据
  94. }