//------------------------------------------------------------------------------
//
// 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 EventLuckMagicLevel : Bright.Config.BeanBase
{
public JSONNode json;
public EventLuckMagicLevel(JSONNode _json)
{
{ if(!_json["Level"].IsNumber) { throw new SerializationException(); } Level = _json["Level"]; }
{ if(!_json["CostNumber"].IsNumber) { throw new SerializationException(); } CostNumber = _json["CostNumber"]; }
{ if(!_json["TurnItem"].IsNumber) { throw new SerializationException(); } TurnItem = _json["TurnItem"]; }
{ var __json0 = _json["TurnConfig"]; if(!__json0.IsArray) { throw new SerializationException(); } TurnConfig = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } TurnConfig.Add(__v0); } }
{ if(!_json["TurnDrop"].IsNumber) { throw new SerializationException(); } TurnDrop = _json["TurnDrop"]; }
{ if(!_json["TurnTime"].IsNumber) { throw new SerializationException(); } TurnTime = _json["TurnTime"]; }
json = _json;
PostInit();
}
public EventLuckMagicLevel(int Level, int CostNumber, int TurnItem, System.Collections.Generic.List TurnConfig, int TurnDrop, int TurnTime )
{
this.Level = Level;
this.CostNumber = CostNumber;
this.TurnItem = TurnItem;
this.TurnConfig = TurnConfig;
this.TurnDrop = TurnDrop;
this.TurnTime = TurnTime;
PostInit();
}
public static EventLuckMagicLevel DeserializeEventLuckMagicLevel(JSONNode _json)
{
return new EventLuckMagicLevel(_json);
}
public int Level { get; private set; }
public int CostNumber { get; private set; }
public int TurnItem { get; private set; }
///
/// 当该圈的剩余道具(含转向牌)≤X时,将转向牌的权重强制置为Y
///
public System.Collections.Generic.List TurnConfig { get; private set; }
public int TurnDrop { get; private set; }
public int TurnTime { get; private set; }
public const int __ID__ = -1717107326;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary _tables)
{
PostResolve();
}
public void TranslateText(System.Func translator)
{
}
public override string ToString()
{
return "{ "
+ "Level:" + Level + ","
+ "CostNumber:" + CostNumber + ","
+ "TurnItem:" + TurnItem + ","
+ "TurnConfig:" + Bright.Common.StringUtil.CollectionToString(TurnConfig) + ","
+ "TurnDrop:" + TurnDrop + ","
+ "TurnTime:" + TurnTime + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}