InnerMessage.cs 8.7 KB

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