InnerMessage.cs 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381
  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 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 string CollectionName { get; set; }
  81. public List<ComponentWithId> Components = new List<ComponentWithId>();
  82. }
  83. [Message(InnerOpcode.DBSaveResponse)]
  84. public partial class DBSaveResponse: IResponse
  85. {
  86. public int RpcId { get; set; }
  87. public int Error { get; set; }
  88. public string Message { get; set; }
  89. }
  90. [Message(InnerOpcode.DBQueryRequest)]
  91. public partial class DBQueryRequest: IRequest
  92. {
  93. public int RpcId { get; set; }
  94. public long Id { get; set; }
  95. public string CollectionName { get; set; }
  96. }
  97. [Message(InnerOpcode.DBQueryResponse)]
  98. public partial class DBQueryResponse: IResponse
  99. {
  100. public int RpcId { get; set; }
  101. public int Error { get; set; }
  102. public string Message { get; set; }
  103. public ComponentWithId Component { get; set; }
  104. }
  105. [Message(InnerOpcode.DBQueryBatchRequest)]
  106. public partial class DBQueryBatchRequest: IRequest
  107. {
  108. public int RpcId { get; set; }
  109. public string CollectionName { get; set; }
  110. public List<long> IdList = new List<long>();
  111. }
  112. [Message(InnerOpcode.DBQueryBatchResponse)]
  113. public partial class DBQueryBatchResponse: IResponse
  114. {
  115. public int RpcId { get; set; }
  116. public int Error { get; set; }
  117. public string Message { get; set; }
  118. public List<ComponentWithId> Components = new List<ComponentWithId>();
  119. }
  120. [Message(InnerOpcode.DBQueryJsonRequest)]
  121. public partial class DBQueryJsonRequest: IRequest
  122. {
  123. public int RpcId { get; set; }
  124. public string CollectionName { get; set; }
  125. public string Json { get; set; }
  126. }
  127. [Message(InnerOpcode.DBQueryJsonResponse)]
  128. public partial class DBQueryJsonResponse: IResponse
  129. {
  130. public int RpcId { get; set; }
  131. public int Error { get; set; }
  132. public string Message { get; set; }
  133. public List<ComponentWithId> Components = new List<ComponentWithId>();
  134. }
  135. [Message(InnerOpcode.ObjectAddRequest)]
  136. public partial class ObjectAddRequest: IRequest
  137. {
  138. public int RpcId { get; set; }
  139. public long Key { get; set; }
  140. public long InstanceId { get; set; }
  141. }
  142. [Message(InnerOpcode.ObjectAddResponse)]
  143. public partial class ObjectAddResponse: IResponse
  144. {
  145. public int RpcId { get; set; }
  146. public int Error { get; set; }
  147. public string Message { get; set; }
  148. }
  149. [Message(InnerOpcode.ObjectRemoveRequest)]
  150. public partial class ObjectRemoveRequest: IRequest
  151. {
  152. public int RpcId { get; set; }
  153. public long Key { get; set; }
  154. }
  155. [Message(InnerOpcode.ObjectRemoveResponse)]
  156. public partial class ObjectRemoveResponse: IResponse
  157. {
  158. public int RpcId { get; set; }
  159. public int Error { get; set; }
  160. public string Message { get; set; }
  161. }
  162. [Message(InnerOpcode.ObjectLockRequest)]
  163. public partial class ObjectLockRequest: IRequest
  164. {
  165. public int RpcId { get; set; }
  166. public long Key { get; set; }
  167. public long InstanceId { get; set; }
  168. public int Time { get; set; }
  169. }
  170. [Message(InnerOpcode.ObjectLockResponse)]
  171. public partial class ObjectLockResponse: IResponse
  172. {
  173. public int RpcId { get; set; }
  174. public int Error { get; set; }
  175. public string Message { get; set; }
  176. }
  177. [Message(InnerOpcode.ObjectUnLockRequest)]
  178. public partial class ObjectUnLockRequest: IRequest
  179. {
  180. public int RpcId { get; set; }
  181. public long Key { get; set; }
  182. public long OldInstanceId { get; set; }
  183. public long InstanceId { get; set; }
  184. }
  185. [Message(InnerOpcode.ObjectUnLockResponse)]
  186. public partial class ObjectUnLockResponse: IResponse
  187. {
  188. public int RpcId { get; set; }
  189. public int Error { get; set; }
  190. public string Message { get; set; }
  191. }
  192. [Message(InnerOpcode.ObjectGetRequest)]
  193. public partial class ObjectGetRequest: IRequest
  194. {
  195. public int RpcId { get; set; }
  196. public long Key { get; set; }
  197. }
  198. [Message(InnerOpcode.ObjectGetResponse)]
  199. public partial class ObjectGetResponse: IResponse
  200. {
  201. public int RpcId { get; set; }
  202. public int Error { get; set; }
  203. public string Message { get; set; }
  204. public long InstanceId { get; set; }
  205. }
  206. [Message(InnerOpcode.R2G_GetLoginKey)]
  207. public partial class R2G_GetLoginKey: IRequest
  208. {
  209. public int RpcId { get; set; }
  210. public string Account { get; set; }
  211. }
  212. [Message(InnerOpcode.G2R_GetLoginKey)]
  213. public partial class G2R_GetLoginKey: IResponse
  214. {
  215. public int RpcId { get; set; }
  216. public int Error { get; set; }
  217. public string Message { get; set; }
  218. public long Key { get; set; }
  219. }
  220. [Message(InnerOpcode.G2M_CreateUnit)]
  221. public partial class G2M_CreateUnit: IRequest
  222. {
  223. public int RpcId { get; set; }
  224. public long PlayerId { get; set; }
  225. public long GateSessionId { get; set; }
  226. }
  227. [Message(InnerOpcode.M2G_CreateUnit)]
  228. public partial class M2G_CreateUnit: IResponse
  229. {
  230. public int RpcId { get; set; }
  231. public int Error { get; set; }
  232. public string Message { get; set; }
  233. // 自己的unit id
  234. // 自己的unit id
  235. public long UnitId { get; set; }
  236. // 所有的unit
  237. // 所有的unit
  238. public List<UnitInfo> Units = new List<UnitInfo>();
  239. }
  240. [Message(InnerOpcode.G2M_SessionDisconnect)]
  241. public partial class G2M_SessionDisconnect: IActorLocationMessage
  242. {
  243. public int RpcId { get; set; }
  244. public long ActorId { get; set; }
  245. }
  246. }