//------------------------------------------------------------------------------ // // 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 RodLevelupStats : Bright.Config.BeanBase { public JSONNode json; public RodLevelupStats(JSONNode _json) { { if(!_json["Count"].IsNumber) { throw new SerializationException(); } Count = _json["Count"]; } { if(!_json["CashBonus"].IsNumber) { throw new SerializationException(); } CashBonus = _json["CashBonus"]; } { if(!_json["PointBonus"].IsNumber) { throw new SerializationException(); } PointBonus = _json["PointBonus"]; } json = _json; PostInit(); } public RodLevelupStats(int Count, float CashBonus, float PointBonus ) { this.Count = Count; this.CashBonus = CashBonus; this.PointBonus = PointBonus; PostInit(); } public static RodLevelupStats DeserializeRodLevelupStats(JSONNode _json) { return new RodLevelupStats(_json); } public int Count { get; private set; } /// /// 废弃 /// public float CashBonus { get; private set; } /// /// 废弃 /// public float PointBonus { get; private set; } public const int __ID__ = -963565049; public override int GetTypeId() => __ID__; public void Resolve(Dictionary _tables) { PostResolve(); } public void TranslateText(System.Func translator) { } public override string ToString() { return "{ " + "Count:" + Count + "," + "CashBonus:" + CashBonus + "," + "PointBonus:" + PointBonus + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }