_leaderBoardHandler.cs 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528
  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. // * 作者= jjr
  11. // * 创建时间= 2017-03-27
  12. // * 用途= 排行榜
  13. // ***************************************************************************/
  14. // Generated from: leaderBoardHandler.proto
  15. // Note: requires additional types generated from: common.proto
  16. namespace pomelo.area
  17. {
  18. //---------------------------------------------------------------------------------------
  19. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"LeaderBoardData")]
  20. public partial class LeaderBoardData : global::ProtoBuf.IExtensible
  21. {
  22. public LeaderBoardData() {}
  23. private readonly global::System.Collections.Generic.List<string> _contents = new global::System.Collections.Generic.List<string>();
  24. /// <summary>
  25. /// 客户端显示字段需和客户端相对应,约定数组第一个传rank排名
  26. /// </summary>
  27. [global::ProtoBuf.ProtoMember(1, Name=@"contents", DataFormat = global::ProtoBuf.DataFormat.Default)]
  28. public global::System.Collections.Generic.List<string> contents
  29. {
  30. get { return _contents; }
  31. }
  32. private readonly global::System.Collections.Generic.List<pomelo.Avatar> _avatars = new global::System.Collections.Generic.List<pomelo.Avatar>();
  33. /// <summary>
  34. /// 人物avatar 除公会,宠物,坐骑都有 本人排名信息没有
  35. /// </summary>
  36. [global::ProtoBuf.ProtoMember(2, Name=@"avatars", DataFormat = global::ProtoBuf.DataFormat.Default)]
  37. public global::System.Collections.Generic.List<pomelo.Avatar> avatars
  38. {
  39. get { return _avatars; }
  40. }
  41. private global::ProtoBuf.IExtension extensionObject;
  42. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  43. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  44. }
  45. //---------------------------------------------------------------------------------------
  46. /// <summary>
  47. /// 排行榜公会信息结构
  48. /// </summary>
  49. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"RankGuildInfo")]
  50. public partial class RankGuildInfo : global::ProtoBuf.IExtensible
  51. {
  52. public RankGuildInfo() {}
  53. private string _guildId = "";
  54. [global::ProtoBuf.ProtoMember(1, IsRequired = false, Name=@"guildId", DataFormat = global::ProtoBuf.DataFormat.Default)]
  55. [global::System.ComponentModel.DefaultValue("")]
  56. public string guildId
  57. {
  58. get { return _guildId; }
  59. set { _guildId = value; }
  60. }
  61. private string _guildIcon = "";
  62. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"guildIcon", DataFormat = global::ProtoBuf.DataFormat.Default)]
  63. [global::System.ComponentModel.DefaultValue("")]
  64. public string guildIcon
  65. {
  66. get { return _guildIcon; }
  67. set { _guildIcon = value; }
  68. }
  69. private string _guildMaster = "";
  70. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"guildMaster", DataFormat = global::ProtoBuf.DataFormat.Default)]
  71. [global::System.ComponentModel.DefaultValue("")]
  72. public string guildMaster
  73. {
  74. get { return _guildMaster; }
  75. set { _guildMaster = value; }
  76. }
  77. private int _guildLevel = default(int);
  78. [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"guildLevel", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  79. [global::System.ComponentModel.DefaultValue(default(int))]
  80. public int guildLevel
  81. {
  82. get { return _guildLevel; }
  83. set { _guildLevel = value; }
  84. }
  85. private int _curMember = default(int);
  86. [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"curMember", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  87. [global::System.ComponentModel.DefaultValue(default(int))]
  88. public int curMember
  89. {
  90. get { return _curMember; }
  91. set { _curMember = value; }
  92. }
  93. private int _maxMember = default(int);
  94. [global::ProtoBuf.ProtoMember(6, IsRequired = false, Name=@"maxMember", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  95. [global::System.ComponentModel.DefaultValue(default(int))]
  96. public int maxMember
  97. {
  98. get { return _maxMember; }
  99. set { _maxMember = value; }
  100. }
  101. private int _fund = default(int);
  102. [global::ProtoBuf.ProtoMember(7, IsRequired = false, Name=@"fund", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  103. [global::System.ComponentModel.DefaultValue(default(int))]
  104. public int fund
  105. {
  106. get { return _fund; }
  107. set { _fund = value; }
  108. }
  109. private string _notice = "";
  110. [global::ProtoBuf.ProtoMember(8, IsRequired = false, Name=@"notice", DataFormat = global::ProtoBuf.DataFormat.Default)]
  111. [global::System.ComponentModel.DefaultValue("")]
  112. public string notice
  113. {
  114. get { return _notice; }
  115. set { _notice = value; }
  116. }
  117. private int _guildMasterPro = default(int);
  118. [global::ProtoBuf.ProtoMember(9, IsRequired = false, Name=@"guildMasterPro", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  119. [global::System.ComponentModel.DefaultValue(default(int))]
  120. public int guildMasterPro
  121. {
  122. get { return _guildMasterPro; }
  123. set { _guildMasterPro = value; }
  124. }
  125. private global::ProtoBuf.IExtension extensionObject;
  126. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  127. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  128. }
  129. //---------------------------------------------------------------------------------------
  130. /// <summary>
  131. /// 获取排行榜 (请求)
  132. /// </summary>
  133. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"LeaderBoardRequest")]
  134. public partial class LeaderBoardRequest : global::ProtoBuf.IExtensible
  135. {
  136. public LeaderBoardRequest() {}
  137. private int _c2s_kind;
  138. /// <summary>
  139. /// 排行榜类型
  140. /// </summary>
  141. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"c2s_kind", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  142. public int c2s_kind
  143. {
  144. get { return _c2s_kind; }
  145. set { _c2s_kind = value; }
  146. }
  147. private int _c2s_season = default(int);
  148. /// <summary>
  149. /// 赛季类型 -1:没有赛季概念 0 上一赛季 1 当前赛季
  150. /// </summary>
  151. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"c2s_season", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  152. [global::System.ComponentModel.DefaultValue(default(int))]
  153. public int c2s_season
  154. {
  155. get { return _c2s_season; }
  156. set { _c2s_season = value; }
  157. }
  158. private global::ProtoBuf.IExtension extensionObject;
  159. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  160. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  161. }
  162. //---------------------------------------------------------------------------------------
  163. /// <summary>
  164. /// 获取排行榜 (返回)
  165. /// </summary>
  166. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"LeaderBoardResponse")]
  167. public partial class LeaderBoardResponse : global::ProtoBuf.IExtensible
  168. {
  169. public LeaderBoardResponse() {}
  170. private int _s2c_code;
  171. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  172. public int s2c_code
  173. {
  174. get { return _s2c_code; }
  175. set { _s2c_code = value; }
  176. }
  177. private string _s2c_msg = "";
  178. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  179. [global::System.ComponentModel.DefaultValue("")]
  180. public string s2c_msg
  181. {
  182. get { return _s2c_msg; }
  183. set { _s2c_msg = value; }
  184. }
  185. private readonly global::System.Collections.Generic.List<pomelo.area.LeaderBoardData> _s2c_lists = new global::System.Collections.Generic.List<pomelo.area.LeaderBoardData>();
  186. [global::ProtoBuf.ProtoMember(3, Name=@"s2c_lists", DataFormat = global::ProtoBuf.DataFormat.Default)]
  187. public global::System.Collections.Generic.List<pomelo.area.LeaderBoardData> s2c_lists
  188. {
  189. get { return _s2c_lists; }
  190. }
  191. private pomelo.area.LeaderBoardData _s2c_myData = null;
  192. [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"s2c_myData", DataFormat = global::ProtoBuf.DataFormat.Default)]
  193. [global::System.ComponentModel.DefaultValue(null)]
  194. public pomelo.area.LeaderBoardData s2c_myData
  195. {
  196. get { return _s2c_myData; }
  197. set { _s2c_myData = value; }
  198. }
  199. private global::ProtoBuf.IExtension extensionObject;
  200. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  201. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  202. }
  203. //---------------------------------------------------------------------------------------
  204. /// <summary>
  205. /// 获取公会信息 (请求)
  206. /// </summary>
  207. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GuildInfoRequest")]
  208. public partial class GuildInfoRequest : global::ProtoBuf.IExtensible
  209. {
  210. public GuildInfoRequest() {}
  211. private string _c2s_guildId;
  212. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"c2s_guildId", DataFormat = global::ProtoBuf.DataFormat.Default)]
  213. public string c2s_guildId
  214. {
  215. get { return _c2s_guildId; }
  216. set { _c2s_guildId = value; }
  217. }
  218. private global::ProtoBuf.IExtension extensionObject;
  219. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  220. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  221. }
  222. //---------------------------------------------------------------------------------------
  223. /// <summary>
  224. /// 获取公会信息 (返回)
  225. /// </summary>
  226. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GuildInfoResponse")]
  227. public partial class GuildInfoResponse : global::ProtoBuf.IExtensible
  228. {
  229. public GuildInfoResponse() {}
  230. private int _s2c_code;
  231. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  232. public int s2c_code
  233. {
  234. get { return _s2c_code; }
  235. set { _s2c_code = value; }
  236. }
  237. private string _s2c_msg = "";
  238. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  239. [global::System.ComponentModel.DefaultValue("")]
  240. public string s2c_msg
  241. {
  242. get { return _s2c_msg; }
  243. set { _s2c_msg = value; }
  244. }
  245. private pomelo.area.RankGuildInfo _s2c_data = null;
  246. [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"s2c_data", DataFormat = global::ProtoBuf.DataFormat.Default)]
  247. [global::System.ComponentModel.DefaultValue(null)]
  248. public pomelo.area.RankGuildInfo s2c_data
  249. {
  250. get { return _s2c_data; }
  251. set { _s2c_data = value; }
  252. }
  253. private global::ProtoBuf.IExtension extensionObject;
  254. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  255. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  256. }
  257. //---------------------------------------------------------------------------------------
  258. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"WorShipRequest")]
  259. public partial class WorShipRequest : global::ProtoBuf.IExtensible
  260. {
  261. public WorShipRequest() {}
  262. private int _c2s_type;
  263. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"c2s_type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  264. public int c2s_type
  265. {
  266. get { return _c2s_type; }
  267. set { _c2s_type = value; }
  268. }
  269. private global::ProtoBuf.IExtension extensionObject;
  270. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  271. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  272. }
  273. //---------------------------------------------------------------------------------------
  274. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"WorShipResponse")]
  275. public partial class WorShipResponse : global::ProtoBuf.IExtensible
  276. {
  277. public WorShipResponse() {}
  278. private int _s2c_code;
  279. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  280. public int s2c_code
  281. {
  282. get { return _s2c_code; }
  283. set { _s2c_code = value; }
  284. }
  285. private string _s2c_msg = "";
  286. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  287. [global::System.ComponentModel.DefaultValue("")]
  288. public string s2c_msg
  289. {
  290. get { return _s2c_msg; }
  291. set { _s2c_msg = value; }
  292. }
  293. private readonly global::System.Collections.Generic.List<string> _s2c_awards = new global::System.Collections.Generic.List<string>();
  294. [global::ProtoBuf.ProtoMember(3, Name=@"s2c_awards", DataFormat = global::ProtoBuf.DataFormat.Default)]
  295. public global::System.Collections.Generic.List<string> s2c_awards
  296. {
  297. get { return _s2c_awards; }
  298. }
  299. private global::ProtoBuf.IExtension extensionObject;
  300. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  301. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  302. }
  303. //---------------------------------------------------------------------------------------
  304. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"WorldLevelInfoRequest")]
  305. public partial class WorldLevelInfoRequest : global::ProtoBuf.IExtensible
  306. {
  307. public WorldLevelInfoRequest() {}
  308. private global::ProtoBuf.IExtension extensionObject;
  309. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  310. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  311. }
  312. //---------------------------------------------------------------------------------------
  313. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"WorldLevelInfo")]
  314. public partial class WorldLevelInfo : global::ProtoBuf.IExtensible
  315. {
  316. public WorldLevelInfo() {}
  317. private string _worldLevelId;
  318. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"worldLevelId", DataFormat = global::ProtoBuf.DataFormat.Default)]
  319. public string worldLevelId
  320. {
  321. get { return _worldLevelId; }
  322. set { _worldLevelId = value; }
  323. }
  324. private string _worldLevelName;
  325. [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"worldLevelName", DataFormat = global::ProtoBuf.DataFormat.Default)]
  326. public string worldLevelName
  327. {
  328. get { return _worldLevelName; }
  329. set { _worldLevelName = value; }
  330. }
  331. private int _worldLevel;
  332. [global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"worldLevel", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  333. public int worldLevel
  334. {
  335. get { return _worldLevel; }
  336. set { _worldLevel = value; }
  337. }
  338. private int _worldUpLevel;
  339. [global::ProtoBuf.ProtoMember(4, IsRequired = true, Name=@"worldUpLevel", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  340. public int worldUpLevel
  341. {
  342. get { return _worldUpLevel; }
  343. set { _worldUpLevel = value; }
  344. }
  345. private readonly global::System.Collections.Generic.List<pomelo.Avatar> _avatars = new global::System.Collections.Generic.List<pomelo.Avatar>();
  346. [global::ProtoBuf.ProtoMember(5, Name=@"avatars", DataFormat = global::ProtoBuf.DataFormat.Default)]
  347. public global::System.Collections.Generic.List<pomelo.Avatar> avatars
  348. {
  349. get { return _avatars; }
  350. }
  351. private int _addExp;
  352. [global::ProtoBuf.ProtoMember(6, IsRequired = true, Name=@"addExp", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  353. public int addExp
  354. {
  355. get { return _addExp; }
  356. set { _addExp = value; }
  357. }
  358. private int _worShipTimes;
  359. [global::ProtoBuf.ProtoMember(7, IsRequired = true, Name=@"worShipTimes", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  360. public int worShipTimes
  361. {
  362. get { return _worShipTimes; }
  363. set { _worShipTimes = value; }
  364. }
  365. private int _maxWorShipTimes;
  366. [global::ProtoBuf.ProtoMember(8, IsRequired = true, Name=@"maxWorShipTimes", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  367. public int maxWorShipTimes
  368. {
  369. get { return _maxWorShipTimes; }
  370. set { _maxWorShipTimes = value; }
  371. }
  372. private int _worldLevelPro;
  373. [global::ProtoBuf.ProtoMember(9, IsRequired = true, Name=@"worldLevelPro", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  374. public int worldLevelPro
  375. {
  376. get { return _worldLevelPro; }
  377. set { _worldLevelPro = value; }
  378. }
  379. private string _rank1stGuildName = "";
  380. /// <summary>
  381. /// 第一名玩家的公会名
  382. /// </summary>
  383. [global::ProtoBuf.ProtoMember(10, IsRequired = false, Name=@"rank1stGuildName", DataFormat = global::ProtoBuf.DataFormat.Default)]
  384. [global::System.ComponentModel.DefaultValue("")]
  385. public string rank1stGuildName
  386. {
  387. get { return _rank1stGuildName; }
  388. set { _rank1stGuildName = value; }
  389. }
  390. private long _rank1stFight = default(long);
  391. /// <summary>
  392. /// 第一名玩家的战力
  393. /// </summary>
  394. [global::ProtoBuf.ProtoMember(11, IsRequired = false, Name=@"rank1stFight", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  395. [global::System.ComponentModel.DefaultValue(default(long))]
  396. public long rank1stFight
  397. {
  398. get { return _rank1stFight; }
  399. set { _rank1stFight = value; }
  400. }
  401. private global::ProtoBuf.IExtension extensionObject;
  402. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  403. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  404. }
  405. //---------------------------------------------------------------------------------------
  406. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"WorldLevelInfoResponse")]
  407. public partial class WorldLevelInfoResponse : global::ProtoBuf.IExtensible
  408. {
  409. public WorldLevelInfoResponse() {}
  410. private int _s2c_code;
  411. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  412. public int s2c_code
  413. {
  414. get { return _s2c_code; }
  415. set { _s2c_code = value; }
  416. }
  417. private string _s2c_msg = "";
  418. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  419. [global::System.ComponentModel.DefaultValue("")]
  420. public string s2c_msg
  421. {
  422. get { return _s2c_msg; }
  423. set { _s2c_msg = value; }
  424. }
  425. private pomelo.area.WorldLevelInfo _s2c_data;
  426. [global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"s2c_data", DataFormat = global::ProtoBuf.DataFormat.Default)]
  427. public pomelo.area.WorldLevelInfo s2c_data
  428. {
  429. get { return _s2c_data; }
  430. set { _s2c_data = value; }
  431. }
  432. private global::ProtoBuf.IExtension extensionObject;
  433. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  434. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  435. }
  436. }