//------------------------------------------------------------------------------
//
// 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 ETKeepsake : EventTargetExtraDrop
{
public ETKeepsake(JSONNode _json) : base(_json)
{
{ if(!_json["FishbuffID"].IsNumber) { throw new SerializationException(); } FishbuffID = _json["FishbuffID"]; }
{ var __json0 = _json["FishIDList"]; if(!__json0.IsArray) { throw new SerializationException(); } FishIDList = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } FishIDList.Add(__v0); } }
{ var __json0 = _json["FishWeightList"]; if(!__json0.IsArray) { throw new SerializationException(); } FishWeightList = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } FishWeightList.Add(__v0); } }
{ var __json0 = _json["FishExtraDropList"]; if(!__json0.IsArray) { throw new SerializationException(); } FishExtraDropList = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } FishExtraDropList.Add(__v0); } }
{ var __json0 = _json["KeepsakeWeight"]; if(!__json0.IsArray) { throw new SerializationException(); } KeepsakeWeight = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } KeepsakeWeight.Add(__v0); } }
PostInit();
}
public ETKeepsake(int FishbuffID, System.Collections.Generic.List FishIDList, System.Collections.Generic.List FishWeightList, System.Collections.Generic.List FishExtraDropList, System.Collections.Generic.List KeepsakeWeight ) : base()
{
this.FishbuffID = FishbuffID;
this.FishIDList = FishIDList;
this.FishWeightList = FishWeightList;
this.FishExtraDropList = FishExtraDropList;
this.KeepsakeWeight = KeepsakeWeight;
PostInit();
}
public static ETKeepsake DeserializeETKeepsake(JSONNode _json)
{
return new ETKeepsake(_json);
}
///
/// 钓鱼buff编号
///
public int FishbuffID { get; private set; }
///
/// 信物+特殊鱼编号
///
public System.Collections.Generic.List FishIDList { get; private set; }
///
/// 信物+特殊鱼权重
///
public System.Collections.Generic.List FishWeightList { get; private set; }
///
/// 信物+特殊鱼额外掉落
///
public System.Collections.Generic.List FishExtraDropList { get; private set; }
///
/// 每日信物权重
///
public System.Collections.Generic.List KeepsakeWeight { get; private set; }
public const int __ID__ = 2126966524;
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 "{ "
+ "FishbuffID:" + FishbuffID + ","
+ "FishIDList:" + Bright.Common.StringUtil.CollectionToString(FishIDList) + ","
+ "FishWeightList:" + Bright.Common.StringUtil.CollectionToString(FishWeightList) + ","
+ "FishExtraDropList:" + Bright.Common.StringUtil.CollectionToString(FishExtraDropList) + ","
+ "KeepsakeWeight:" + Bright.Common.StringUtil.CollectionToString(KeepsakeWeight) + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}