79 lines
3.2 KiB
C#
79 lines
3.2 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 EventPinballPoint : Bright.Config.BeanBase
|
|
{
|
|
public JSONNode json;
|
|
public EventPinballPoint(JSONNode _json)
|
|
{
|
|
{ if(!_json["SpinPoint"].IsNumber) { throw new SerializationException(); } SpinPoint = _json["SpinPoint"]; }
|
|
{ if(!_json["Weight"].IsNumber) { throw new SerializationException(); } Weight = _json["Weight"]; }
|
|
{ if(!_json["DeltaLuck"].IsNumber) { throw new SerializationException(); } DeltaLuck = _json["DeltaLuck"]; }
|
|
{ if(!_json["LuckParameter"].IsNumber) { throw new SerializationException(); } LuckParameter = _json["LuckParameter"]; }
|
|
{ var __json0 = _json["ForceLv"]; if(!__json0.IsArray) { throw new SerializationException(); } ForceLv = new System.Collections.Generic.List<System.Collections.Generic.List<float>>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { System.Collections.Generic.List<float> __v0; { var __json1 = __e0; if(!__json1.IsArray) { throw new SerializationException(); } __v0 = new System.Collections.Generic.List<float>(__json1.Count); foreach(JSONNode __e1 in __json1.Children) { float __v1; { if(!__e1.IsNumber) { throw new SerializationException(); } __v1 = __e1; } __v0.Add(__v1); } } ForceLv.Add(__v0); } }
|
|
json = _json;
|
|
PostInit();
|
|
}
|
|
|
|
public EventPinballPoint(int SpinPoint, float Weight, float DeltaLuck, float LuckParameter, System.Collections.Generic.List<System.Collections.Generic.List<float>> ForceLv )
|
|
{
|
|
this.SpinPoint = SpinPoint;
|
|
this.Weight = Weight;
|
|
this.DeltaLuck = DeltaLuck;
|
|
this.LuckParameter = LuckParameter;
|
|
this.ForceLv = ForceLv;
|
|
PostInit();
|
|
}
|
|
|
|
public static EventPinballPoint DeserializeEventPinballPoint(JSONNode _json)
|
|
{
|
|
return new EventPinballPoint(_json);
|
|
}
|
|
|
|
public int SpinPoint { get; private set; }
|
|
public float Weight { get; private set; }
|
|
public float DeltaLuck { get; private set; }
|
|
public float LuckParameter { get; private set; }
|
|
public System.Collections.Generic.List<System.Collections.Generic.List<float>> ForceLv { get; private set; }
|
|
|
|
public const int __ID__ = -391283594;
|
|
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 "{ "
|
|
+ "SpinPoint:" + SpinPoint + ","
|
|
+ "Weight:" + Weight + ","
|
|
+ "DeltaLuck:" + DeltaLuck + ","
|
|
+ "LuckParameter:" + LuckParameter + ","
|
|
+ "ForceLv:" + Bright.Common.StringUtil.CollectionToString(ForceLv) + ","
|
|
+ "}";
|
|
}
|
|
|
|
partial void PostInit();
|
|
partial void PostResolve();
|
|
}
|
|
}
|