133 lines
8.6 KiB
C#
133 lines
8.6 KiB
C#
//------------------------------------------------------------------------------
|
||
// <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 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<int>(__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<int>(__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<int>(__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<int>(__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<System.Collections.Generic.List<string>>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { System.Collections.Generic.List<string> __v0; { var __json1 = __e0; if(!__json1.IsArray) { throw new SerializationException(); } __v0 = new System.Collections.Generic.List<string>(__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<System.Collections.Generic.List<int>>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { System.Collections.Generic.List<int> __v0; { var __json1 = __e0; if(!__json1.IsArray) { throw new SerializationException(); } __v0 = new System.Collections.Generic.List<int>(__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<System.Collections.Generic.List<int>>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { System.Collections.Generic.List<int> __v0; { var __json1 = __e0; if(!__json1.IsArray) { throw new SerializationException(); } __v0 = new System.Collections.Generic.List<int>(__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<int> AscentTransformed, System.Collections.Generic.List<int> DefaultPerk, System.Collections.Generic.List<int> PerkUnlockOrder, System.Collections.Generic.List<int> PerkIDList, System.Collections.Generic.List<System.Collections.Generic.List<string>> PerkDataList, System.Collections.Generic.List<System.Collections.Generic.List<int>> AscentBasicStat, System.Collections.Generic.List<System.Collections.Generic.List<int>> 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; }
|
||
/// <summary>
|
||
/// 和品质有关
|
||
/// </summary>
|
||
public int MaxAscent { get; private set; }
|
||
/// <summary>
|
||
/// 该鱼竿对应的碎片编号,Item表主键
|
||
/// </summary>
|
||
public int FragmentID { get; private set; }
|
||
/// <summary>
|
||
/// 重复获得鱼竿时,转化为对应碎片数量
|
||
/// </summary>
|
||
public int DuplicationTransformed { get; private set; }
|
||
/// <summary>
|
||
/// 每次升级时需要的碎片<br/>数组第0个数表示合成需要的碎片数量
|
||
/// </summary>
|
||
public System.Collections.Generic.List<int> AscentTransformed { get; private set; }
|
||
/// <summary>
|
||
/// 对应属性列表中的第一个元素
|
||
/// </summary>
|
||
public System.Collections.Generic.List<int> DefaultPerk { get; private set; }
|
||
/// <summary>
|
||
/// 每次升星要升级哪条特性<br/>对应PerkIDList中的顺序
|
||
/// </summary>
|
||
public System.Collections.Generic.List<int> PerkUnlockOrder { get; private set; }
|
||
/// <summary>
|
||
/// 对应RodEnhancePerk主键
|
||
/// </summary>
|
||
public System.Collections.Generic.List<int> PerkIDList { get; private set; }
|
||
/// <summary>
|
||
/// 提供数值,和属性列表一一对应,最多成长3条属性
|
||
/// </summary>
|
||
public System.Collections.Generic.List<System.Collections.Generic.List<string>> PerkDataList { get; private set; }
|
||
/// <summary>
|
||
/// 对应RodBasicStats中的顺序
|
||
/// </summary>
|
||
public System.Collections.Generic.List<System.Collections.Generic.List<int>> AscentBasicStat { get; private set; }
|
||
/// <summary>
|
||
/// 提供数值,和后边的属性一一对应,最多成长3条属性
|
||
/// </summary>
|
||
public System.Collections.Generic.List<System.Collections.Generic.List<int>> AscentBasicStatList { get; private set; }
|
||
|
||
public const int __ID__ = -1477754543;
|
||
public override int GetTypeId() => __ID__;
|
||
|
||
public void Resolve(Dictionary<string, object> _tables)
|
||
{
|
||
PostResolve();
|
||
}
|
||
|
||
public void TranslateText(System.Func<string, string, string> 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();
|
||
}
|
||
}
|