|
@@ -25,10 +25,12 @@ public sealed partial class SingleTreasureConfig : Bright.Config.BeanBase
|
|
|
{ var __json0 = _json["Tag"]; if(!__json0.IsArray) { throw new SerializationException(); } Tag = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Tag.Add(__v0); } }
|
|
{ var __json0 = _json["Tag"]; if(!__json0.IsArray) { throw new SerializationException(); } Tag = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Tag.Add(__v0); } }
|
|
|
{ if(!_json["Attribute"].IsString) { throw new SerializationException(); } Attribute = _json["Attribute"]; }
|
|
{ if(!_json["Attribute"].IsString) { throw new SerializationException(); } Attribute = _json["Attribute"]; }
|
|
|
{ if(!_json["Price"].IsNumber) { throw new SerializationException(); } Price = _json["Price"]; }
|
|
{ if(!_json["Price"].IsNumber) { throw new SerializationException(); } Price = _json["Price"]; }
|
|
|
|
|
+ { var __json0 = _json["Type"]; if(!__json0.IsArray) { throw new SerializationException(); } Type = new System.Collections.Generic.List<string>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } Type.Add(__v0); } }
|
|
|
|
|
+ { var __json0 = _json["Data"]; if(!__json0.IsArray) { throw new SerializationException(); } Data = new System.Collections.Generic.List<float>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Data.Add(__v0); } }
|
|
|
PostInit();
|
|
PostInit();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public SingleTreasureConfig(int ID, string Name, string SpriteName, int Quality, System.Collections.Generic.List<int> Tag, string Attribute, int Price )
|
|
|
|
|
|
|
+ public SingleTreasureConfig(int ID, string Name, string SpriteName, int Quality, System.Collections.Generic.List<int> Tag, string Attribute, int Price, System.Collections.Generic.List<string> Type, System.Collections.Generic.List<float> Data )
|
|
|
{
|
|
{
|
|
|
this.ID = ID;
|
|
this.ID = ID;
|
|
|
this.Name = Name;
|
|
this.Name = Name;
|
|
@@ -37,6 +39,8 @@ public sealed partial class SingleTreasureConfig : Bright.Config.BeanBase
|
|
|
this.Tag = Tag;
|
|
this.Tag = Tag;
|
|
|
this.Attribute = Attribute;
|
|
this.Attribute = Attribute;
|
|
|
this.Price = Price;
|
|
this.Price = Price;
|
|
|
|
|
+ this.Type = Type;
|
|
|
|
|
+ this.Data = Data;
|
|
|
PostInit();
|
|
PostInit();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -66,13 +70,21 @@ public sealed partial class SingleTreasureConfig : Bright.Config.BeanBase
|
|
|
/// </summary>
|
|
/// </summary>
|
|
|
public System.Collections.Generic.List<int> Tag { get; private set; }
|
|
public System.Collections.Generic.List<int> Tag { get; private set; }
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
- /// 宝物属性
|
|
|
|
|
|
|
+ /// 宝物加成描述
|
|
|
/// </summary>
|
|
/// </summary>
|
|
|
public string Attribute { get; private set; }
|
|
public string Attribute { get; private set; }
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// 价格
|
|
/// 价格
|
|
|
/// </summary>
|
|
/// </summary>
|
|
|
public int Price { get; private set; }
|
|
public int Price { get; private set; }
|
|
|
|
|
+ /// <summary>
|
|
|
|
|
+ /// 属性类型
|
|
|
|
|
+ /// </summary>
|
|
|
|
|
+ public System.Collections.Generic.List<string> Type { get; private set; }
|
|
|
|
|
+ /// <summary>
|
|
|
|
|
+ /// 属性
|
|
|
|
|
+ /// </summary>
|
|
|
|
|
+ public System.Collections.Generic.List<float> Data { get; private set; }
|
|
|
|
|
|
|
|
public const int __ID__ = -581043879;
|
|
public const int __ID__ = -581043879;
|
|
|
public override int GetTypeId() => __ID__;
|
|
public override int GetTypeId() => __ID__;
|
|
@@ -96,6 +108,8 @@ public sealed partial class SingleTreasureConfig : Bright.Config.BeanBase
|
|
|
+ "Tag:" + Bright.Common.StringUtil.CollectionToString(Tag) + ","
|
|
+ "Tag:" + Bright.Common.StringUtil.CollectionToString(Tag) + ","
|
|
|
+ "Attribute:" + Attribute + ","
|
|
+ "Attribute:" + Attribute + ","
|
|
|
+ "Price:" + Price + ","
|
|
+ "Price:" + Price + ","
|
|
|
|
|
+ + "Type:" + Bright.Common.StringUtil.CollectionToString(Type) + ","
|
|
|
|
|
+ + "Data:" + Bright.Common.StringUtil.CollectionToString(Data) + ","
|
|
|
+ "}";
|
|
+ "}";
|
|
|
}
|
|
}
|
|
|
|
|
|