//------------------------------------------------------------------------------
//
// 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 EventPartnerStatueSpinPoints : Bright.Config.BeanBase
{
public JSONNode json;
public EventPartnerStatueSpinPoints(JSONNode _json)
{
{ if(!_json["PointID"].IsNumber) { throw new SerializationException(); } PointID = _json["PointID"]; }
{ if(!_json["Point"].IsNumber) { throw new SerializationException(); } Point = _json["Point"]; }
{ if(!_json["Weight"].IsNumber) { throw new SerializationException(); } Weight = _json["Weight"]; }
{ var __json0 = _json["Display"]; if(!__json0.IsArray) { throw new SerializationException(); } Display = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Display.Add(__v0); } }
json = _json;
PostInit();
}
public EventPartnerStatueSpinPoints(int PointID, int Point, int Weight, System.Collections.Generic.List Display )
{
this.PointID = PointID;
this.Point = Point;
this.Weight = Weight;
this.Display = Display;
PostInit();
}
public static EventPartnerStatueSpinPoints DeserializeEventPartnerStatueSpinPoints(JSONNode _json)
{
return new EventPartnerStatueSpinPoints(_json);
}
public int PointID { get; private set; }
public int Point { get; private set; }
public int Weight { get; private set; }
///
/// 前两行是free和more,注意公式不同
///
public System.Collections.Generic.List Display { get; private set; }
public const int __ID__ = 1498702807;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary _tables)
{
PostResolve();
}
public void TranslateText(System.Func translator)
{
}
public override string ToString()
{
return "{ "
+ "PointID:" + PointID + ","
+ "Point:" + Point + ","
+ "Weight:" + Weight + ","
+ "Display:" + Bright.Common.StringUtil.CollectionToString(Display) + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}