InnerMessage.cs 7.3 KB

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