//------------------------------------------------------------------------------
//
// 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 EventPinballMain : Bright.Config.BeanBase
{
public JSONNode json;
public EventPinballMain(JSONNode _json)
{
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
{ if(!_json["UIPanel"].IsString) { throw new SerializationException(); } UIPanel = _json["UIPanel"]; }
{ if(!_json["InfoPanel"].IsString) { throw new SerializationException(); } InfoPanel = _json["InfoPanel"]; }
{ if(!_json["Scene"].IsString) { throw new SerializationException(); } Scene = _json["Scene"]; }
{ if(!_json["Icon"].IsString) { throw new SerializationException(); } Icon = _json["Icon"]; }
{ if(!_json["PackId"].IsNumber) { throw new SerializationException(); } PackId = _json["PackId"]; }
{ var __json0 = _json["Addressable"]; if(!__json0.IsArray) { throw new SerializationException(); } Addressable = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } Addressable.Add(__v0); } }
{ if(!_json["Atlas"].IsString) { throw new SerializationException(); } Atlas = _json["Atlas"]; }
{ if(!_json["Bgm"].IsString) { throw new SerializationException(); } Bgm = _json["Bgm"]; }
{ if(!_json["Pinball"].IsNumber) { throw new SerializationException(); } Pinball = _json["Pinball"]; }
{ if(!_json["SpinRequire"].IsNumber) { throw new SerializationException(); } SpinRequire = _json["SpinRequire"]; }
{ var __json0 = _json["SpinMag"]; if(!__json0.IsArray) { throw new SerializationException(); } SpinMag = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } SpinMag.Add(__v0); } }
{ if(!_json["FailMaxDist"].IsNumber) { throw new SerializationException(); } FailMaxDist = _json["FailMaxDist"]; }
{ if(!_json["FailMaxForce"].IsNumber) { throw new SerializationException(); } FailMaxForce = _json["FailMaxForce"]; }
{ var __json0 = _json["CameraPosition"]; if(!__json0.IsArray) { throw new SerializationException(); } CameraPosition = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { float __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } CameraPosition.Add(__v0); } }
{ if(!_json["CameraSize"].IsNumber) { throw new SerializationException(); } CameraSize = _json["CameraSize"]; }
{ if(!_json["InitialLuck"].IsNumber) { throw new SerializationException(); } InitialLuck = _json["InitialLuck"]; }
{ var __json0 = _json["GuidanceGroupList"]; if(!__json0.IsArray) { throw new SerializationException(); } GuidanceGroupList = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { throw new SerializationException(); } __v0 = __e0; } GuidanceGroupList.Add(__v0); } }
json = _json;
PostInit();
}
public EventPinballMain(int ID, string UIPanel, string InfoPanel, string Scene, string Icon, int PackId, System.Collections.Generic.List Addressable, string Atlas, string Bgm, int Pinball, int SpinRequire, System.Collections.Generic.List SpinMag, float FailMaxDist, float FailMaxForce, System.Collections.Generic.List CameraPosition, float CameraSize, int InitialLuck, System.Collections.Generic.List GuidanceGroupList )
{
this.ID = ID;
this.UIPanel = UIPanel;
this.InfoPanel = InfoPanel;
this.Scene = Scene;
this.Icon = Icon;
this.PackId = PackId;
this.Addressable = Addressable;
this.Atlas = Atlas;
this.Bgm = Bgm;
this.Pinball = Pinball;
this.SpinRequire = SpinRequire;
this.SpinMag = SpinMag;
this.FailMaxDist = FailMaxDist;
this.FailMaxForce = FailMaxForce;
this.CameraPosition = CameraPosition;
this.CameraSize = CameraSize;
this.InitialLuck = InitialLuck;
this.GuidanceGroupList = GuidanceGroupList;
PostInit();
}
public static EventPinballMain DeserializeEventPinballMain(JSONNode _json)
{
return new EventPinballMain(_json);
}
public int ID { get; private set; }
public string UIPanel { get; private set; }
public string InfoPanel { get; private set; }
public string Scene { get; private set; }
public string Icon { get; private set; }
///
/// 读shop表
///
public int PackId { get; private set; }
public System.Collections.Generic.List Addressable { get; private set; }
public string Atlas { get; private set; }
public string Bgm { get; private set; }
///
/// item表id
///
public int Pinball { get; private set; }
public int SpinRequire { get; private set; }
public System.Collections.Generic.List SpinMag { get; private set; }
///
/// 无法弹出档位的下拉距离百分比
///
public float FailMaxDist { get; private set; }
///
/// 无法弹出档位的最大力
///
public float FailMaxForce { get; private set; }
public System.Collections.Generic.List CameraPosition { get; private set; }
public float CameraSize { get; private set; }
public int InitialLuck { get; private set; }
public System.Collections.Generic.List GuidanceGroupList { get; private set; }
public const int __ID__ = 1234201107;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary _tables)
{
PostResolve();
}
public void TranslateText(System.Func translator)
{
}
public override string ToString()
{
return "{ "
+ "ID:" + ID + ","
+ "UIPanel:" + UIPanel + ","
+ "InfoPanel:" + InfoPanel + ","
+ "Scene:" + Scene + ","
+ "Icon:" + Icon + ","
+ "PackId:" + PackId + ","
+ "Addressable:" + Bright.Common.StringUtil.CollectionToString(Addressable) + ","
+ "Atlas:" + Atlas + ","
+ "Bgm:" + Bgm + ","
+ "Pinball:" + Pinball + ","
+ "SpinRequire:" + SpinRequire + ","
+ "SpinMag:" + Bright.Common.StringUtil.CollectionToString(SpinMag) + ","
+ "FailMaxDist:" + FailMaxDist + ","
+ "FailMaxForce:" + FailMaxForce + ","
+ "CameraPosition:" + Bright.Common.StringUtil.CollectionToString(CameraPosition) + ","
+ "CameraSize:" + CameraSize + ","
+ "InitialLuck:" + InitialLuck + ","
+ "GuidanceGroupList:" + Bright.Common.StringUtil.CollectionToString(GuidanceGroupList) + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}