_exchangeHandler.cs 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // This code was generated by a tool.
  4. //
  5. // Changes to this file may cause incorrect behavior and will be lost if
  6. // the code is regenerated.
  7. // </auto-generated>
  8. //------------------------------------------------------------------------------
  9. // ***************************************************************************
  10. // * 作者= 马章勇
  11. // * 创建时间= 2016-1-20
  12. // * 用途= 兑换处理器
  13. // ***************************************************************************
  14. // Generated from: exchangeHandler.proto
  15. // Note: requires additional types generated from: item.proto
  16. namespace pomelo.area
  17. {
  18. //---------------------------------------------------------------------------------------
  19. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GetExchangeLabelRequest")]
  20. public partial class GetExchangeLabelRequest : global::ProtoBuf.IExtensible
  21. {
  22. public GetExchangeLabelRequest() {}
  23. private string _c2s_npcId;
  24. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"c2s_npcId", DataFormat = global::ProtoBuf.DataFormat.Default)]
  25. public string c2s_npcId
  26. {
  27. get { return _c2s_npcId; }
  28. set { _c2s_npcId = value; }
  29. }
  30. private global::ProtoBuf.IExtension extensionObject;
  31. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  32. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  33. }
  34. //---------------------------------------------------------------------------------------
  35. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GetExchangeListRequest")]
  36. public partial class GetExchangeListRequest : global::ProtoBuf.IExtensible
  37. {
  38. public GetExchangeListRequest() {}
  39. private string _c2s_npcId;
  40. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"c2s_npcId", DataFormat = global::ProtoBuf.DataFormat.Default)]
  41. public string c2s_npcId
  42. {
  43. get { return _c2s_npcId; }
  44. set { _c2s_npcId = value; }
  45. }
  46. private int _c2s_typeId;
  47. /// <summary>
  48. /// 标签id
  49. /// </summary>
  50. [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"c2s_typeId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  51. public int c2s_typeId
  52. {
  53. get { return _c2s_typeId; }
  54. set { _c2s_typeId = value; }
  55. }
  56. private global::ProtoBuf.IExtension extensionObject;
  57. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  58. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  59. }
  60. //---------------------------------------------------------------------------------------
  61. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ExchangeItemRequest")]
  62. public partial class ExchangeItemRequest : global::ProtoBuf.IExtensible
  63. {
  64. public ExchangeItemRequest() {}
  65. private int _c2s_typeId;
  66. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"c2s_typeId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  67. public int c2s_typeId
  68. {
  69. get { return _c2s_typeId; }
  70. set { _c2s_typeId = value; }
  71. }
  72. private int _c2s_itemId;
  73. [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"c2s_itemId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  74. public int c2s_itemId
  75. {
  76. get { return _c2s_itemId; }
  77. set { _c2s_itemId = value; }
  78. }
  79. private int _c2s_num;
  80. /// <summary>
  81. /// 数量
  82. /// </summary>
  83. [global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"c2s_num", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  84. public int c2s_num
  85. {
  86. get { return _c2s_num; }
  87. set { _c2s_num = value; }
  88. }
  89. private string _c2s_npcId = "";
  90. [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"c2s_npcId", DataFormat = global::ProtoBuf.DataFormat.Default)]
  91. [global::System.ComponentModel.DefaultValue("")]
  92. public string c2s_npcId
  93. {
  94. get { return _c2s_npcId; }
  95. set { _c2s_npcId = value; }
  96. }
  97. private global::ProtoBuf.IExtension extensionObject;
  98. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  99. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  100. }
  101. //---------------------------------------------------------------------------------------
  102. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"Condition")]
  103. public partial class Condition : global::ProtoBuf.IExtensible
  104. {
  105. public Condition() {}
  106. private pomelo.area.ConditionType _type = pomelo.area.ConditionType.CONDITION_LEVEL;
  107. /// <summary>
  108. /// 类型
  109. /// </summary>
  110. [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  111. [global::System.ComponentModel.DefaultValue(pomelo.area.ConditionType.CONDITION_LEVEL)]
  112. public pomelo.area.ConditionType type
  113. {
  114. get { return _type; }
  115. set { _type = value; }
  116. }
  117. private int _number = default(int);
  118. /// <summary>
  119. /// 级别,点数等
  120. /// </summary>
  121. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"number", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  122. [global::System.ComponentModel.DefaultValue(default(int))]
  123. public int number
  124. {
  125. get { return _number; }
  126. set { _number = value; }
  127. }
  128. private global::ProtoBuf.IExtension extensionObject;
  129. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  130. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  131. }
  132. //---------------------------------------------------------------------------------------
  133. /// <summary>
  134. /// 货币类型
  135. /// </summary>
  136. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"MoneyInfo")]
  137. public partial class MoneyInfo : global::ProtoBuf.IExtensible
  138. {
  139. public MoneyInfo() {}
  140. private pomelo.area.MoneyType _type;
  141. /// <summary>
  142. /// 货币类型
  143. /// </summary>
  144. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  145. public pomelo.area.MoneyType type
  146. {
  147. get { return _type; }
  148. set { _type = value; }
  149. }
  150. private int _value;
  151. /// <summary>
  152. /// 货币数量
  153. /// </summary>
  154. [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"value", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  155. public int value
  156. {
  157. get { return _value; }
  158. set { _value = value; }
  159. }
  160. private global::ProtoBuf.IExtension extensionObject;
  161. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  162. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  163. }
  164. //---------------------------------------------------------------------------------------
  165. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ExchangeInfo")]
  166. public partial class ExchangeInfo : global::ProtoBuf.IExtensible
  167. {
  168. public ExchangeInfo() {}
  169. private int _typeId = default(int);
  170. /// <summary>
  171. /// 类型Id
  172. /// </summary>
  173. [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"typeId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  174. [global::System.ComponentModel.DefaultValue(default(int))]
  175. public int typeId
  176. {
  177. get { return _typeId; }
  178. set { _typeId = value; }
  179. }
  180. private int _itemId = default(int);
  181. /// <summary>
  182. /// 编号Id
  183. /// </summary>
  184. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"itemId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  185. [global::System.ComponentModel.DefaultValue(default(int))]
  186. public int itemId
  187. {
  188. get { return _itemId; }
  189. set { _itemId = value; }
  190. }
  191. private string _itemShowName = "";
  192. /// <summary>
  193. /// 物品显示名称
  194. /// </summary>
  195. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"itemShowName", DataFormat = global::ProtoBuf.DataFormat.Default)]
  196. [global::System.ComponentModel.DefaultValue("")]
  197. public string itemShowName
  198. {
  199. get { return _itemShowName; }
  200. set { _itemShowName = value; }
  201. }
  202. private pomelo.item.MiniItem _item = null;
  203. /// <summary>
  204. /// 兑换的物品
  205. /// </summary>
  206. [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"item", DataFormat = global::ProtoBuf.DataFormat.Default)]
  207. [global::System.ComponentModel.DefaultValue(null)]
  208. public pomelo.item.MiniItem item
  209. {
  210. get { return _item; }
  211. set { _item = value; }
  212. }
  213. private int _scoreRatio = default(int);
  214. /// <summary>
  215. /// 获得装备基础评分
  216. /// </summary>
  217. [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"scoreRatio", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  218. [global::System.ComponentModel.DefaultValue(default(int))]
  219. public int scoreRatio
  220. {
  221. get { return _scoreRatio; }
  222. set { _scoreRatio = value; }
  223. }
  224. private string _itemDes = "";
  225. /// <summary>
  226. /// 物品描述
  227. /// </summary>
  228. [global::ProtoBuf.ProtoMember(6, IsRequired = false, Name=@"itemDes", DataFormat = global::ProtoBuf.DataFormat.Default)]
  229. [global::System.ComponentModel.DefaultValue("")]
  230. public string itemDes
  231. {
  232. get { return _itemDes; }
  233. set { _itemDes = value; }
  234. }
  235. private readonly global::System.Collections.Generic.List<pomelo.area.Condition> _condition = new global::System.Collections.Generic.List<pomelo.area.Condition>();
  236. /// <summary>
  237. /// 前提条件
  238. /// </summary>
  239. [global::ProtoBuf.ProtoMember(7, Name=@"condition", DataFormat = global::ProtoBuf.DataFormat.Default)]
  240. public global::System.Collections.Generic.List<pomelo.area.Condition> condition
  241. {
  242. get { return _condition; }
  243. }
  244. private readonly global::System.Collections.Generic.List<pomelo.area.MoneyInfo> _needMoney = new global::System.Collections.Generic.List<pomelo.area.MoneyInfo>();
  245. /// <summary>
  246. /// 需要的货币
  247. /// </summary>
  248. [global::ProtoBuf.ProtoMember(8, Name=@"needMoney", DataFormat = global::ProtoBuf.DataFormat.Default)]
  249. public global::System.Collections.Generic.List<pomelo.area.MoneyInfo> needMoney
  250. {
  251. get { return _needMoney; }
  252. }
  253. private readonly global::System.Collections.Generic.List<pomelo.item.MiniItem> _needItem = new global::System.Collections.Generic.List<pomelo.item.MiniItem>();
  254. /// <summary>
  255. /// 需要的道具
  256. /// </summary>
  257. [global::ProtoBuf.ProtoMember(9, Name=@"needItem", DataFormat = global::ProtoBuf.DataFormat.Default)]
  258. public global::System.Collections.Generic.List<pomelo.item.MiniItem> needItem
  259. {
  260. get { return _needItem; }
  261. }
  262. private int _meetCondition = default(int);
  263. /// <summary>
  264. /// 是否满足兑换条件
  265. /// </summary>
  266. [global::ProtoBuf.ProtoMember(10, IsRequired = false, Name=@"meetCondition", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  267. [global::System.ComponentModel.DefaultValue(default(int))]
  268. public int meetCondition
  269. {
  270. get { return _meetCondition; }
  271. set { _meetCondition = value; }
  272. }
  273. private int _maxExchangeNum = default(int);
  274. /// <summary>
  275. /// 可兑换的数量
  276. /// </summary>
  277. [global::ProtoBuf.ProtoMember(11, IsRequired = false, Name=@"maxExchangeNum", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  278. [global::System.ComponentModel.DefaultValue(default(int))]
  279. public int maxExchangeNum
  280. {
  281. get { return _maxExchangeNum; }
  282. set { _maxExchangeNum = value; }
  283. }
  284. private int _state = default(int);
  285. /// <summary>
  286. /// 0:保留 1:正常 2:售罄
  287. /// </summary>
  288. [global::ProtoBuf.ProtoMember(12, IsRequired = false, Name=@"state", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  289. [global::System.ComponentModel.DefaultValue(default(int))]
  290. public int state
  291. {
  292. get { return _state; }
  293. set { _state = value; }
  294. }
  295. private global::ProtoBuf.IExtension extensionObject;
  296. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  297. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  298. }
  299. //---------------------------------------------------------------------------------------
  300. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"label")]
  301. public partial class label : global::ProtoBuf.IExtensible
  302. {
  303. public label() {}
  304. private int _typeId = default(int);
  305. /// <summary>
  306. /// 兑换类型
  307. /// </summary>
  308. [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"typeId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  309. [global::System.ComponentModel.DefaultValue(default(int))]
  310. public int typeId
  311. {
  312. get { return _typeId; }
  313. set { _typeId = value; }
  314. }
  315. private string _typeName = "";
  316. /// <summary>
  317. /// 类型标签名字
  318. /// </summary>
  319. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"typeName", DataFormat = global::ProtoBuf.DataFormat.Default)]
  320. [global::System.ComponentModel.DefaultValue("")]
  321. public string typeName
  322. {
  323. get { return _typeName; }
  324. set { _typeName = value; }
  325. }
  326. private global::ProtoBuf.IExtension extensionObject;
  327. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  328. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  329. }
  330. //---------------------------------------------------------------------------------------
  331. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ExchangeData")]
  332. public partial class ExchangeData : global::ProtoBuf.IExtensible
  333. {
  334. public ExchangeData() {}
  335. private readonly global::System.Collections.Generic.List<pomelo.area.ExchangeInfo> _exchangeList = new global::System.Collections.Generic.List<pomelo.area.ExchangeInfo>();
  336. [global::ProtoBuf.ProtoMember(1, Name=@"exchangeList", DataFormat = global::ProtoBuf.DataFormat.Default)]
  337. public global::System.Collections.Generic.List<pomelo.area.ExchangeInfo> exchangeList
  338. {
  339. get { return _exchangeList; }
  340. }
  341. private global::ProtoBuf.IExtension extensionObject;
  342. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  343. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  344. }
  345. //---------------------------------------------------------------------------------------
  346. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GetExchangeLabelResponse")]
  347. public partial class GetExchangeLabelResponse : global::ProtoBuf.IExtensible
  348. {
  349. public GetExchangeLabelResponse() {}
  350. private int _s2c_code;
  351. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  352. public int s2c_code
  353. {
  354. get { return _s2c_code; }
  355. set { _s2c_code = value; }
  356. }
  357. private string _s2c_msg = "";
  358. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  359. [global::System.ComponentModel.DefaultValue("")]
  360. public string s2c_msg
  361. {
  362. get { return _s2c_msg; }
  363. set { _s2c_msg = value; }
  364. }
  365. private readonly global::System.Collections.Generic.List<pomelo.area.label> _s2c_labelList = new global::System.Collections.Generic.List<pomelo.area.label>();
  366. [global::ProtoBuf.ProtoMember(3, Name=@"s2c_labelList", DataFormat = global::ProtoBuf.DataFormat.Default)]
  367. public global::System.Collections.Generic.List<pomelo.area.label> s2c_labelList
  368. {
  369. get { return _s2c_labelList; }
  370. }
  371. private global::ProtoBuf.IExtension extensionObject;
  372. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  373. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  374. }
  375. //---------------------------------------------------------------------------------------
  376. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GetExchangeListResponse")]
  377. public partial class GetExchangeListResponse : global::ProtoBuf.IExtensible
  378. {
  379. public GetExchangeListResponse() {}
  380. private int _s2c_code;
  381. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  382. public int s2c_code
  383. {
  384. get { return _s2c_code; }
  385. set { _s2c_code = value; }
  386. }
  387. private string _s2c_msg = "";
  388. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  389. [global::System.ComponentModel.DefaultValue("")]
  390. public string s2c_msg
  391. {
  392. get { return _s2c_msg; }
  393. set { _s2c_msg = value; }
  394. }
  395. private pomelo.area.ExchangeData _s2c_data = null;
  396. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"s2c_data", DataFormat = global::ProtoBuf.DataFormat.Default)]
  397. [global::System.ComponentModel.DefaultValue(null)]
  398. public pomelo.area.ExchangeData s2c_data
  399. {
  400. get { return _s2c_data; }
  401. set { _s2c_data = value; }
  402. }
  403. private global::ProtoBuf.IExtension extensionObject;
  404. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  405. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  406. }
  407. //---------------------------------------------------------------------------------------
  408. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"ExchangeItemResponse")]
  409. public partial class ExchangeItemResponse : global::ProtoBuf.IExtensible
  410. {
  411. public ExchangeItemResponse() {}
  412. private int _s2c_code;
  413. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  414. public int s2c_code
  415. {
  416. get { return _s2c_code; }
  417. set { _s2c_code = value; }
  418. }
  419. private string _s2c_msg = "";
  420. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  421. [global::System.ComponentModel.DefaultValue("")]
  422. public string s2c_msg
  423. {
  424. get { return _s2c_msg; }
  425. set { _s2c_msg = value; }
  426. }
  427. private pomelo.area.ExchangeData _s2c_data = null;
  428. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"s2c_data", DataFormat = global::ProtoBuf.DataFormat.Default)]
  429. [global::System.ComponentModel.DefaultValue(null)]
  430. public pomelo.area.ExchangeData s2c_data
  431. {
  432. get { return _s2c_data; }
  433. set { _s2c_data = value; }
  434. }
  435. private global::ProtoBuf.IExtension extensionObject;
  436. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  437. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  438. }
  439. //---------------------------------------------------------------------------------------
  440. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"AllyFightExchangeRequest")]
  441. public partial class AllyFightExchangeRequest : global::ProtoBuf.IExtensible
  442. {
  443. public AllyFightExchangeRequest() {}
  444. private string _c2s_npcId;
  445. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"c2s_npcId", DataFormat = global::ProtoBuf.DataFormat.Default)]
  446. public string c2s_npcId
  447. {
  448. get { return _c2s_npcId; }
  449. set { _c2s_npcId = value; }
  450. }
  451. private int _c2s_typeId;
  452. /// <summary>
  453. /// 标签id
  454. /// </summary>
  455. [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"c2s_typeId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  456. public int c2s_typeId
  457. {
  458. get { return _c2s_typeId; }
  459. set { _c2s_typeId = value; }
  460. }
  461. private global::ProtoBuf.IExtension extensionObject;
  462. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  463. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  464. }
  465. //---------------------------------------------------------------------------------------
  466. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"AllyFightExchangeResponse")]
  467. public partial class AllyFightExchangeResponse : global::ProtoBuf.IExtensible
  468. {
  469. public AllyFightExchangeResponse() {}
  470. private int _s2c_code;
  471. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  472. public int s2c_code
  473. {
  474. get { return _s2c_code; }
  475. set { _s2c_code = value; }
  476. }
  477. private string _s2c_msg = "";
  478. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  479. [global::System.ComponentModel.DefaultValue("")]
  480. public string s2c_msg
  481. {
  482. get { return _s2c_msg; }
  483. set { _s2c_msg = value; }
  484. }
  485. private pomelo.area.ExchangeData _s2c_data = null;
  486. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"s2c_data", DataFormat = global::ProtoBuf.DataFormat.Default)]
  487. [global::System.ComponentModel.DefaultValue(null)]
  488. public pomelo.area.ExchangeData s2c_data
  489. {
  490. get { return _s2c_data; }
  491. set { _s2c_data = value; }
  492. }
  493. private global::ProtoBuf.IExtension extensionObject;
  494. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  495. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  496. }
  497. //---------------------------------------------------------------------------------------
  498. [global::ProtoBuf.ProtoContract(Name=@"ConditionType")]
  499. public enum ConditionType
  500. {
  501. /// <summary>
  502. /// 需要等级
  503. /// </summary>
  504. [global::ProtoBuf.ProtoEnum(Name=@"CONDITION_LEVEL", Value=1)]
  505. CONDITION_LEVEL = 1,
  506. /// <summary>
  507. /// 需要阶级
  508. /// </summary>
  509. [global::ProtoBuf.ProtoEnum(Name=@"CONDITION_UP_REQ", Value=2)]
  510. CONDITION_UP_REQ = 2,
  511. /// <summary>
  512. /// 需要vip等级
  513. /// </summary>
  514. [global::ProtoBuf.ProtoEnum(Name=@"CONDITION_VIP_LEVEL", Value=3)]
  515. CONDITION_VIP_LEVEL = 3,
  516. /// <summary>
  517. /// 需要阵营
  518. /// </summary>
  519. [global::ProtoBuf.ProtoEnum(Name=@"CONDITION_RACE", Value=4)]
  520. CONDITION_RACE = 4,
  521. /// <summary>
  522. /// 需要阵营声望等级
  523. /// </summary>
  524. [global::ProtoBuf.ProtoEnum(Name=@"CONDITION_RACE_CLASS", Value=5)]
  525. CONDITION_RACE_CLASS = 5,
  526. /// <summary>
  527. /// 需要竞技场点数
  528. /// </summary>
  529. [global::ProtoBuf.ProtoEnum(Name=@"CONDITION_ARENA_SCORE", Value=6)]
  530. CONDITION_ARENA_SCORE = 6,
  531. /// <summary>
  532. /// 需要工会荣誉
  533. /// </summary>
  534. [global::ProtoBuf.ProtoEnum(Name=@"CONDITION_GUILD_HONOR", Value=7)]
  535. CONDITION_GUILD_HONOR = 7
  536. }
  537. //---------------------------------------------------------------------------------------
  538. [global::ProtoBuf.ProtoContract(Name=@"MoneyType")]
  539. public enum MoneyType
  540. {
  541. /// <summary>
  542. /// 金币
  543. /// </summary>
  544. [global::ProtoBuf.ProtoEnum(Name=@"MT_GOLD", Value=1)]
  545. MT_GOLD = 1,
  546. /// <summary>
  547. /// 钻石
  548. /// </summary>
  549. [global::ProtoBuf.ProtoEnum(Name=@"MT_DIAMOND", Value=2)]
  550. MT_DIAMOND = 2,
  551. /// <summary>
  552. /// 金票
  553. /// </summary>
  554. [global::ProtoBuf.ProtoEnum(Name=@"MT_TICKET", Value=3)]
  555. MT_TICKET = 3,
  556. /// <summary>
  557. /// 消费积分
  558. /// </summary>
  559. [global::ProtoBuf.ProtoEnum(Name=@"MT_FEE_POINT", Value=4)]
  560. MT_FEE_POINT = 4,
  561. /// <summary>
  562. /// 君王宝藏积分
  563. /// </summary>
  564. [global::ProtoBuf.ProtoEnum(Name=@"MT_TREASURE_POINT", Value=8)]
  565. MT_TREASURE_POINT = 8
  566. }
  567. }