_medalHandler.cs 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442
  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. // * 创建时间= 2015-10-12
  12. // * 用途= 勋章处理器
  13. // ***************************************************************************
  14. // Generated from: medalHandler.proto
  15. // Note: requires additional types generated from: common.proto
  16. // Note: requires additional types generated from: item.proto
  17. namespace pomelo.area
  18. {
  19. //---------------------------------------------------------------------------------------
  20. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"MedalData")]
  21. public partial class MedalData : global::ProtoBuf.IExtensible
  22. {
  23. public MedalData() {}
  24. private pomelo.item.MiniItem _medal = null;
  25. [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"medal", DataFormat = global::ProtoBuf.DataFormat.Default)]
  26. [global::System.ComponentModel.DefaultValue(null)]
  27. public pomelo.item.MiniItem medal
  28. {
  29. get { return _medal; }
  30. set { _medal = value; }
  31. }
  32. private int _ifMax = default(int);
  33. /// <summary>
  34. /// 是否满级
  35. /// </summary>
  36. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"ifMax", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  37. [global::System.ComponentModel.DefaultValue(default(int))]
  38. public int ifMax
  39. {
  40. get { return _ifMax; }
  41. set { _ifMax = value; }
  42. }
  43. private int _needPrestige = default(int);
  44. /// <summary>
  45. /// 需要的声望
  46. /// </summary>
  47. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"needPrestige", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  48. [global::System.ComponentModel.DefaultValue(default(int))]
  49. public int needPrestige
  50. {
  51. get { return _needPrestige; }
  52. set { _needPrestige = value; }
  53. }
  54. private int _needGold = default(int);
  55. /// <summary>
  56. /// 消耗金币
  57. /// </summary>
  58. [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"needGold", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  59. [global::System.ComponentModel.DefaultValue(default(int))]
  60. public int needGold
  61. {
  62. get { return _needGold; }
  63. set { _needGold = value; }
  64. }
  65. private int _needDiamond = default(int);
  66. /// <summary>
  67. /// 需要的钻石
  68. /// </summary>
  69. [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"needDiamond", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  70. [global::System.ComponentModel.DefaultValue(default(int))]
  71. public int needDiamond
  72. {
  73. get { return _needDiamond; }
  74. set { _needDiamond = value; }
  75. }
  76. private string _nextTitleName = "";
  77. /// <summary>
  78. /// 下一级爵位
  79. /// </summary>
  80. [global::ProtoBuf.ProtoMember(6, IsRequired = false, Name=@"nextTitleName", DataFormat = global::ProtoBuf.DataFormat.Default)]
  81. [global::System.ComponentModel.DefaultValue("")]
  82. public string nextTitleName
  83. {
  84. get { return _nextTitleName; }
  85. set { _nextTitleName = value; }
  86. }
  87. private readonly global::System.Collections.Generic.List<pomelo.AttributeBase> _attrs = new global::System.Collections.Generic.List<pomelo.AttributeBase>();
  88. /// <summary>
  89. /// 勋章属性
  90. /// </summary>
  91. [global::ProtoBuf.ProtoMember(7, Name=@"attrs", DataFormat = global::ProtoBuf.DataFormat.Default)]
  92. public global::System.Collections.Generic.List<pomelo.AttributeBase> attrs
  93. {
  94. get { return _attrs; }
  95. }
  96. private int _flag = default(int);
  97. /// <summary>
  98. /// 1-获得过 0-没有
  99. /// </summary>
  100. [global::ProtoBuf.ProtoMember(8, IsRequired = false, Name=@"flag", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  101. [global::System.ComponentModel.DefaultValue(default(int))]
  102. public int flag
  103. {
  104. get { return _flag; }
  105. set { _flag = value; }
  106. }
  107. private global::ProtoBuf.IExtension extensionObject;
  108. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  109. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  110. }
  111. //---------------------------------------------------------------------------------------
  112. /// <summary>
  113. /// 获取爵位界面信息
  114. /// </summary>
  115. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GetMedalInfoRequest")]
  116. public partial class GetMedalInfoRequest : global::ProtoBuf.IExtensible
  117. {
  118. public GetMedalInfoRequest() {}
  119. private global::ProtoBuf.IExtension extensionObject;
  120. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  121. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  122. }
  123. //---------------------------------------------------------------------------------------
  124. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GetMedalInfoResponse")]
  125. public partial class GetMedalInfoResponse : global::ProtoBuf.IExtensible
  126. {
  127. public GetMedalInfoResponse() {}
  128. private int _s2c_code;
  129. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  130. public int s2c_code
  131. {
  132. get { return _s2c_code; }
  133. set { _s2c_code = value; }
  134. }
  135. private string _s2c_msg = "";
  136. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  137. [global::System.ComponentModel.DefaultValue("")]
  138. public string s2c_msg
  139. {
  140. get { return _s2c_msg; }
  141. set { _s2c_msg = value; }
  142. }
  143. private pomelo.area.MedalData _s2c_data = null;
  144. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"s2c_data", DataFormat = global::ProtoBuf.DataFormat.Default)]
  145. [global::System.ComponentModel.DefaultValue(null)]
  146. public pomelo.area.MedalData s2c_data
  147. {
  148. get { return _s2c_data; }
  149. set { _s2c_data = value; }
  150. }
  151. private global::ProtoBuf.IExtension extensionObject;
  152. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  153. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  154. }
  155. //---------------------------------------------------------------------------------------
  156. /// <summary>
  157. /// 领取勋章
  158. /// </summary>
  159. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GainMedalRequest")]
  160. public partial class GainMedalRequest : global::ProtoBuf.IExtensible
  161. {
  162. public GainMedalRequest() {}
  163. private string _c2s_id;
  164. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"c2s_id", DataFormat = global::ProtoBuf.DataFormat.Default)]
  165. public string c2s_id
  166. {
  167. get { return _c2s_id; }
  168. set { _c2s_id = value; }
  169. }
  170. private global::ProtoBuf.IExtension extensionObject;
  171. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  172. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  173. }
  174. //---------------------------------------------------------------------------------------
  175. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GainMedalResponse")]
  176. public partial class GainMedalResponse : global::ProtoBuf.IExtensible
  177. {
  178. public GainMedalResponse() {}
  179. private int _s2c_code;
  180. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  181. public int s2c_code
  182. {
  183. get { return _s2c_code; }
  184. set { _s2c_code = value; }
  185. }
  186. private string _s2c_msg = "";
  187. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  188. [global::System.ComponentModel.DefaultValue("")]
  189. public string s2c_msg
  190. {
  191. get { return _s2c_msg; }
  192. set { _s2c_msg = value; }
  193. }
  194. private global::ProtoBuf.IExtension extensionObject;
  195. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  196. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  197. }
  198. //---------------------------------------------------------------------------------------
  199. /// <summary>
  200. /// 勋章列表
  201. /// </summary>
  202. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"MedalListRequest")]
  203. public partial class MedalListRequest : global::ProtoBuf.IExtensible
  204. {
  205. public MedalListRequest() {}
  206. private global::ProtoBuf.IExtension extensionObject;
  207. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  208. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  209. }
  210. //---------------------------------------------------------------------------------------
  211. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"MedalListInfo")]
  212. public partial class MedalListInfo : global::ProtoBuf.IExtensible
  213. {
  214. public MedalListInfo() {}
  215. private pomelo.item.MiniItem _medal;
  216. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"medal", DataFormat = global::ProtoBuf.DataFormat.Default)]
  217. public pomelo.item.MiniItem medal
  218. {
  219. get { return _medal; }
  220. set { _medal = value; }
  221. }
  222. private int _isGet;
  223. /// <summary>
  224. /// 2 已获得 1 可以领取 0 没有获得
  225. /// </summary>
  226. [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"isGet", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  227. public int isGet
  228. {
  229. get { return _isGet; }
  230. set { _isGet = value; }
  231. }
  232. private global::ProtoBuf.IExtension extensionObject;
  233. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  234. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  235. }
  236. //---------------------------------------------------------------------------------------
  237. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"MedalListResponse")]
  238. public partial class MedalListResponse : global::ProtoBuf.IExtensible
  239. {
  240. public MedalListResponse() {}
  241. private int _s2c_code;
  242. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  243. public int s2c_code
  244. {
  245. get { return _s2c_code; }
  246. set { _s2c_code = value; }
  247. }
  248. private string _s2c_msg = "";
  249. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  250. [global::System.ComponentModel.DefaultValue("")]
  251. public string s2c_msg
  252. {
  253. get { return _s2c_msg; }
  254. set { _s2c_msg = value; }
  255. }
  256. private readonly global::System.Collections.Generic.List<pomelo.area.MedalListInfo> _s2c_data = new global::System.Collections.Generic.List<pomelo.area.MedalListInfo>();
  257. [global::ProtoBuf.ProtoMember(3, Name=@"s2c_data", DataFormat = global::ProtoBuf.DataFormat.Default)]
  258. public global::System.Collections.Generic.List<pomelo.area.MedalListInfo> s2c_data
  259. {
  260. get { return _s2c_data; }
  261. }
  262. private global::ProtoBuf.IExtension extensionObject;
  263. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  264. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  265. }
  266. //---------------------------------------------------------------------------------------
  267. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GetMedalInfoByCodeRequest")]
  268. public partial class GetMedalInfoByCodeRequest : global::ProtoBuf.IExtensible
  269. {
  270. public GetMedalInfoByCodeRequest() {}
  271. private string _c2s_code;
  272. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"c2s_code", DataFormat = global::ProtoBuf.DataFormat.Default)]
  273. public string c2s_code
  274. {
  275. get { return _c2s_code; }
  276. set { _c2s_code = value; }
  277. }
  278. private global::ProtoBuf.IExtension extensionObject;
  279. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  280. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  281. }
  282. //---------------------------------------------------------------------------------------
  283. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GetMedalInfoByCodeResponse")]
  284. public partial class GetMedalInfoByCodeResponse : global::ProtoBuf.IExtensible
  285. {
  286. public GetMedalInfoByCodeResponse() {}
  287. private int _s2c_code;
  288. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  289. public int s2c_code
  290. {
  291. get { return _s2c_code; }
  292. set { _s2c_code = value; }
  293. }
  294. private string _s2c_msg = "";
  295. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  296. [global::System.ComponentModel.DefaultValue("")]
  297. public string s2c_msg
  298. {
  299. get { return _s2c_msg; }
  300. set { _s2c_msg = value; }
  301. }
  302. private pomelo.area.MedalData _s2c_data = null;
  303. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"s2c_data", DataFormat = global::ProtoBuf.DataFormat.Default)]
  304. [global::System.ComponentModel.DefaultValue(null)]
  305. public pomelo.area.MedalData s2c_data
  306. {
  307. get { return _s2c_data; }
  308. set { _s2c_data = value; }
  309. }
  310. private global::ProtoBuf.IExtension extensionObject;
  311. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  312. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  313. }
  314. //---------------------------------------------------------------------------------------
  315. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"MedalTitleData")]
  316. public partial class MedalTitleData : global::ProtoBuf.IExtensible
  317. {
  318. public MedalTitleData() {}
  319. private int _titleId = default(int);
  320. [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"titleId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  321. [global::System.ComponentModel.DefaultValue(default(int))]
  322. public int titleId
  323. {
  324. get { return _titleId; }
  325. set { _titleId = value; }
  326. }
  327. private pomelo.item.MiniItem _medal = null;
  328. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"medal", DataFormat = global::ProtoBuf.DataFormat.Default)]
  329. [global::System.ComponentModel.DefaultValue(null)]
  330. public pomelo.item.MiniItem medal
  331. {
  332. get { return _medal; }
  333. set { _medal = value; }
  334. }
  335. private global::ProtoBuf.IExtension extensionObject;
  336. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  337. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  338. }
  339. //---------------------------------------------------------------------------------------
  340. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"MedalTitleChangePush")]
  341. public partial class MedalTitleChangePush : global::ProtoBuf.IExtensible
  342. {
  343. public MedalTitleChangePush() {}
  344. private int _s2c_code;
  345. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  346. public int s2c_code
  347. {
  348. get { return _s2c_code; }
  349. set { _s2c_code = value; }
  350. }
  351. private readonly global::System.Collections.Generic.List<pomelo.area.MedalTitleData> _s2c_data = new global::System.Collections.Generic.List<pomelo.area.MedalTitleData>();
  352. [global::ProtoBuf.ProtoMember(2, Name=@"s2c_data", DataFormat = global::ProtoBuf.DataFormat.Default)]
  353. public global::System.Collections.Generic.List<pomelo.area.MedalTitleData> s2c_data
  354. {
  355. get { return _s2c_data; }
  356. }
  357. private global::ProtoBuf.IExtension extensionObject;
  358. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  359. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  360. }
  361. }