_rankHandler.cs 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  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-05-02
  12. // * 用途= 称号
  13. // ***************************************************************************
  14. // Generated from: rankHandler.proto
  15. // Note: requires additional types generated from: common.proto
  16. namespace pomelo.area
  17. {
  18. //---------------------------------------------------------------------------------------
  19. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"AwardRank")]
  20. public partial class AwardRank : global::ProtoBuf.IExtensible
  21. {
  22. public AwardRank() {}
  23. private int _id;
  24. /// <summary>
  25. /// 称号ID
  26. /// </summary>
  27. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  28. public int id
  29. {
  30. get { return _id; }
  31. set { _id = value; }
  32. }
  33. private int _invalidTime;
  34. /// <summary>
  35. /// 失效时间戳(秒)
  36. /// </summary>
  37. [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"invalidTime", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  38. public int invalidTime
  39. {
  40. get { return _invalidTime; }
  41. set { _invalidTime = value; }
  42. }
  43. private global::ProtoBuf.IExtension extensionObject;
  44. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  45. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  46. }
  47. //---------------------------------------------------------------------------------------
  48. /// <summary>
  49. /// 获取称号信息(主界面)
  50. /// </summary>
  51. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GetRankInfoRequest")]
  52. public partial class GetRankInfoRequest : global::ProtoBuf.IExtensible
  53. {
  54. public GetRankInfoRequest() {}
  55. private global::ProtoBuf.IExtension extensionObject;
  56. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  57. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  58. }
  59. //---------------------------------------------------------------------------------------
  60. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GetRankInfoResponse")]
  61. public partial class GetRankInfoResponse : global::ProtoBuf.IExtensible
  62. {
  63. public GetRankInfoResponse() {}
  64. private int _s2c_code;
  65. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  66. public int s2c_code
  67. {
  68. get { return _s2c_code; }
  69. set { _s2c_code = value; }
  70. }
  71. private string _s2c_msg = "";
  72. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  73. [global::System.ComponentModel.DefaultValue("")]
  74. public string s2c_msg
  75. {
  76. get { return _s2c_msg; }
  77. set { _s2c_msg = value; }
  78. }
  79. private readonly global::System.Collections.Generic.List<pomelo.area.AwardRank> _s2c_awardRanks = new global::System.Collections.Generic.List<pomelo.area.AwardRank>();
  80. /// <summary>
  81. /// 获得的称号
  82. /// </summary>
  83. [global::ProtoBuf.ProtoMember(3, Name=@"s2c_awardRanks", DataFormat = global::ProtoBuf.DataFormat.Default)]
  84. public global::System.Collections.Generic.List<pomelo.area.AwardRank> s2c_awardRanks
  85. {
  86. get { return _s2c_awardRanks; }
  87. }
  88. private int _s2c_selectedRankId = default(int);
  89. /// <summary>
  90. /// 选中称号ID
  91. /// </summary>
  92. [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"s2c_selectedRankId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  93. [global::System.ComponentModel.DefaultValue(default(int))]
  94. public int s2c_selectedRankId
  95. {
  96. get { return _s2c_selectedRankId; }
  97. set { _s2c_selectedRankId = value; }
  98. }
  99. private int _s2c_fightPower = default(int);
  100. /// <summary>
  101. /// 战力
  102. /// </summary>
  103. [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"s2c_fightPower", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  104. [global::System.ComponentModel.DefaultValue(default(int))]
  105. public int s2c_fightPower
  106. {
  107. get { return _s2c_fightPower; }
  108. set { _s2c_fightPower = value; }
  109. }
  110. private global::ProtoBuf.IExtension extensionObject;
  111. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  112. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  113. }
  114. //---------------------------------------------------------------------------------------
  115. /// <summary>
  116. /// 保存称号
  117. /// </summary>
  118. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"SaveRankNotify")]
  119. public partial class SaveRankNotify : global::ProtoBuf.IExtensible
  120. {
  121. public SaveRankNotify() {}
  122. private int _c2s_selectedRankId;
  123. /// <summary>
  124. /// 选中称号ID
  125. /// </summary>
  126. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"c2s_selectedRankId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  127. public int c2s_selectedRankId
  128. {
  129. get { return _c2s_selectedRankId; }
  130. set { _c2s_selectedRankId = value; }
  131. }
  132. private global::ProtoBuf.IExtension extensionObject;
  133. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  134. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  135. }
  136. //---------------------------------------------------------------------------------------
  137. /// <summary>
  138. /// 获得称号
  139. /// </summary>
  140. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"OnAwardRankPush")]
  141. public partial class OnAwardRankPush : global::ProtoBuf.IExtensible
  142. {
  143. public OnAwardRankPush() {}
  144. private int _s2c_code;
  145. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  146. public int s2c_code
  147. {
  148. get { return _s2c_code; }
  149. set { _s2c_code = value; }
  150. }
  151. private int _s2c_awardRankId;
  152. /// <summary>
  153. /// 获得称号ID
  154. /// </summary>
  155. [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"s2c_awardRankId", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  156. public int s2c_awardRankId
  157. {
  158. get { return _s2c_awardRankId; }
  159. set { _s2c_awardRankId = value; }
  160. }
  161. private global::ProtoBuf.IExtension extensionObject;
  162. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  163. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  164. }
  165. }