InnerMessage.proto 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. syntax = "proto3";
  2. package ETModel;
  3. /// <summary>
  4. /// 传送unit
  5. /// </summary>
  6. message M2M_TrasferUnitRequest // IRequest
  7. {
  8. int32 RpcId = 90;
  9. Unit Unit = 1;
  10. }
  11. message M2M_TrasferUnitResponse // IResponse
  12. {
  13. int32 RpcId = 90;
  14. int32 Error = 91;
  15. string Message = 92;
  16. int64 InstanceId = 1;
  17. }
  18. message M2A_Reload // IRequest
  19. {
  20. int32 RpcId = 90;
  21. }
  22. message A2M_Reload // IResponse
  23. {
  24. int32 RpcId = 90;
  25. int32 Error = 91;
  26. string Message = 92;
  27. }
  28. message G2G_LockRequest // IRequest
  29. {
  30. int32 RpcId = 90;
  31. int64 Id = 1;
  32. string Address = 2;
  33. }
  34. message G2G_LockResponse // IResponse
  35. {
  36. int32 RpcId = 90;
  37. int32 Error = 91;
  38. string Message = 92;
  39. }
  40. message G2G_LockReleaseRequest // IRequest
  41. {
  42. int32 RpcId = 90;
  43. int64 Id = 1;
  44. string Address = 2;
  45. }
  46. message G2G_LockReleaseResponse // IResponse
  47. {
  48. int32 RpcId = 90;
  49. int32 Error = 91;
  50. string Message = 92;
  51. }
  52. message DBSaveRequest // IRequest
  53. {
  54. int32 RpcId = 90;
  55. string CollectionName = 1;
  56. ComponentWithId Component = 2;
  57. }
  58. message DBSaveBatchResponse // IResponse
  59. {
  60. int32 RpcId = 90;
  61. int32 Error = 91;
  62. string Message = 92;
  63. }
  64. message DBSaveBatchRequest // IRequest
  65. {
  66. int32 RpcId = 90;
  67. string CollectionName = 1;
  68. repeated ComponentWithId Components = 2;
  69. }
  70. message DBSaveResponse // IResponse
  71. {
  72. int32 RpcId = 90;
  73. int32 Error = 91;
  74. string Message = 92;
  75. }
  76. message DBQueryRequest // IRequest
  77. {
  78. int32 RpcId = 90;
  79. int64 Id = 1;
  80. string CollectionName = 2;
  81. }
  82. message DBQueryResponse // IResponse
  83. {
  84. int32 RpcId = 90;
  85. int32 Error = 91;
  86. string Message = 92;
  87. ComponentWithId Component = 1;
  88. }
  89. message DBQueryBatchRequest // IRequest
  90. {
  91. int32 RpcId = 90;
  92. string CollectionName = 1;
  93. repeated int64 IdList = 2;
  94. }
  95. message DBQueryBatchResponse // IResponse
  96. {
  97. int32 RpcId = 90;
  98. int32 Error = 91;
  99. string Message = 92;
  100. repeated ComponentWithId Components = 1;
  101. }
  102. message DBQueryJsonRequest // IRequest
  103. {
  104. int32 RpcId = 90;
  105. string CollectionName = 1;
  106. string Json = 2;
  107. }
  108. message DBQueryJsonResponse // IResponse
  109. {
  110. int32 RpcId = 90;
  111. int32 Error = 91;
  112. string Message = 92;
  113. repeated ComponentWithId Components = 1;
  114. }
  115. message ObjectAddRequest // IRequest
  116. {
  117. int32 RpcId = 90;
  118. int64 Key = 1;
  119. int64 InstanceId = 2;
  120. }
  121. message ObjectAddResponse // IResponse
  122. {
  123. int32 RpcId = 90;
  124. int32 Error = 91;
  125. string Message = 92;
  126. }
  127. message ObjectRemoveRequest // IRequest
  128. {
  129. int32 RpcId = 90;
  130. int64 Key = 1;
  131. }
  132. message ObjectRemoveResponse // IResponse
  133. {
  134. int32 RpcId = 90;
  135. int32 Error = 91;
  136. string Message = 92;
  137. }
  138. message ObjectLockRequest // IRequest
  139. {
  140. int32 RpcId = 90;
  141. int64 Key = 1;
  142. int64 InstanceId = 2;
  143. int32 Time = 3;
  144. }
  145. message ObjectLockResponse // IResponse
  146. {
  147. int32 RpcId = 90;
  148. int32 Error = 91;
  149. string Message = 92;
  150. }
  151. message ObjectUnLockRequest // IRequest
  152. {
  153. int32 RpcId = 90;
  154. int64 Key = 1;
  155. int64 OldInstanceId = 2;
  156. int64 InstanceId = 3;
  157. }
  158. message ObjectUnLockResponse // IResponse
  159. {
  160. int32 RpcId = 90;
  161. int32 Error = 91;
  162. string Message = 92;
  163. }
  164. message ObjectGetRequest // IRequest
  165. {
  166. int32 RpcId = 90;
  167. int64 Key = 1;
  168. }
  169. message ObjectGetResponse // IResponse
  170. {
  171. int32 RpcId = 90;
  172. int32 Error = 91;
  173. string Message = 92;
  174. int64 InstanceId = 1;
  175. }
  176. message R2G_GetLoginKey // IRequest
  177. {
  178. int32 RpcId = 90;
  179. string Account = 1;
  180. }
  181. message G2R_GetLoginKey // IResponse
  182. {
  183. int32 RpcId = 90;
  184. int32 Error = 91;
  185. string Message = 92;
  186. int64 Key = 1;
  187. }
  188. message G2M_CreateUnit // IRequest
  189. {
  190. int32 RpcId = 90;
  191. int64 PlayerId = 1;
  192. int64 GateSessionId = 2;
  193. }
  194. message M2G_CreateUnit // IResponse
  195. {
  196. int32 RpcId = 90;
  197. int32 Error = 91;
  198. string Message = 92;
  199. // 自己的unit id
  200. int64 UnitId = 1;
  201. // 所有的unit
  202. repeated UnitInfo Units = 2;
  203. }
  204. message G2M_SessionDisconnect // IActorLocationMessage
  205. {
  206. int32 RpcId = 90;
  207. int64 ActorId = 94;
  208. }