194 lines
10 KiB
C#
194 lines
10 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 EventPartnerMineMain : Bright.Config.BeanBase
|
|
{
|
|
public JSONNode json;
|
|
public EventPartnerMineMain(JSONNode _json)
|
|
{
|
|
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
|
|
{ if(!_json["UIPanel"].IsString) { throw new SerializationException(); } UIPanel = _json["UIPanel"]; }
|
|
{ if(!_json["GamePanel"].IsString) { throw new SerializationException(); } GamePanel = _json["GamePanel"]; }
|
|
{ if(!_json["InfoPanel"].IsString) { throw new SerializationException(); } InfoPanel = _json["InfoPanel"]; }
|
|
{ if(!_json["PackPanel"].IsString) { throw new SerializationException(); } PackPanel = _json["PackPanel"]; }
|
|
{ if(!_json["TokenExchangeId"].IsNumber) { throw new SerializationException(); } TokenExchangeId = _json["TokenExchangeId"]; }
|
|
{ if(!_json["SweepPackId"].IsNumber) { throw new SerializationException(); } SweepPackId = _json["SweepPackId"]; }
|
|
{ if(!_json["PackId"].IsNumber) { throw new SerializationException(); } PackId = _json["PackId"]; }
|
|
{ if(!_json["Icon"].IsString) { throw new SerializationException(); } Icon = _json["Icon"]; }
|
|
{ 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["InitID"].IsNumber) { throw new SerializationException(); } InitID = _json["InitID"]; }
|
|
{ if(!_json["ItemID"].IsNumber) { throw new SerializationException(); } ItemID = _json["ItemID"]; }
|
|
{ if(!_json["SpinRequire"].IsNumber) { throw new SerializationException(); } SpinRequire = _json["SpinRequire"]; }
|
|
{ if(!_json["MaxColumn"].IsNumber) { throw new SerializationException(); } MaxColumn = _json["MaxColumn"]; }
|
|
{ if(!_json["MinePoint"].IsNumber) { throw new SerializationException(); } MinePoint = _json["MinePoint"]; }
|
|
{ var __json0 = _json["BreakRangePoint"]; if(!__json0.IsArray) { throw new SerializationException(); } BreakRangePoint = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } BreakRangePoint.Add(__v0); } }
|
|
{ var __json0 = _json["MinePointShow"]; if(!__json0.IsArray) { throw new SerializationException(); } MinePointShow = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } MinePointShow.Add(__v0); } }
|
|
{ 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); } }
|
|
{ var __json0 = _json["SpinPoint"]; if(!__json0.IsArray) { throw new SerializationException(); } SpinPoint = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } SpinPoint.Add(__v0); } }
|
|
{ var __json0 = _json["StagePoint"]; if(!__json0.IsArray) { throw new SerializationException(); } StagePoint = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } StagePoint.Add(__v0); } }
|
|
{ var __json0 = _json["StageReward"]; if(!__json0.IsArray) { throw new SerializationException(); } StageReward = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } StageReward.Add(__v0); } }
|
|
{ if(!_json["Reward"].IsNumber) { throw new SerializationException(); } Reward = _json["Reward"]; }
|
|
{ if(!_json["InvitationCount"].IsNumber) { throw new SerializationException(); } InvitationCount = _json["InvitationCount"]; }
|
|
json = _json;
|
|
PostInit();
|
|
}
|
|
|
|
public EventPartnerMineMain(int ID, string UIPanel, string GamePanel, string InfoPanel, string PackPanel, int TokenExchangeId, int SweepPackId, int PackId, string Icon, System.Collections.Generic.List<string> Addressable, string Atlas, int InitID, int ItemID, int SpinRequire, int MaxColumn, int MinePoint, System.Collections.Generic.List<int> BreakRangePoint, System.Collections.Generic.List<int> MinePointShow, System.Collections.Generic.List<int> SpinMag, System.Collections.Generic.List<int> SpinPoint, System.Collections.Generic.List<int> StagePoint, System.Collections.Generic.List<int> StageReward, int Reward, int InvitationCount )
|
|
{
|
|
this.ID = ID;
|
|
this.UIPanel = UIPanel;
|
|
this.GamePanel = GamePanel;
|
|
this.InfoPanel = InfoPanel;
|
|
this.PackPanel = PackPanel;
|
|
this.TokenExchangeId = TokenExchangeId;
|
|
this.SweepPackId = SweepPackId;
|
|
this.PackId = PackId;
|
|
this.Icon = Icon;
|
|
this.Addressable = Addressable;
|
|
this.Atlas = Atlas;
|
|
this.InitID = InitID;
|
|
this.ItemID = ItemID;
|
|
this.SpinRequire = SpinRequire;
|
|
this.MaxColumn = MaxColumn;
|
|
this.MinePoint = MinePoint;
|
|
this.BreakRangePoint = BreakRangePoint;
|
|
this.MinePointShow = MinePointShow;
|
|
this.SpinMag = SpinMag;
|
|
this.SpinPoint = SpinPoint;
|
|
this.StagePoint = StagePoint;
|
|
this.StageReward = StageReward;
|
|
this.Reward = Reward;
|
|
this.InvitationCount = InvitationCount;
|
|
PostInit();
|
|
}
|
|
|
|
public static EventPartnerMineMain DeserializeEventPartnerMineMain(JSONNode _json)
|
|
{
|
|
return new EventPartnerMineMain(_json);
|
|
}
|
|
|
|
public int ID { get; private set; }
|
|
/// <summary>
|
|
/// 主界面
|
|
/// </summary>
|
|
public string UIPanel { get; private set; }
|
|
/// <summary>
|
|
/// 玩法界面
|
|
/// </summary>
|
|
public string GamePanel { get; private set; }
|
|
/// <summary>
|
|
/// 玩法说明
|
|
/// </summary>
|
|
public string InfoPanel { get; private set; }
|
|
public string PackPanel { get; private set; }
|
|
/// <summary>
|
|
/// 代币兑换配置
|
|
/// </summary>
|
|
public int TokenExchangeId { get; private set; }
|
|
public int SweepPackId { get; private set; }
|
|
/// <summary>
|
|
/// 读shop表
|
|
/// </summary>
|
|
public int PackId { get; private set; }
|
|
public string Icon { get; private set; }
|
|
public System.Collections.Generic.List<string> Addressable { get; private set; }
|
|
public string Atlas { get; private set; }
|
|
/// <summary>
|
|
/// Init表id
|
|
/// </summary>
|
|
public int InitID { get; private set; }
|
|
/// <summary>
|
|
/// item表id
|
|
/// </summary>
|
|
public int ItemID { get; private set; }
|
|
public int SpinRequire { get; private set; }
|
|
/// <summary>
|
|
/// 数字对应列数
|
|
/// </summary>
|
|
public int MaxColumn { get; private set; }
|
|
/// <summary>
|
|
/// 一个矿石对应多少积分
|
|
/// </summary>
|
|
public int MinePoint { get; private set; }
|
|
/// <summary>
|
|
/// 0为起点
|
|
/// </summary>
|
|
public System.Collections.Generic.List<int> BreakRangePoint { get; private set; }
|
|
/// <summary>
|
|
/// 每个区域一列有多少个
|
|
/// </summary>
|
|
public System.Collections.Generic.List<int> MinePointShow { get; private set; }
|
|
public System.Collections.Generic.List<int> SpinMag { get; private set; }
|
|
/// <summary>
|
|
/// 对应SpinPoint
|
|
/// </summary>
|
|
public System.Collections.Generic.List<int> SpinPoint { get; private set; }
|
|
public System.Collections.Generic.List<int> StagePoint { get; private set; }
|
|
public System.Collections.Generic.List<int> StageReward { get; private set; }
|
|
/// <summary>
|
|
/// ID
|
|
/// </summary>
|
|
public int Reward { get; private set; }
|
|
public int InvitationCount { get; private set; }
|
|
|
|
public const int __ID__ = 411559866;
|
|
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 + ","
|
|
+ "GamePanel:" + GamePanel + ","
|
|
+ "InfoPanel:" + InfoPanel + ","
|
|
+ "PackPanel:" + PackPanel + ","
|
|
+ "TokenExchangeId:" + TokenExchangeId + ","
|
|
+ "SweepPackId:" + SweepPackId + ","
|
|
+ "PackId:" + PackId + ","
|
|
+ "Icon:" + Icon + ","
|
|
+ "Addressable:" + Bright.Common.StringUtil.CollectionToString(Addressable) + ","
|
|
+ "Atlas:" + Atlas + ","
|
|
+ "InitID:" + InitID + ","
|
|
+ "ItemID:" + ItemID + ","
|
|
+ "SpinRequire:" + SpinRequire + ","
|
|
+ "MaxColumn:" + MaxColumn + ","
|
|
+ "MinePoint:" + MinePoint + ","
|
|
+ "BreakRangePoint:" + Bright.Common.StringUtil.CollectionToString(BreakRangePoint) + ","
|
|
+ "MinePointShow:" + Bright.Common.StringUtil.CollectionToString(MinePointShow) + ","
|
|
+ "SpinMag:" + Bright.Common.StringUtil.CollectionToString(SpinMag) + ","
|
|
+ "SpinPoint:" + Bright.Common.StringUtil.CollectionToString(SpinPoint) + ","
|
|
+ "StagePoint:" + Bright.Common.StringUtil.CollectionToString(StagePoint) + ","
|
|
+ "StageReward:" + Bright.Common.StringUtil.CollectionToString(StageReward) + ","
|
|
+ "Reward:" + Reward + ","
|
|
+ "InvitationCount:" + InvitationCount + ","
|
|
+ "}";
|
|
}
|
|
|
|
partial void PostInit();
|
|
partial void PostResolve();
|
|
}
|
|
}
|