InnerMessage.cs 11 KB

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