_lotteryHandler.cs 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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. // * 创建时间: 2019-08-08
  12. // * 用途: 祭天
  13. // ***************************************************************************/
  14. // Generated from: lotteryHandler.proto
  15. // Note: requires additional types generated from: item.proto
  16. namespace pomelo.lottery
  17. {
  18. //---------------------------------------------------------------------------------------
  19. /// <summary>
  20. /// 获取祭天界面信息 请求
  21. /// </summary>
  22. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GetLotteryInfoRequest")]
  23. public partial class GetLotteryInfoRequest : global::ProtoBuf.IExtensible
  24. {
  25. public GetLotteryInfoRequest() {}
  26. private global::ProtoBuf.IExtension extensionObject;
  27. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  28. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  29. }
  30. //---------------------------------------------------------------------------------------
  31. /// <summary>
  32. /// 获取祭天界面信息 返回
  33. /// </summary>
  34. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GetLotteryInfoResponse")]
  35. public partial class GetLotteryInfoResponse : global::ProtoBuf.IExtensible
  36. {
  37. public GetLotteryInfoResponse() {}
  38. private int _s2c_code;
  39. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  40. public int s2c_code
  41. {
  42. get { return _s2c_code; }
  43. set { _s2c_code = value; }
  44. }
  45. private string _s2c_msg = "";
  46. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  47. [global::System.ComponentModel.DefaultValue("")]
  48. public string s2c_msg
  49. {
  50. get { return _s2c_msg; }
  51. set { _s2c_msg = value; }
  52. }
  53. private int _exploredTicketCount;
  54. /// <summary>
  55. /// 剩余祭天符数量
  56. /// </summary>
  57. [global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"exploredTicketCount", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  58. public int exploredTicketCount
  59. {
  60. get { return _exploredTicketCount; }
  61. set { _exploredTicketCount = value; }
  62. }
  63. private int _proportion;
  64. /// <summary>
  65. /// 每个祭天符需要多少仙玉
  66. /// </summary>
  67. [global::ProtoBuf.ProtoMember(4, IsRequired = true, Name=@"proportion", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  68. public int proportion
  69. {
  70. get { return _proportion; }
  71. set { _proportion = value; }
  72. }
  73. private global::ProtoBuf.IExtension extensionObject;
  74. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  75. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  76. }
  77. //---------------------------------------------------------------------------------------
  78. /// <summary>
  79. /// 祭天 请求
  80. /// </summary>
  81. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"LotteryRequest")]
  82. public partial class LotteryRequest : global::ProtoBuf.IExtensible
  83. {
  84. public LotteryRequest() {}
  85. private int _timeType;
  86. /// <summary>
  87. /// 0:单抽 1:十连抽
  88. /// </summary>
  89. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"timeType", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  90. public int timeType
  91. {
  92. get { return _timeType; }
  93. set { _timeType = value; }
  94. }
  95. private global::ProtoBuf.IExtension extensionObject;
  96. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  97. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  98. }
  99. //---------------------------------------------------------------------------------------
  100. /// <summary>
  101. /// 祭天 返回
  102. /// </summary>
  103. [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"LotteryResponse")]
  104. public partial class LotteryResponse : global::ProtoBuf.IExtensible
  105. {
  106. public LotteryResponse() {}
  107. private int _s2c_code;
  108. [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  109. public int s2c_code
  110. {
  111. get { return _s2c_code; }
  112. set { _s2c_code = value; }
  113. }
  114. private string _s2c_msg = "";
  115. [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
  116. [global::System.ComponentModel.DefaultValue("")]
  117. public string s2c_msg
  118. {
  119. get { return _s2c_msg; }
  120. set { _s2c_msg = value; }
  121. }
  122. private readonly global::System.Collections.Generic.List<pomelo.item.CountItem> _awards = new global::System.Collections.Generic.List<pomelo.item.CountItem>();
  123. /// <summary>
  124. /// 抽到的物品
  125. /// </summary>
  126. [global::ProtoBuf.ProtoMember(3, Name=@"awards", DataFormat = global::ProtoBuf.DataFormat.Default)]
  127. public global::System.Collections.Generic.List<pomelo.item.CountItem> awards
  128. {
  129. get { return _awards; }
  130. }
  131. private int _exploredTicketCount = default(int);
  132. /// <summary>
  133. /// 剩余祭天符数量
  134. /// </summary>
  135. [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"exploredTicketCount", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
  136. [global::System.ComponentModel.DefaultValue(default(int))]
  137. public int exploredTicketCount
  138. {
  139. get { return _exploredTicketCount; }
  140. set { _exploredTicketCount = value; }
  141. }
  142. private global::ProtoBuf.IExtension extensionObject;
  143. global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
  144. { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
  145. }
  146. }