InnerMessage.proto 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  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. bool NeedCache = 1;
  54. string CollectionName = 2;
  55. ComponentWithId Component = 3;
  56. }
  57. message DBSaveBatchResponse // IResponse
  58. {
  59. int32 RpcId = 90;
  60. int32 Error = 91;
  61. string Message = 92;
  62. }
  63. message DBSaveBatchRequest // IRequest
  64. {
  65. int32 RpcId = 90;
  66. bool NeedCache = 1;
  67. string CollectionName = 2;
  68. repeated ComponentWithId Components = 3;
  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. bool NeedCache = 3;
  82. }
  83. message DBQueryResponse // IResponse
  84. {
  85. int32 RpcId = 90;
  86. int32 Error = 91;
  87. string Message = 92;
  88. ComponentWithId Component = 1;
  89. }
  90. message DBQueryBatchRequest // IRequest
  91. {
  92. int32 RpcId = 90;
  93. string CollectionName = 1;
  94. repeated int64 IdList = 2;
  95. bool NeedCache = 3;
  96. }
  97. message DBQueryBatchResponse // IResponse
  98. {
  99. int32 RpcId = 90;
  100. int32 Error = 91;
  101. string Message = 92;
  102. repeated ComponentWithId Components = 1;
  103. }
  104. message DBQueryJsonRequest // IRequest
  105. {
  106. int32 RpcId = 90;
  107. string CollectionName = 1;
  108. string Json = 2;
  109. }
  110. message DBQueryJsonResponse // IResponse
  111. {
  112. int32 RpcId = 90;
  113. int32 Error = 91;
  114. string Message = 92;
  115. repeated ComponentWithId Components = 1;
  116. }
  117. message ObjectAddRequest // IRequest
  118. {
  119. int32 RpcId = 90;
  120. int64 Key = 1;
  121. int64 InstanceId = 2;
  122. }
  123. message ObjectAddResponse // IResponse
  124. {
  125. int32 RpcId = 90;
  126. int32 Error = 91;
  127. string Message = 92;
  128. }
  129. message ObjectRemoveRequest // IRequest
  130. {
  131. int32 RpcId = 90;
  132. int64 Key = 1;
  133. }
  134. message ObjectRemoveResponse // IResponse
  135. {
  136. int32 RpcId = 90;
  137. int32 Error = 91;
  138. string Message = 92;
  139. }
  140. message ObjectLockRequest // IRequest
  141. {
  142. int32 RpcId = 90;
  143. int64 Key = 1;
  144. int64 InstanceId = 2;
  145. int Time = 3;
  146. }
  147. message ObjectLockResponse // IResponse
  148. {
  149. int32 RpcId = 90;
  150. int32 Error = 91;
  151. string Message = 92;
  152. }
  153. message ObjectUnLockRequest // IRequest
  154. {
  155. int32 RpcId = 90;
  156. int64 Key = 1;
  157. int64 OldInstanceId = 2;
  158. int64 InstanceId = 3;
  159. }
  160. message ObjectUnLockResponse // IResponse
  161. {
  162. int32 RpcId = 90;
  163. int32 Error = 91;
  164. string Message = 92;
  165. }
  166. message ObjectGetRequest // IRequest
  167. {
  168. int32 RpcId = 90;
  169. int64 Key = 1;
  170. }
  171. message ObjectGetResponse // IResponse
  172. {
  173. int32 RpcId = 90;
  174. int32 Error = 91;
  175. string Message = 92;
  176. int64 InstanceId = 1;
  177. }
  178. message R2G_GetLoginKey // IRequest
  179. {
  180. int32 RpcId = 90;
  181. string Account = 1;
  182. }
  183. message G2R_GetLoginKey // IResponse
  184. {
  185. int32 RpcId = 90;
  186. int32 Error = 91;
  187. string Message = 92;
  188. int64 Key = 1;
  189. }
  190. message G2M_CreateUnit // IRequest
  191. {
  192. int32 RpcId = 90;
  193. int64 PlayerId = 1;
  194. int64 GateSessionId = 2;
  195. }
  196. message M2G_CreateUnit // IResponse
  197. {
  198. int32 RpcId = 90;
  199. int32 Error = 91;
  200. string Message = 92;
  201. // 自己的unit id
  202. int64 UnitId = 1;
  203. // 所有的unit
  204. repeated UnitInfo Units = 2;
  205. }
  206. message G2M_SessionDisconnect // IActorLocationMessage
  207. {
  208. int32 RpcId = 90;
  209. long ActorId = 94;
  210. }
  211. }