85 lines
2.6 KiB
C#
85 lines
2.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.VihecleCultivateCfg
|
|
{
|
|
|
|
public sealed partial class DataVehicleUpgradeBonus : Bright.Config.BeanBase
|
|
{
|
|
public DataVehicleUpgradeBonus(JSONNode _json)
|
|
{
|
|
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
|
|
{ if(!_json["SumCount"].IsNumber) { throw new SerializationException(); } SumCount = _json["SumCount"]; }
|
|
{ if(!_json["BonusType"].IsNumber) { throw new SerializationException(); } BonusType = (VihecleCultivateCfg.BonusType)_json["BonusType"].AsInt; }
|
|
{ if(!_json["BonusPropertyCount"].IsNumber) { throw new SerializationException(); } BonusPropertyCount = _json["BonusPropertyCount"]; }
|
|
PostInit();
|
|
}
|
|
|
|
public DataVehicleUpgradeBonus(int ID, int SumCount, VihecleCultivateCfg.BonusType BonusType, float BonusPropertyCount )
|
|
{
|
|
this.ID = ID;
|
|
this.SumCount = SumCount;
|
|
this.BonusType = BonusType;
|
|
this.BonusPropertyCount = BonusPropertyCount;
|
|
PostInit();
|
|
}
|
|
|
|
public static DataVehicleUpgradeBonus DeserializeDataVehicleUpgradeBonus(JSONNode _json)
|
|
{
|
|
return new VihecleCultivateCfg.DataVehicleUpgradeBonus(_json);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 载具ID
|
|
/// </summary>
|
|
public int ID { get; private set; }
|
|
/// <summary>
|
|
/// 总强化次数
|
|
/// </summary>
|
|
public int SumCount { get; private set; }
|
|
/// <summary>
|
|
/// Bonus类型
|
|
/// </summary>
|
|
public VihecleCultivateCfg.BonusType BonusType { get; private set; }
|
|
/// <summary>
|
|
/// Bonus属性值
|
|
/// </summary>
|
|
public float BonusPropertyCount { get; private set; }
|
|
|
|
public const int __ID__ = -167785700;
|
|
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 + ","
|
|
+ "SumCount:" + SumCount + ","
|
|
+ "BonusType:" + BonusType + ","
|
|
+ "BonusPropertyCount:" + BonusPropertyCount + ","
|
|
+ "}";
|
|
}
|
|
|
|
partial void PostInit();
|
|
partial void PostResolve();
|
|
}
|
|
}
|