InnerMessage.proto 3.8 KB

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