//------------------------------------------------------------------------------ // // 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 FishCard : Bright.Config.BeanBase { public JSONNode json; public FishCard(JSONNode _json) { { if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; } { if(!_json["FishID"].IsNumber) { throw new SerializationException(); } FishID = _json["FishID"]; } { if(!_json["Quality"].IsNumber) { throw new SerializationException(); } Quality = _json["Quality"]; } { if(!_json["MaxLevel"].IsNumber) { throw new SerializationException(); } MaxLevel = _json["MaxLevel"]; } { if(!_json["Icon"].IsString) { throw new SerializationException(); } Icon = _json["Icon"]; } { var __json0 = _json["CardsRequiredList"]; if(!__json0.IsArray) { throw new SerializationException(); } CardsRequiredList = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } CardsRequiredList.Add(__v0); } } { var __json0 = _json["WeightMagList"]; if(!__json0.IsArray) { throw new SerializationException(); } WeightMagList = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } WeightMagList.Add(__v0); } } { var __json0 = _json["DamageMagList"]; if(!__json0.IsArray) { throw new SerializationException(); } DamageMagList = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } DamageMagList.Add(__v0); } } json = _json; PostInit(); } public FishCard(int ID, int FishID, int Quality, int MaxLevel, string Icon, System.Collections.Generic.List CardsRequiredList, System.Collections.Generic.List WeightMagList, System.Collections.Generic.List DamageMagList ) { this.ID = ID; this.FishID = FishID; this.Quality = Quality; this.MaxLevel = MaxLevel; this.Icon = Icon; this.CardsRequiredList = CardsRequiredList; this.WeightMagList = WeightMagList; this.DamageMagList = DamageMagList; PostInit(); } public static FishCard DeserializeFishCard(JSONNode _json) { return new FishCard(_json); } public int ID { get; private set; } public int FishID { get; private set; } public int Quality { get; private set; } public int MaxLevel { get; private set; } public string Icon { get; private set; } public System.Collections.Generic.List CardsRequiredList { get; private set; } /// /// 到达对应熟练度等级时,赠送的鱼重量奖励 /// public System.Collections.Generic.List WeightMagList { get; private set; } /// /// 提高对鱼的伤害,和鱼竿是加法叠加 /// public System.Collections.Generic.List DamageMagList { get; private set; } public const int __ID__ = -468230744; public override int GetTypeId() => __ID__; public void Resolve(Dictionary _tables) { PostResolve(); } public void TranslateText(System.Func translator) { } public override string ToString() { return "{ " + "ID:" + ID + "," + "FishID:" + FishID + "," + "Quality:" + Quality + "," + "MaxLevel:" + MaxLevel + "," + "Icon:" + Icon + "," + "CardsRequiredList:" + Bright.Common.StringUtil.CollectionToString(CardsRequiredList) + "," + "WeightMagList:" + Bright.Common.StringUtil.CollectionToString(WeightMagList) + "," + "DamageMagList:" + Bright.Common.StringUtil.CollectionToString(DamageMagList) + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }