//------------------------------------------------------------------------------
//
// 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 EventPartnerStatueCombine : Bright.Config.BeanBase
{
public JSONNode json;
public EventPartnerStatueCombine(JSONNode _json)
{
{ if(!_json["ComboID"].IsNumber) { throw new SerializationException(); } ComboID = _json["ComboID"]; }
{ if(!_json["Point"].IsNumber) { throw new SerializationException(); } Point = _json["Point"]; }
{ var __json0 = _json["SpinResult"]; if(!__json0.IsArray) { throw new SerializationException(); } SpinResult = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } SpinResult.Add(__v0); } }
json = _json;
PostInit();
}
public EventPartnerStatueCombine(int ComboID, int Point, System.Collections.Generic.List SpinResult )
{
this.ComboID = ComboID;
this.Point = Point;
this.SpinResult = SpinResult;
PostInit();
}
public static EventPartnerStatueCombine DeserializeEventPartnerStatueCombine(JSONNode _json)
{
return new EventPartnerStatueCombine(_json);
}
public int ComboID { get; private set; }
public int Point { get; private set; }
public System.Collections.Generic.List SpinResult { get; private set; }
public const int __ID__ = 889645677;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary _tables)
{
PostResolve();
}
public void TranslateText(System.Func translator)
{
}
public override string ToString()
{
return "{ "
+ "ComboID:" + ComboID + ","
+ "Point:" + Point + ","
+ "SpinResult:" + Bright.Common.StringUtil.CollectionToString(SpinResult) + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}