Files
MinFt/Client/Assets/Scripts/Tables/FishCardDrop.cs
2026-04-27 12:07:32 +08:00

81 lines
3.0 KiB
C#

//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
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<string>(__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<int>(__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<string> BgNameList, System.Collections.Generic.List<int> 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; }
/// <summary>
/// 地图编号
/// </summary>
public int MapID { get; private set; }
public System.Collections.Generic.List<string> BgNameList { get; private set; }
/// <summary>
/// 数量
/// </summary>
public System.Collections.Generic.List<int> CountByQuality { get; private set; }
public const int __ID__ = 679537847;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary<string, object> _tables)
{
PostResolve();
}
public void TranslateText(System.Func<string, string, string> 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();
}
}