先修复一下,错误的场景 删除不必要的钓场资产 修复into场景 update:更新meta文件,修复报错 update:修复资源 修复第一章节建造 修复建造第三章 update:删除多余内容 update:更新README.md update:还原图标 update:更新README update:更新配置
154 lines
7.9 KiB
C#
154 lines
7.9 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 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["SweepPackId"].IsNumber) { throw new SerializationException(); } SweepPackId = _json["SweepPackId"]; }
|
|
{ if(!_json["PackId"].IsNumber) { throw new SerializationException(); } PackId = _json["PackId"]; }
|
|
{ if(!_json["PackPanel"].IsString) { throw new SerializationException(); } PackPanel = _json["PackPanel"]; }
|
|
{ var __json0 = _json["Addressable"]; if(!__json0.IsArray) { throw new SerializationException(); } Addressable = new System.Collections.Generic.List<string>(__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<int>(__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<float>(__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<string>(__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 SweepPackId, int PackId, string PackPanel, System.Collections.Generic.List<string> Addressable, string Atlas, string Bgm, int Pinball, int SpinRequire, System.Collections.Generic.List<int> SpinMag, float FailMaxDist, float FailMaxForce, System.Collections.Generic.List<float> CameraPosition, float CameraSize, int InitialLuck, System.Collections.Generic.List<string> GuidanceGroupList )
|
|
{
|
|
this.ID = ID;
|
|
this.UIPanel = UIPanel;
|
|
this.InfoPanel = InfoPanel;
|
|
this.Scene = Scene;
|
|
this.Icon = Icon;
|
|
this.SweepPackId = SweepPackId;
|
|
this.PackId = PackId;
|
|
this.PackPanel = PackPanel;
|
|
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; }
|
|
/// <summary>
|
|
/// 读shop表
|
|
/// </summary>
|
|
public int SweepPackId { get; private set; }
|
|
/// <summary>
|
|
/// 读shop表
|
|
/// </summary>
|
|
public int PackId { get; private set; }
|
|
public string PackPanel { get; private set; }
|
|
public System.Collections.Generic.List<string> Addressable { get; private set; }
|
|
public string Atlas { get; private set; }
|
|
public string Bgm { get; private set; }
|
|
/// <summary>
|
|
/// item表id
|
|
/// </summary>
|
|
public int Pinball { get; private set; }
|
|
public int SpinRequire { get; private set; }
|
|
public System.Collections.Generic.List<int> SpinMag { get; private set; }
|
|
/// <summary>
|
|
/// 无法弹出档位的下拉距离百分比
|
|
/// </summary>
|
|
public float FailMaxDist { get; private set; }
|
|
/// <summary>
|
|
/// 无法弹出档位的最大力
|
|
/// </summary>
|
|
public float FailMaxForce { get; private set; }
|
|
public System.Collections.Generic.List<float> CameraPosition { get; private set; }
|
|
public float CameraSize { get; private set; }
|
|
public int InitialLuck { get; private set; }
|
|
public System.Collections.Generic.List<string> GuidanceGroupList { get; private set; }
|
|
|
|
public const int __ID__ = 1234201107;
|
|
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 "{ "
|
|
+ "ID:" + ID + ","
|
|
+ "UIPanel:" + UIPanel + ","
|
|
+ "InfoPanel:" + InfoPanel + ","
|
|
+ "Scene:" + Scene + ","
|
|
+ "Icon:" + Icon + ","
|
|
+ "SweepPackId:" + SweepPackId + ","
|
|
+ "PackId:" + PackId + ","
|
|
+ "PackPanel:" + PackPanel + ","
|
|
+ "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();
|
|
}
|
|
}
|