//------------------------------------------------------------------------------
//
// 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 FishCardDrop : Bright.Config.BeanBase
{
public JSONNode json;
public FishCardDrop(JSONNode _json)
{
{ if(!_json["CardBoxID"].IsNumber) { throw new SerializationException(); } CardBoxID = _json["CardBoxID"]; }
{ if(!_json["MapID"].IsNumber) { throw new SerializationException(); } MapID = _json["MapID"]; }
{ var __json0 = _json["BgNameList"]; if(!__json0.IsArray) { throw new SerializationException(); } BgNameList = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } BgNameList.Add(__v0); } }
{ var __json0 = _json["CountByQuality"]; if(!__json0.IsArray) { throw new SerializationException(); } CountByQuality = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } CountByQuality.Add(__v0); } }
json = _json;
PostInit();
}
public FishCardDrop(int CardBoxID, int MapID, System.Collections.Generic.List BgNameList, System.Collections.Generic.List CountByQuality )
{
this.CardBoxID = CardBoxID;
this.MapID = MapID;
this.BgNameList = BgNameList;
this.CountByQuality = CountByQuality;
PostInit();
}
public static FishCardDrop DeserializeFishCardDrop(JSONNode _json)
{
return new FishCardDrop(_json);
}
public int CardBoxID { get; private set; }
///
/// 地图编号
///
public int MapID { get; private set; }
public System.Collections.Generic.List BgNameList { get; private set; }
///
/// 数量
///
public System.Collections.Generic.List CountByQuality { get; private set; }
public const int __ID__ = 679537847;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary _tables)
{
PostResolve();
}
public void TranslateText(System.Func translator)
{
}
public override string ToString()
{
return "{ "
+ "CardBoxID:" + CardBoxID + ","
+ "MapID:" + MapID + ","
+ "BgNameList:" + Bright.Common.StringUtil.CollectionToString(BgNameList) + ","
+ "CountByQuality:" + Bright.Common.StringUtil.CollectionToString(CountByQuality) + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}