//------------------------------------------------------------------------------
//
// 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 MoreFishingCash : FishBuffType
{
public MoreFishingCash(JSONNode _json) : base(_json)
{
{ var __json0 = _json["Quality"]; if(!__json0.IsArray) { throw new SerializationException(); } Quality = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Quality.Add(__v0); } }
{ var __json0 = _json["Param"]; if(!__json0.IsArray) { throw new SerializationException(); } Param = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Param.Add(__v0); } }
PostInit();
}
public MoreFishingCash(System.Collections.Generic.List Quality, System.Collections.Generic.List Param ) : base()
{
this.Quality = Quality;
this.Param = Param;
PostInit();
}
public static MoreFishingCash DeserializeMoreFishingCash(JSONNode _json)
{
return new MoreFishingCash(_json);
}
///
/// 鱼的品质
///
public System.Collections.Generic.List Quality { get; private set; }
///
/// 对应鱼的品质列表,每种品质鱼提升的钞票数值
///
public System.Collections.Generic.List Param { get; private set; }
public const int __ID__ = 1617406504;
public override int GetTypeId() => __ID__;
public override void Resolve(Dictionary _tables)
{
base.Resolve(_tables);
PostResolve();
}
public override void TranslateText(System.Func translator)
{
base.TranslateText(translator);
}
public override string ToString()
{
return "{ "
+ "Quality:" + Bright.Common.StringUtil.CollectionToString(Quality) + ","
+ "Param:" + Bright.Common.StringUtil.CollectionToString(Param) + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}