_rewardHandler.cs 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413
  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-08-03
  12. // * 用途= 悬赏
  13. // ***************************************************************************
  14. // Generated from: rewardHandler.proto
  15. // Note: requires additional types generated from: item.proto
  16. namespace pomelo.area
  17. {
  18. //---------------------------------------------------------------------------------------
  19. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"RewardDeskRequest")]
  20. public partial class RewardDeskRequest : global::ProtoBuf.IExtensible
  21. {
  22. public RewardDeskRequest() {}
  23. private global::ProtoBuf.IExtension extensionObject;
  24. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  25. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  26. }
  27. //---------------------------------------------------------------------------------------
  28. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"RewardDeskResponse")]
  29. public partial class RewardDeskResponse : global::ProtoBuf.IExtensible
  30. {
  31. public RewardDeskResponse() {}
  32. private int _s2c_code;
  33. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  34. public int s2c_code
  35. {
  36. get { return _s2c_code; }
  37. set { _s2c_code = value; }
  38. }
  39. private string _s2c_msg = "";
  40. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  41. [global::System.ComponentModel.DefaultValue("")]
  42. public string s2c_msg
  43. {
  44. get { return _s2c_msg; }
  45. set { _s2c_msg = value; }
  46. }
  47. private pomelo.item.MiniItem _s2c_itemInfo;
  48. /// <summary>
  49. /// 需要物品
  50. /// </summary>
  51. [global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"s2c_itemInfo", DataFormat = global::ProtoBuf.DataFormat.Default)]
  52. public pomelo.item.MiniItem s2c_itemInfo
  53. {
  54. get { return _s2c_itemInfo; }
  55. set { _s2c_itemInfo = value; }
  56. }
  57. private global::ProtoBuf.IExtension extensionObject;
  58. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  59. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  60. }
  61. //---------------------------------------------------------------------------------------
  62. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"RewardRequest")]
  63. public partial class RewardRequest : global::ProtoBuf.IExtensible
  64. {
  65. public RewardRequest() {}
  66. private string _c2s_playerName;
  67. /// <summary>
  68. /// 目标玩家
  69. /// </summary>
  70. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"c2s_playerName", DataFormat = global::ProtoBuf.DataFormat.Default)]
  71. public string c2s_playerName
  72. {
  73. get { return _c2s_playerName; }
  74. set { _c2s_playerName = value; }
  75. }
  76. private global::ProtoBuf.IExtension extensionObject;
  77. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  78. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  79. }
  80. //---------------------------------------------------------------------------------------
  81. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"RewardResponse")]
  82. public partial class RewardResponse : global::ProtoBuf.IExtensible
  83. {
  84. public RewardResponse() {}
  85. private int _s2c_code;
  86. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  87. public int s2c_code
  88. {
  89. get { return _s2c_code; }
  90. set { _s2c_code = value; }
  91. }
  92. private string _s2c_msg = "";
  93. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  94. [global::System.ComponentModel.DefaultValue("")]
  95. public string s2c_msg
  96. {
  97. get { return _s2c_msg; }
  98. set { _s2c_msg = value; }
  99. }
  100. private global::ProtoBuf.IExtension extensionObject;
  101. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  102. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  103. }
  104. //---------------------------------------------------------------------------------------
  105. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"BountyInfo")]
  106. public partial class BountyInfo : global::ProtoBuf.IExtensible
  107. {
  108. public BountyInfo() {}
  109. private string _playerName;
  110. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"playerName", DataFormat = global::ProtoBuf.DataFormat.Default)]
  111. public string playerName
  112. {
  113. get { return _playerName; }
  114. set { _playerName = value; }
  115. }
  116. private int _bounty;
  117. /// <summary>
  118. /// 赏金
  119. /// </summary>
  120. [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"bounty", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  121. public int bounty
  122. {
  123. get { return _bounty; }
  124. set { _bounty = value; }
  125. }
  126. private int _pro;
  127. /// <summary>
  128. /// 职业
  129. /// </summary>
  130. [global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"pro", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  131. public int pro
  132. {
  133. get { return _pro; }
  134. set { _pro = value; }
  135. }
  136. private pomelo.item.CountItem _itemInfo;
  137. [global::ProtoBuf.ProtoMember(4, IsRequired = true, Name=@"itemInfo", DataFormat = global::ProtoBuf.DataFormat.Default)]
  138. public pomelo.item.CountItem itemInfo
  139. {
  140. get { return _itemInfo; }
  141. set { _itemInfo = value; }
  142. }
  143. private string _preyId;
  144. /// <summary>
  145. /// 猎物(被悬赏者ID)
  146. /// </summary>
  147. [global::ProtoBuf.ProtoMember(5, IsRequired = true, Name=@"preyId", DataFormat = global::ProtoBuf.DataFormat.Default)]
  148. public string preyId
  149. {
  150. get { return _preyId; }
  151. set { _preyId = value; }
  152. }
  153. private string _hunterId;
  154. /// <summary>
  155. /// 猎人 (悬赏者ID)
  156. /// </summary>
  157. [global::ProtoBuf.ProtoMember(6, IsRequired = true, Name=@"hunterId", DataFormat = global::ProtoBuf.DataFormat.Default)]
  158. public string hunterId
  159. {
  160. get { return _hunterId; }
  161. set { _hunterId = value; }
  162. }
  163. private int _isFinish = default(int);
  164. [global::ProtoBuf.ProtoMember(7, IsRequired = false, Name=@"isFinish", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  165. [global::System.ComponentModel.DefaultValue(default(int))]
  166. public int isFinish
  167. {
  168. get { return _isFinish; }
  169. set { _isFinish = value; }
  170. }
  171. private global::ProtoBuf.IExtension extensionObject;
  172. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  173. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  174. }
  175. //---------------------------------------------------------------------------------------
  176. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"CheckBountyRequest")]
  177. public partial class CheckBountyRequest : global::ProtoBuf.IExtensible
  178. {
  179. public CheckBountyRequest() {}
  180. private int _c2s_index;
  181. /// <summary>
  182. /// 第几次请求 每次30条数据(既排名)
  183. /// </summary>
  184. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"c2s_index", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  185. public int c2s_index
  186. {
  187. get { return _c2s_index; }
  188. set { _c2s_index = value; }
  189. }
  190. private global::ProtoBuf.IExtension extensionObject;
  191. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  192. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  193. }
  194. //---------------------------------------------------------------------------------------
  195. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"CheckBountyResponse")]
  196. public partial class CheckBountyResponse : global::ProtoBuf.IExtensible
  197. {
  198. public CheckBountyResponse() {}
  199. private int _s2c_code;
  200. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  201. public int s2c_code
  202. {
  203. get { return _s2c_code; }
  204. set { _s2c_code = value; }
  205. }
  206. private string _s2c_msg = "";
  207. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  208. [global::System.ComponentModel.DefaultValue("")]
  209. public string s2c_msg
  210. {
  211. get { return _s2c_msg; }
  212. set { _s2c_msg = value; }
  213. }
  214. private readonly global::System.Collections.Generic.List<pomelo.area.BountyInfo> _s2c_bounty = new global::System.Collections.Generic.List<pomelo.area.BountyInfo>();
  215. [global::ProtoBuf.ProtoMember(3, Name=@"s2c_bounty", DataFormat = global::ProtoBuf.DataFormat.Default)]
  216. public global::System.Collections.Generic.List<pomelo.area.BountyInfo> s2c_bounty
  217. {
  218. get { return _s2c_bounty; }
  219. }
  220. private int _s2c_rewardNum = default(int);
  221. /// <summary>
  222. /// 悬赏条数
  223. /// </summary>
  224. [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"s2c_rewardNum", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  225. [global::System.ComponentModel.DefaultValue(default(int))]
  226. public int s2c_rewardNum
  227. {
  228. get { return _s2c_rewardNum; }
  229. set { _s2c_rewardNum = value; }
  230. }
  231. private global::ProtoBuf.IExtension extensionObject;
  232. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  233. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  234. }
  235. //---------------------------------------------------------------------------------------
  236. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GetAwardBountyRequest")]
  237. public partial class GetAwardBountyRequest : global::ProtoBuf.IExtensible
  238. {
  239. public GetAwardBountyRequest() {}
  240. private string _c2s_preyId;
  241. /// <summary>
  242. /// 猎物(被悬赏者ID)
  243. /// </summary>
  244. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"c2s_preyId", DataFormat = global::ProtoBuf.DataFormat.Default)]
  245. public string c2s_preyId
  246. {
  247. get { return _c2s_preyId; }
  248. set { _c2s_preyId = value; }
  249. }
  250. private string _c2s_hunterId;
  251. /// <summary>
  252. /// 猎人 (悬赏者ID)
  253. /// </summary>
  254. [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"c2s_hunterId", DataFormat = global::ProtoBuf.DataFormat.Default)]
  255. public string c2s_hunterId
  256. {
  257. get { return _c2s_hunterId; }
  258. set { _c2s_hunterId = value; }
  259. }
  260. private int _c2s_bounty;
  261. /// <summary>
  262. /// 赏金
  263. /// </summary>
  264. [global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"c2s_bounty", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  265. public int c2s_bounty
  266. {
  267. get { return _c2s_bounty; }
  268. set { _c2s_bounty = value; }
  269. }
  270. private global::ProtoBuf.IExtension extensionObject;
  271. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  272. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  273. }
  274. //---------------------------------------------------------------------------------------
  275. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GetAwardBountyResponse")]
  276. public partial class GetAwardBountyResponse : global::ProtoBuf.IExtensible
  277. {
  278. public GetAwardBountyResponse() {}
  279. private int _s2c_code;
  280. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  281. public int s2c_code
  282. {
  283. get { return _s2c_code; }
  284. set { _s2c_code = value; }
  285. }
  286. private string _s2c_msg = "";
  287. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  288. [global::System.ComponentModel.DefaultValue("")]
  289. public string s2c_msg
  290. {
  291. get { return _s2c_msg; }
  292. set { _s2c_msg = value; }
  293. }
  294. private global::ProtoBuf.IExtension extensionObject;
  295. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  296. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  297. }
  298. //---------------------------------------------------------------------------------------
  299. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"FinishRewardRequest")]
  300. public partial class FinishRewardRequest : global::ProtoBuf.IExtensible
  301. {
  302. public FinishRewardRequest() {}
  303. private global::ProtoBuf.IExtension extensionObject;
  304. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  305. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  306. }
  307. //---------------------------------------------------------------------------------------
  308. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"FinishRewardResponse")]
  309. public partial class FinishRewardResponse : global::ProtoBuf.IExtensible
  310. {
  311. public FinishRewardResponse() {}
  312. private int _s2c_code;
  313. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  314. public int s2c_code
  315. {
  316. get { return _s2c_code; }
  317. set { _s2c_code = value; }
  318. }
  319. private string _s2c_msg = "";
  320. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  321. [global::System.ComponentModel.DefaultValue("")]
  322. public string s2c_msg
  323. {
  324. get { return _s2c_msg; }
  325. set { _s2c_msg = value; }
  326. }
  327. private readonly global::System.Collections.Generic.List<pomelo.area.BountyInfo> _s2c_bounty = new global::System.Collections.Generic.List<pomelo.area.BountyInfo>();
  328. [global::ProtoBuf.ProtoMember(3, Name=@"s2c_bounty", DataFormat = global::ProtoBuf.DataFormat.Default)]
  329. public global::System.Collections.Generic.List<pomelo.area.BountyInfo> s2c_bounty
  330. {
  331. get { return _s2c_bounty; }
  332. }
  333. private global::ProtoBuf.IExtension extensionObject;
  334. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  335. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  336. }
  337. }