InnerMessage.cs 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511
  1. using ProtoBuf;
  2. using ETModel;
  3. using System.Collections.Generic;
  4. using MongoDB.Bson.Serialization.Attributes;
  5. namespace ETHotfix
  6. {
  7. /// <summary>
  8. /// 传送unit
  9. /// </summary>
  10. [Message(InnerOpcode.M2M_TrasferUnitRequest)]
  11. [ProtoContract]
  12. public partial class M2M_TrasferUnitRequest: IRequest
  13. {
  14. [ProtoMember(90, IsRequired = true)]
  15. public int RpcId { get; set; }
  16. [ProtoMember(1, IsRequired = true)]
  17. public Unit Unit;
  18. }
  19. [Message(InnerOpcode.M2M_TrasferUnitResponse)]
  20. [ProtoContract]
  21. public partial class M2M_TrasferUnitResponse: IResponse
  22. {
  23. [ProtoMember(90, IsRequired = true)]
  24. public int RpcId { get; set; }
  25. [ProtoMember(91, IsRequired = true)]
  26. public int Error { get; set; }
  27. [ProtoMember(92, IsRequired = true)]
  28. public string Message { get; set; }
  29. }
  30. [Message(InnerOpcode.M2A_Reload)]
  31. [ProtoContract]
  32. public partial class M2A_Reload: IRequest
  33. {
  34. [ProtoMember(90, IsRequired = true)]
  35. public int RpcId { get; set; }
  36. }
  37. [Message(InnerOpcode.A2M_Reload)]
  38. [ProtoContract]
  39. public partial class A2M_Reload: IResponse
  40. {
  41. [ProtoMember(90, IsRequired = true)]
  42. public int RpcId { get; set; }
  43. [ProtoMember(91, IsRequired = true)]
  44. public int Error { get; set; }
  45. [ProtoMember(92, IsRequired = true)]
  46. public string Message { get; set; }
  47. }
  48. [Message(InnerOpcode.G2G_LockRequest)]
  49. [ProtoContract]
  50. public partial class G2G_LockRequest: IRequest
  51. {
  52. [ProtoMember(90, IsRequired = true)]
  53. public int RpcId { get; set; }
  54. [ProtoMember(1, IsRequired = true)]
  55. public long Id;
  56. [ProtoMember(2, IsRequired = true)]
  57. public string Address;
  58. }
  59. [Message(InnerOpcode.G2G_LockResponse)]
  60. [ProtoContract]
  61. public partial class G2G_LockResponse: IResponse
  62. {
  63. [ProtoMember(90, IsRequired = true)]
  64. public int RpcId { get; set; }
  65. [ProtoMember(91, IsRequired = true)]
  66. public int Error { get; set; }
  67. [ProtoMember(92, IsRequired = true)]
  68. public string Message { get; set; }
  69. }
  70. [Message(InnerOpcode.G2G_LockReleaseRequest)]
  71. [ProtoContract]
  72. public partial class G2G_LockReleaseRequest: IRequest
  73. {
  74. [ProtoMember(90, IsRequired = true)]
  75. public int RpcId { get; set; }
  76. [ProtoMember(1, IsRequired = true)]
  77. public long Id;
  78. [ProtoMember(2, IsRequired = true)]
  79. public string Address;
  80. }
  81. [Message(InnerOpcode.G2G_LockReleaseResponse)]
  82. [ProtoContract]
  83. public partial class G2G_LockReleaseResponse: IResponse
  84. {
  85. [ProtoMember(90, IsRequired = true)]
  86. public int RpcId { get; set; }
  87. [ProtoMember(91, IsRequired = true)]
  88. public int Error { get; set; }
  89. [ProtoMember(92, IsRequired = true)]
  90. public string Message { get; set; }
  91. }
  92. [Message(InnerOpcode.DBSaveRequest)]
  93. [ProtoContract]
  94. public partial class DBSaveRequest: IRequest
  95. {
  96. [ProtoMember(90, IsRequired = true)]
  97. public int RpcId { get; set; }
  98. [ProtoMember(1, IsRequired = true)]
  99. public bool NeedCache;
  100. [ProtoMember(2, IsRequired = true)]
  101. public string CollectionName;
  102. [ProtoMember(3, IsRequired = true)]
  103. public ComponentWithId Component;
  104. }
  105. [Message(InnerOpcode.DBSaveBatchResponse)]
  106. [ProtoContract]
  107. public partial class DBSaveBatchResponse: IResponse
  108. {
  109. [ProtoMember(90, IsRequired = true)]
  110. public int RpcId { get; set; }
  111. [ProtoMember(91, IsRequired = true)]
  112. public int Error { get; set; }
  113. [ProtoMember(92, IsRequired = true)]
  114. public string Message { get; set; }
  115. }
  116. [Message(InnerOpcode.DBSaveBatchRequest)]
  117. [ProtoContract]
  118. public partial class DBSaveBatchRequest: IRequest
  119. {
  120. [ProtoMember(90, IsRequired = true)]
  121. public int RpcId { get; set; }
  122. [ProtoMember(1, IsRequired = true)]
  123. public bool NeedCache;
  124. [ProtoMember(2, IsRequired = true)]
  125. public string CollectionName;
  126. [ProtoMember(3)]
  127. public List<ComponentWithId> Components = new List<ComponentWithId>();
  128. }
  129. [Message(InnerOpcode.DBSaveResponse)]
  130. [ProtoContract]
  131. public partial class DBSaveResponse: IResponse
  132. {
  133. [ProtoMember(90, IsRequired = true)]
  134. public int RpcId { get; set; }
  135. [ProtoMember(91, IsRequired = true)]
  136. public int Error { get; set; }
  137. [ProtoMember(92, IsRequired = true)]
  138. public string Message { get; set; }
  139. }
  140. [Message(InnerOpcode.DBQueryRequest)]
  141. [ProtoContract]
  142. public partial class DBQueryRequest: IRequest
  143. {
  144. [ProtoMember(90, IsRequired = true)]
  145. public int RpcId { get; set; }
  146. [ProtoMember(1, IsRequired = true)]
  147. public long Id;
  148. [ProtoMember(2, IsRequired = true)]
  149. public string CollectionName;
  150. [ProtoMember(3, IsRequired = true)]
  151. public bool NeedCache;
  152. }
  153. [Message(InnerOpcode.DBQueryResponse)]
  154. [ProtoContract]
  155. public partial class DBQueryResponse: IResponse
  156. {
  157. [ProtoMember(90, IsRequired = true)]
  158. public int RpcId { get; set; }
  159. [ProtoMember(91, IsRequired = true)]
  160. public int Error { get; set; }
  161. [ProtoMember(92, IsRequired = true)]
  162. public string Message { get; set; }
  163. [ProtoMember(1, IsRequired = true)]
  164. public ComponentWithId Component;
  165. }
  166. [Message(InnerOpcode.DBQueryBatchRequest)]
  167. [ProtoContract]
  168. public partial class DBQueryBatchRequest: IRequest
  169. {
  170. [ProtoMember(90, IsRequired = true)]
  171. public int RpcId { get; set; }
  172. [ProtoMember(1, IsRequired = true)]
  173. public string CollectionName;
  174. [ProtoMember(2)]
  175. public List<long> IdList = new List<long>();
  176. [ProtoMember(3, IsRequired = true)]
  177. public bool NeedCache;
  178. }
  179. [Message(InnerOpcode.DBQueryBatchResponse)]
  180. [ProtoContract]
  181. public partial class DBQueryBatchResponse: IResponse
  182. {
  183. [ProtoMember(90, IsRequired = true)]
  184. public int RpcId { get; set; }
  185. [ProtoMember(91, IsRequired = true)]
  186. public int Error { get; set; }
  187. [ProtoMember(92, IsRequired = true)]
  188. public string Message { get; set; }
  189. [ProtoMember(1)]
  190. public List<ComponentWithId> Components = new List<ComponentWithId>();
  191. }
  192. [Message(InnerOpcode.DBQueryJsonRequest)]
  193. [ProtoContract]
  194. public partial class DBQueryJsonRequest: IRequest
  195. {
  196. [ProtoMember(90, IsRequired = true)]
  197. public int RpcId { get; set; }
  198. [ProtoMember(1, IsRequired = true)]
  199. public string CollectionName;
  200. [ProtoMember(2, IsRequired = true)]
  201. public string Json;
  202. }
  203. [Message(InnerOpcode.DBQueryJsonResponse)]
  204. [ProtoContract]
  205. public partial class DBQueryJsonResponse: IResponse
  206. {
  207. [ProtoMember(90, IsRequired = true)]
  208. public int RpcId { get; set; }
  209. [ProtoMember(91, IsRequired = true)]
  210. public int Error { get; set; }
  211. [ProtoMember(92, IsRequired = true)]
  212. public string Message { get; set; }
  213. [ProtoMember(1)]
  214. public List<ComponentWithId> Components = new List<ComponentWithId>();
  215. }
  216. [Message(InnerOpcode.ObjectAddRequest)]
  217. [ProtoContract]
  218. public partial class ObjectAddRequest: IRequest
  219. {
  220. [ProtoMember(90, IsRequired = true)]
  221. public int RpcId { get; set; }
  222. [ProtoMember(1, IsRequired = true)]
  223. public long Key;
  224. [ProtoMember(2, IsRequired = true)]
  225. public int AppId;
  226. }
  227. [Message(InnerOpcode.ObjectAddResponse)]
  228. [ProtoContract]
  229. public partial class ObjectAddResponse: IResponse
  230. {
  231. [ProtoMember(90, IsRequired = true)]
  232. public int RpcId { get; set; }
  233. [ProtoMember(91, IsRequired = true)]
  234. public int Error { get; set; }
  235. [ProtoMember(92, IsRequired = true)]
  236. public string Message { get; set; }
  237. }
  238. [Message(InnerOpcode.ObjectRemoveRequest)]
  239. [ProtoContract]
  240. public partial class ObjectRemoveRequest: IRequest
  241. {
  242. [ProtoMember(90, IsRequired = true)]
  243. public int RpcId { get; set; }
  244. [ProtoMember(1, IsRequired = true)]
  245. public long Key;
  246. }
  247. [Message(InnerOpcode.ObjectRemoveResponse)]
  248. [ProtoContract]
  249. public partial class ObjectRemoveResponse: IResponse
  250. {
  251. [ProtoMember(90, IsRequired = true)]
  252. public int RpcId { get; set; }
  253. [ProtoMember(91, IsRequired = true)]
  254. public int Error { get; set; }
  255. [ProtoMember(92, IsRequired = true)]
  256. public string Message { get; set; }
  257. }
  258. [Message(InnerOpcode.ObjectLockRequest)]
  259. [ProtoContract]
  260. public partial class ObjectLockRequest: IRequest
  261. {
  262. [ProtoMember(90, IsRequired = true)]
  263. public int RpcId { get; set; }
  264. [ProtoMember(1, IsRequired = true)]
  265. public long Key;
  266. [ProtoMember(2, IsRequired = true)]
  267. public int LockAppId;
  268. [ProtoMember(3, IsRequired = true)]
  269. public int Time;
  270. }
  271. [Message(InnerOpcode.ObjectLockResponse)]
  272. [ProtoContract]
  273. public partial class ObjectLockResponse: IResponse
  274. {
  275. [ProtoMember(90, IsRequired = true)]
  276. public int RpcId { get; set; }
  277. [ProtoMember(91, IsRequired = true)]
  278. public int Error { get; set; }
  279. [ProtoMember(92, IsRequired = true)]
  280. public string Message { get; set; }
  281. }
  282. [Message(InnerOpcode.ObjectUnLockRequest)]
  283. [ProtoContract]
  284. public partial class ObjectUnLockRequest: IRequest
  285. {
  286. [ProtoMember(90, IsRequired = true)]
  287. public int RpcId { get; set; }
  288. [ProtoMember(1, IsRequired = true)]
  289. public long Key;
  290. [ProtoMember(2, IsRequired = true)]
  291. public int UnLockAppId;
  292. [ProtoMember(3, IsRequired = true)]
  293. public int AppId;
  294. }
  295. [Message(InnerOpcode.ObjectUnLockResponse)]
  296. [ProtoContract]
  297. public partial class ObjectUnLockResponse: IResponse
  298. {
  299. [ProtoMember(90, IsRequired = true)]
  300. public int RpcId { get; set; }
  301. [ProtoMember(91, IsRequired = true)]
  302. public int Error { get; set; }
  303. [ProtoMember(92, IsRequired = true)]
  304. public string Message { get; set; }
  305. }
  306. [Message(InnerOpcode.ObjectGetRequest)]
  307. [ProtoContract]
  308. public partial class ObjectGetRequest: IRequest
  309. {
  310. [ProtoMember(90, IsRequired = true)]
  311. public int RpcId { get; set; }
  312. [ProtoMember(1, IsRequired = true)]
  313. public long Key;
  314. }
  315. [Message(InnerOpcode.ObjectGetResponse)]
  316. [ProtoContract]
  317. public partial class ObjectGetResponse: IResponse
  318. {
  319. [ProtoMember(90, IsRequired = true)]
  320. public int RpcId { get; set; }
  321. [ProtoMember(91, IsRequired = true)]
  322. public int Error { get; set; }
  323. [ProtoMember(92, IsRequired = true)]
  324. public string Message { get; set; }
  325. [ProtoMember(1, IsRequired = true)]
  326. public int AppId;
  327. }
  328. [Message(InnerOpcode.R2G_GetLoginKey)]
  329. [ProtoContract]
  330. public partial class R2G_GetLoginKey: IRequest
  331. {
  332. [ProtoMember(90, IsRequired = true)]
  333. public int RpcId { get; set; }
  334. [ProtoMember(1, IsRequired = true)]
  335. public string Account;
  336. }
  337. [Message(InnerOpcode.G2R_GetLoginKey)]
  338. [ProtoContract]
  339. public partial class G2R_GetLoginKey: IResponse
  340. {
  341. [ProtoMember(90, IsRequired = true)]
  342. public int RpcId { get; set; }
  343. [ProtoMember(91, IsRequired = true)]
  344. public int Error { get; set; }
  345. [ProtoMember(92, IsRequired = true)]
  346. public string Message { get; set; }
  347. [ProtoMember(1, IsRequired = true)]
  348. public long Key;
  349. }
  350. [Message(InnerOpcode.G2M_CreateUnit)]
  351. [ProtoContract]
  352. public partial class G2M_CreateUnit: IRequest
  353. {
  354. [ProtoMember(90, IsRequired = true)]
  355. public int RpcId { get; set; }
  356. [ProtoMember(1, IsRequired = true)]
  357. public long PlayerId;
  358. [ProtoMember(2, IsRequired = true)]
  359. public long GateSessionId;
  360. }
  361. [Message(InnerOpcode.M2G_CreateUnit)]
  362. [ProtoContract]
  363. public partial class M2G_CreateUnit: IResponse
  364. {
  365. [ProtoMember(90, IsRequired = true)]
  366. public int RpcId { get; set; }
  367. [ProtoMember(91, IsRequired = true)]
  368. public int Error { get; set; }
  369. [ProtoMember(92, IsRequired = true)]
  370. public string Message { get; set; }
  371. [ProtoMember(1, IsRequired = true)]
  372. public long UnitId;
  373. [ProtoMember(2, IsRequired = true)]
  374. public int Count;
  375. }
  376. }