//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
using Bright.Serialization;
using System.Collections.Generic;
using SimpleJSON;
namespace cfg
{
public sealed partial class RodAscend : Bright.Config.BeanBase
{
public JSONNode json;
public RodAscend(JSONNode _json)
{
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
{ if(!_json["MaxAscent"].IsNumber) { throw new SerializationException(); } MaxAscent = _json["MaxAscent"]; }
{ if(!_json["FragmentID"].IsNumber) { throw new SerializationException(); } FragmentID = _json["FragmentID"]; }
{ if(!_json["DuplicationTransformed"].IsNumber) { throw new SerializationException(); } DuplicationTransformed = _json["DuplicationTransformed"]; }
{ var __json0 = _json["AscentTransformed"]; if(!__json0.IsArray) { throw new SerializationException(); } AscentTransformed = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } AscentTransformed.Add(__v0); } }
{ var __json0 = _json["DefaultPerk"]; if(!__json0.IsArray) { throw new SerializationException(); } DefaultPerk = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } DefaultPerk.Add(__v0); } }
{ var __json0 = _json["PerkUnlockOrder"]; if(!__json0.IsArray) { throw new SerializationException(); } PerkUnlockOrder = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } PerkUnlockOrder.Add(__v0); } }
{ var __json0 = _json["PerkIDList"]; if(!__json0.IsArray) { throw new SerializationException(); } PerkIDList = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } PerkIDList.Add(__v0); } }
{ var __json0 = _json["PerkDataList"]; if(!__json0.IsArray) { throw new SerializationException(); } PerkDataList = new System.Collections.Generic.List>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { System.Collections.Generic.List __v0; { var __json1 = __e0; if(!__json1.IsArray) { throw new SerializationException(); } __v0 = new System.Collections.Generic.List(__json1.Count); foreach(JSONNode __e1 in __json1.Children) { string __v1; { if(!__e1.IsString) { throw new SerializationException(); } __v1 = __e1; } __v0.Add(__v1); } } PerkDataList.Add(__v0); } }
{ var __json0 = _json["AscentBasicStat"]; if(!__json0.IsArray) { throw new SerializationException(); } AscentBasicStat = new System.Collections.Generic.List>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { System.Collections.Generic.List __v0; { var __json1 = __e0; if(!__json1.IsArray) { throw new SerializationException(); } __v0 = new System.Collections.Generic.List(__json1.Count); foreach(JSONNode __e1 in __json1.Children) { int __v1; { if(!__e1.IsNumber) { throw new SerializationException(); } __v1 = __e1; } __v0.Add(__v1); } } AscentBasicStat.Add(__v0); } }
{ var __json0 = _json["AscentBasicStatList"]; if(!__json0.IsArray) { throw new SerializationException(); } AscentBasicStatList = new System.Collections.Generic.List>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { System.Collections.Generic.List __v0; { var __json1 = __e0; if(!__json1.IsArray) { throw new SerializationException(); } __v0 = new System.Collections.Generic.List(__json1.Count); foreach(JSONNode __e1 in __json1.Children) { int __v1; { if(!__e1.IsNumber) { throw new SerializationException(); } __v1 = __e1; } __v0.Add(__v1); } } AscentBasicStatList.Add(__v0); } }
json = _json;
PostInit();
}
public RodAscend(int ID, int MaxAscent, int FragmentID, int DuplicationTransformed, System.Collections.Generic.List AscentTransformed, System.Collections.Generic.List DefaultPerk, System.Collections.Generic.List PerkUnlockOrder, System.Collections.Generic.List PerkIDList, System.Collections.Generic.List> PerkDataList, System.Collections.Generic.List> AscentBasicStat, System.Collections.Generic.List> AscentBasicStatList )
{
this.ID = ID;
this.MaxAscent = MaxAscent;
this.FragmentID = FragmentID;
this.DuplicationTransformed = DuplicationTransformed;
this.AscentTransformed = AscentTransformed;
this.DefaultPerk = DefaultPerk;
this.PerkUnlockOrder = PerkUnlockOrder;
this.PerkIDList = PerkIDList;
this.PerkDataList = PerkDataList;
this.AscentBasicStat = AscentBasicStat;
this.AscentBasicStatList = AscentBasicStatList;
PostInit();
}
public static RodAscend DeserializeRodAscend(JSONNode _json)
{
return new RodAscend(_json);
}
public int ID { get; private set; }
///
/// 和品质有关
///
public int MaxAscent { get; private set; }
///
/// 该鱼竿对应的碎片编号,Item表主键
///
public int FragmentID { get; private set; }
///
/// 重复获得鱼竿时,转化为对应碎片数量
///
public int DuplicationTransformed { get; private set; }
///
/// 每次升级时需要的碎片
数组第0个数表示合成需要的碎片数量
///
public System.Collections.Generic.List AscentTransformed { get; private set; }
///
/// 对应属性列表中的第一个元素
///
public System.Collections.Generic.List DefaultPerk { get; private set; }
///
/// 每次升星要升级哪条特性
对应PerkIDList中的顺序
///
public System.Collections.Generic.List PerkUnlockOrder { get; private set; }
///
/// 对应RodEnhancePerk主键
///
public System.Collections.Generic.List PerkIDList { get; private set; }
///
/// 提供数值,和属性列表一一对应,最多成长3条属性
///
public System.Collections.Generic.List> PerkDataList { get; private set; }
///
/// 对应RodBasicStats中的顺序
///
public System.Collections.Generic.List> AscentBasicStat { get; private set; }
///
/// 提供数值,和后边的属性一一对应,最多成长3条属性
///
public System.Collections.Generic.List> AscentBasicStatList { get; private set; }
public const int __ID__ = -1477754543;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary _tables)
{
PostResolve();
}
public void TranslateText(System.Func translator)
{
}
public override string ToString()
{
return "{ "
+ "ID:" + ID + ","
+ "MaxAscent:" + MaxAscent + ","
+ "FragmentID:" + FragmentID + ","
+ "DuplicationTransformed:" + DuplicationTransformed + ","
+ "AscentTransformed:" + Bright.Common.StringUtil.CollectionToString(AscentTransformed) + ","
+ "DefaultPerk:" + Bright.Common.StringUtil.CollectionToString(DefaultPerk) + ","
+ "PerkUnlockOrder:" + Bright.Common.StringUtil.CollectionToString(PerkUnlockOrder) + ","
+ "PerkIDList:" + Bright.Common.StringUtil.CollectionToString(PerkIDList) + ","
+ "PerkDataList:" + Bright.Common.StringUtil.CollectionToString(PerkDataList) + ","
+ "AscentBasicStat:" + Bright.Common.StringUtil.CollectionToString(AscentBasicStat) + ","
+ "AscentBasicStatList:" + Bright.Common.StringUtil.CollectionToString(AscentBasicStatList) + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}