InnerMessage.cs 7.3 KB

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