InnerMessage.proto 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. syntax = "proto3";
  2. package ET;
  3. /// <summary>
  4. /// 传送unit
  5. /// </summary>
  6. //ResponseType M2M_TrasferUnitResponse
  7. message M2M_TrasferUnitRequest // IActorRequest
  8. {
  9. int32 RpcId = 90;
  10. int64 ActorId = 93;
  11. Unit Unit = 1;
  12. }
  13. message M2M_TrasferUnitResponse // IActorResponse
  14. {
  15. int32 RpcId = 90;
  16. int32 Error = 91;
  17. string Message = 92;
  18. int64 InstanceId = 1;
  19. }
  20. //ResponseType A2M_Reload
  21. message M2A_Reload // IActorRequest
  22. {
  23. int32 RpcId = 90;
  24. int64 ActorId = 93;
  25. }
  26. message A2M_Reload // IActorResponse
  27. {
  28. int32 RpcId = 90;
  29. int32 Error = 91;
  30. string Message = 92;
  31. }
  32. //ResponseType G2G_LockResponse
  33. message G2G_LockRequest // IActorRequest
  34. {
  35. int32 RpcId = 90;
  36. int64 ActorId = 93;
  37. int64 Id = 1;
  38. string Address = 2;
  39. }
  40. message G2G_LockResponse // IActorResponse
  41. {
  42. int32 RpcId = 90;
  43. int32 Error = 91;
  44. string Message = 92;
  45. }
  46. //ResponseType G2G_LockReleaseResponse
  47. message G2G_LockReleaseRequest // IActorRequest
  48. {
  49. int32 RpcId = 90;
  50. int64 ActorId = 93;
  51. int64 Id = 1;
  52. string Address = 2;
  53. }
  54. message G2G_LockReleaseResponse // IActorResponse
  55. {
  56. int32 RpcId = 90;
  57. int32 Error = 91;
  58. string Message = 92;
  59. }
  60. //ResponseType ObjectAddResponse
  61. message ObjectAddRequest // IActorRequest
  62. {
  63. int32 RpcId = 90;
  64. int64 ActorId = 93;
  65. int64 Key = 1;
  66. int64 InstanceId = 2;
  67. }
  68. message ObjectAddResponse // IActorResponse
  69. {
  70. int32 RpcId = 90;
  71. int32 Error = 91;
  72. string Message = 92;
  73. }
  74. //ResponseType ObjectLockResponse
  75. message ObjectLockRequest // IActorRequest
  76. {
  77. int32 RpcId = 90;
  78. int64 ActorId = 93;
  79. int64 Key = 1;
  80. int64 InstanceId = 2;
  81. int32 Time = 3;
  82. }
  83. message ObjectLockResponse // IActorResponse
  84. {
  85. int32 RpcId = 90;
  86. int32 Error = 91;
  87. string Message = 92;
  88. }
  89. //ResponseType ObjectUnLockResponse
  90. message ObjectUnLockRequest // IActorRequest
  91. {
  92. int32 RpcId = 90;
  93. int64 ActorId = 93;
  94. int64 Key = 1;
  95. int64 OldInstanceId = 2;
  96. int64 InstanceId = 3;
  97. }
  98. message ObjectUnLockResponse // IActorResponse
  99. {
  100. int32 RpcId = 90;
  101. int32 Error = 91;
  102. string Message = 92;
  103. }
  104. //ResponseType ObjectRemoveResponse
  105. message ObjectRemoveRequest // IActorRequest
  106. {
  107. int32 RpcId = 90;
  108. int64 ActorId = 93;
  109. int64 Key = 1;
  110. }
  111. message ObjectRemoveResponse // IActorResponse
  112. {
  113. int32 RpcId = 90;
  114. int32 Error = 91;
  115. string Message = 92;
  116. }
  117. //ResponseType ObjectGetResponse
  118. message ObjectGetRequest // IActorRequest
  119. {
  120. int32 RpcId = 90;
  121. int64 ActorId = 93;
  122. int64 Key = 1;
  123. }
  124. message ObjectGetResponse // IActorResponse
  125. {
  126. int32 RpcId = 90;
  127. int32 Error = 91;
  128. string Message = 92;
  129. int64 InstanceId = 1;
  130. }
  131. //ResponseType G2R_GetLoginKey
  132. message R2G_GetLoginKey // IActorRequest
  133. {
  134. int32 RpcId = 90;
  135. int64 ActorId = 93;
  136. string Account = 1;
  137. }
  138. message G2R_GetLoginKey // IActorResponse
  139. {
  140. int32 RpcId = 90;
  141. int32 Error = 91;
  142. string Message = 92;
  143. int64 Key = 1;
  144. int64 GateId = 2;
  145. }
  146. //ResponseType M2G_CreateUnit
  147. message G2M_CreateUnit // IActorRequest
  148. {
  149. int32 RpcId = 90;
  150. int64 ActorId = 93;
  151. int64 PlayerId = 1;
  152. int64 GateSessionId = 2;
  153. }
  154. message M2G_CreateUnit // IActorResponse
  155. {
  156. int32 RpcId = 90;
  157. int32 Error = 91;
  158. string Message = 92;
  159. // 自己的unit id
  160. int64 UnitId = 1;
  161. // 所有的unit
  162. repeated UnitInfo Units = 2;
  163. }
  164. message G2M_SessionDisconnect // IActorLocationMessage
  165. {
  166. int32 RpcId = 90;
  167. int64 ActorId = 94;
  168. }