OuterMessage_C_30001.proto 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. syntax = "proto3";
  2. package ET;
  3. import 'Common.proto';
  4. message HttpGetRouterResponse
  5. {
  6. repeated string Realms = 1;
  7. repeated string Routers = 2;
  8. }
  9. message RouterSync
  10. {
  11. uint32 ConnectId = 1;
  12. string Address = 2;
  13. }
  14. //ResponseType M2C_TestResponse
  15. message C2M_TestRequest // IActorLocationRequest
  16. {
  17. int32 RpcId = 1;
  18. string request = 2;
  19. }
  20. message M2C_TestResponse // IActorLocationResponse
  21. {
  22. int32 RpcId = 1;
  23. int32 Error = 2;
  24. string Message = 3;
  25. string response = 4;
  26. }
  27. //ResponseType Actor_TransferResponse
  28. message Actor_TransferRequest // IActorLocationRequest
  29. {
  30. int32 RpcId = 1;
  31. int32 MapIndex = 2;
  32. }
  33. message Actor_TransferResponse // IActorLocationResponse
  34. {
  35. int32 RpcId = 1;
  36. int32 Error = 2;
  37. string Message = 3;
  38. }
  39. //ResponseType G2C_Ping
  40. message C2G_Ping // IRequest
  41. {
  42. int32 RpcId = 1;
  43. }
  44. message G2C_Ping // IResponse
  45. {
  46. int32 RpcId = 1;
  47. int32 Error = 2;
  48. string Message = 3;
  49. int64 Time = 4;
  50. }
  51. message G2C_Test // IMessage
  52. {
  53. }
  54. //ResponseType M2C_Reload
  55. message C2M_Reload // IRequest
  56. {
  57. int32 RpcId = 1;
  58. string Account = 2;
  59. string Password = 3;
  60. }
  61. message M2C_Reload // IResponse
  62. {
  63. int32 RpcId = 1;
  64. int32 Error = 2;
  65. string Message = 3;
  66. }
  67. //ResponseType R2C_Login
  68. message C2R_Login // IRequest
  69. {
  70. int32 RpcId = 1;
  71. string Account = 2; // 帐号
  72. string Password = 3; // 密码
  73. }
  74. message R2C_Login // IResponse
  75. {
  76. int32 RpcId = 1;
  77. int32 Error = 2;
  78. string Message = 3;
  79. string Address = 4;
  80. int64 Key = 5;
  81. int64 GameId = 6;
  82. }
  83. //ResponseType G2C_LoginGame
  84. message C2G_LoginGame // IRequest
  85. {
  86. int32 RpcId = 1;
  87. int64 Key = 2; // 帐号
  88. int64 GameId = 3;
  89. }
  90. message G2C_LoginGame // IResponse
  91. {
  92. int32 RpcId = 1;
  93. int32 Error = 2;
  94. string Message = 3;
  95. Player Player = 4;
  96. bool IsInRoom = 5; // 是否在房间中
  97. }
  98. message G2C_TestHotfixMessage // IMessage
  99. {
  100. string Info = 1;
  101. }
  102. //ResponseType G2C_Benchmark
  103. message C2G_Benchmark // IRequest
  104. {
  105. int32 RpcId = 1;
  106. }
  107. message G2C_Benchmark // IResponse
  108. {
  109. int32 RpcId = 1;
  110. int32 Error = 2;
  111. string Message = 3;
  112. }