|
|
@@ -0,0 +1,72 @@
|
|
|
+
|
|
|
+//------------------------------------------------------------------------------
|
|
|
+// <auto-generated>
|
|
|
+// This code was generated by a tool.
|
|
|
+// Changes to this file may cause incorrect behavior and will be lost if
|
|
|
+// the code is regenerated.
|
|
|
+// </auto-generated>
|
|
|
+//------------------------------------------------------------------------------
|
|
|
+
|
|
|
+using Luban;
|
|
|
+
|
|
|
+
|
|
|
+namespace ET.role
|
|
|
+{
|
|
|
+ [EnableClass]
|
|
|
+ public sealed partial class Shop : Luban.BeanBase
|
|
|
+ {
|
|
|
+ public Shop(ByteBuf _buf)
|
|
|
+ {
|
|
|
+ Id = _buf.ReadInt();
|
|
|
+ Name = _buf.ReadString();
|
|
|
+ AutoRefresh = _buf.ReadInt();
|
|
|
+ UserRefreshMax = _buf.ReadInt();
|
|
|
+ IsLeagueShop = _buf.ReadInt();
|
|
|
+ IsDaySeed = _buf.ReadInt();
|
|
|
+ {int n0 = _buf.ReadSize(); UserRefreshCost = new System.Collections.Generic.List<ItemParam>(n0);for(var i0 = 0 ; i0 < n0 ; i0++) { ItemParam _e0; _e0 = global::ET.ItemParam.DeserializeItemParam(_buf); UserRefreshCost.Add(_e0);}}
|
|
|
+ ShopType = _buf.ReadString();
|
|
|
+
|
|
|
+ EndInit();
|
|
|
+ }
|
|
|
+
|
|
|
+ public static Shop DeserializeShop(ByteBuf _buf)
|
|
|
+ {
|
|
|
+ return new role.Shop(_buf);
|
|
|
+ }
|
|
|
+
|
|
|
+ public readonly int Id;
|
|
|
+ public readonly string Name;
|
|
|
+ public readonly int AutoRefresh;
|
|
|
+ public readonly int UserRefreshMax;
|
|
|
+ public readonly int IsLeagueShop;
|
|
|
+ public readonly int IsDaySeed;
|
|
|
+ public readonly System.Collections.Generic.List<ItemParam> UserRefreshCost;
|
|
|
+ public readonly string ShopType;
|
|
|
+
|
|
|
+ public const int __ID__ = 289792398;
|
|
|
+ public override int GetTypeId() => __ID__;
|
|
|
+
|
|
|
+ public void ResolveRef()
|
|
|
+ {
|
|
|
+ EndRef();
|
|
|
+ }
|
|
|
+
|
|
|
+ public override string ToString()
|
|
|
+ {
|
|
|
+ return "{ "
|
|
|
+ + "id:" + Id + ","
|
|
|
+ + "name:" + Name + ","
|
|
|
+ + "autoRefresh:" + AutoRefresh + ","
|
|
|
+ + "userRefreshMax:" + UserRefreshMax + ","
|
|
|
+ + "isLeagueShop:" + IsLeagueShop + ","
|
|
|
+ + "isDaySeed:" + IsDaySeed + ","
|
|
|
+ + "userRefreshCost:" + Luban.StringUtil.CollectionToString(UserRefreshCost) + ","
|
|
|
+ + "shopType:" + ShopType + ","
|
|
|
+ + "}";
|
|
|
+ }
|
|
|
+
|
|
|
+ partial void EndRef();
|
|
|
+ }
|
|
|
+
|
|
|
+}
|
|
|
+
|