Files
back_cantanBuilding/Assets/Scripts/Tables/EventSolomain.cs
2026-05-26 16:15:54 +08:00

171 lines
9.6 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 EventSolomain : Bright.Config.BeanBase
{
public JSONNode json;
public EventSolomain(JSONNode _json)
{
{ if(!_json["RankTier"].IsNumber) { throw new SerializationException(); } RankTier = _json["RankTier"]; }
{ if(!_json["RankText"]["key"].IsString) { throw new SerializationException(); } RankText_l10n_key = _json["RankText"]["key"]; if(!_json["RankText"]["text"].IsString) { throw new SerializationException(); } RankText = _json["RankText"]["text"]; }
{ if(!_json["RankIcon"].IsString) { throw new SerializationException(); } RankIcon = _json["RankIcon"]; }
{ var __json0 = _json["TrophyRange"]; if(!__json0.IsArray) { throw new SerializationException(); } TrophyRange = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } TrophyRange.Add(__v0); } }
{ if(!_json["WinTrophy"].IsNumber) { throw new SerializationException(); } WinTrophy = _json["WinTrophy"]; }
{ if(!_json["LoseTrophy"].IsNumber) { throw new SerializationException(); } LoseTrophy = _json["LoseTrophy"]; }
{ if(!_json["SettleDeducTrophy"].IsNumber) { throw new SerializationException(); } SettleDeducTrophy = _json["SettleDeducTrophy"]; }
{ var __json0 = _json["MagList"]; if(!__json0.IsArray) { throw new SerializationException(); } MagList = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } MagList.Add(__v0); } }
{ if(!_json["WinReward"].IsNumber) { throw new SerializationException(); } WinReward = _json["WinReward"]; }
{ if(!_json["SeasonReward"].IsNumber) { throw new SerializationException(); } SeasonReward = _json["SeasonReward"]; }
{ if(!_json["MaxMapId"].IsNumber) { throw new SerializationException(); } MaxMapId = _json["MaxMapId"]; }
{ if(!_json["FishSequenceCount"].IsNumber) { throw new SerializationException(); } FishSequenceCount = _json["FishSequenceCount"]; }
{ if(!_json["FishSequenceConfig"].IsNumber) { throw new SerializationException(); } FishSequenceConfig = _json["FishSequenceConfig"]; }
{ var __json0 = _json["SlienceTime"]; if(!__json0.IsArray) { throw new SerializationException(); } SlienceTime = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } SlienceTime.Add(__v0); } }
{ var __json0 = _json["FishTime"]; if(!__json0.IsArray) { throw new SerializationException(); } FishTime = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } FishTime.Add(__v0); } }
{ if(!_json["FishTimeRandomRange"].IsNumber) { throw new SerializationException(); } FishTimeRandomRange = _json["FishTimeRandomRange"]; }
{ if(!_json["HugeFishLoseProb"].IsNumber) { throw new SerializationException(); } HugeFishLoseProb = _json["HugeFishLoseProb"]; }
{ if(!_json["GiantFishLoseProb"].IsNumber) { throw new SerializationException(); } GiantFishLoseProb = _json["GiantFishLoseProb"]; }
{ var __json0 = _json["RobotAccountList"]; if(!__json0.IsArray) { throw new SerializationException(); } RobotAccountList = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } RobotAccountList.Add(__v0); } }
{ var __json0 = _json["MatchTierList"]; if(!__json0.IsArray) { throw new SerializationException(); } MatchTierList = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } MatchTierList.Add(__v0); } }
json = _json;
PostInit();
}
public EventSolomain(int RankTier, string RankText, string RankIcon, System.Collections.Generic.List<int> TrophyRange, int WinTrophy, int LoseTrophy, int SettleDeducTrophy, System.Collections.Generic.List<int> MagList, int WinReward, int SeasonReward, int MaxMapId, int FishSequenceCount, int FishSequenceConfig, System.Collections.Generic.List<int> SlienceTime, System.Collections.Generic.List<int> FishTime, float FishTimeRandomRange, float HugeFishLoseProb, float GiantFishLoseProb, System.Collections.Generic.List<int> RobotAccountList, System.Collections.Generic.List<int> MatchTierList )
{
this.RankTier = RankTier;
this.RankText = RankText;
this.RankIcon = RankIcon;
this.TrophyRange = TrophyRange;
this.WinTrophy = WinTrophy;
this.LoseTrophy = LoseTrophy;
this.SettleDeducTrophy = SettleDeducTrophy;
this.MagList = MagList;
this.WinReward = WinReward;
this.SeasonReward = SeasonReward;
this.MaxMapId = MaxMapId;
this.FishSequenceCount = FishSequenceCount;
this.FishSequenceConfig = FishSequenceConfig;
this.SlienceTime = SlienceTime;
this.FishTime = FishTime;
this.FishTimeRandomRange = FishTimeRandomRange;
this.HugeFishLoseProb = HugeFishLoseProb;
this.GiantFishLoseProb = GiantFishLoseProb;
this.RobotAccountList = RobotAccountList;
this.MatchTierList = MatchTierList;
PostInit();
}
public static EventSolomain DeserializeEventSolomain(JSONNode _json)
{
return new EventSolomain(_json);
}
public int RankTier { get; private set; }
/// <summary>
/// key
/// </summary>
public string RankText { get; private set; }
public string RankText_l10n_key { get; }
public string RankIcon { get; private set; }
public System.Collections.Generic.List<int> TrophyRange { get; private set; }
public int WinTrophy { get; private set; }
public int LoseTrophy { get; private set; }
public int SettleDeducTrophy { get; private set; }
public System.Collections.Generic.List<int> MagList { get; private set; }
/// <summary>
/// 读Drop表
/// </summary>
public int WinReward { get; private set; }
/// <summary>
/// 读Drop表
/// </summary>
public int SeasonReward { get; private set; }
/// <summary>
/// 最大地图id+X
/// </summary>
public int MaxMapId { get; private set; }
public int FishSequenceCount { get; private set; }
/// <summary>
/// 至少X条鱼品质≥3
/// </summary>
public int FishSequenceConfig { get; private set; }
/// <summary>
/// 最小值(单位:秒)
/// </summary>
public System.Collections.Generic.List<int> SlienceTime { get; private set; }
/// <summary>
/// 小型鱼
/// </summary>
public System.Collections.Generic.List<int> FishTime { get; private set; }
public float FishTimeRandomRange { get; private set; }
/// <summary>
/// 巨鱼失败概率
/// </summary>
public float HugeFishLoseProb { get; private set; }
/// <summary>
/// 鱼王失败概率
/// </summary>
public float GiantFishLoseProb { get; private set; }
/// <summary>
/// 读EventSoloRobot表
/// </summary>
public System.Collections.Generic.List<int> RobotAccountList { get; private set; }
public System.Collections.Generic.List<int> MatchTierList { get; private set; }
public const int __ID__ = 376324018;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary<string, object> _tables)
{
PostResolve();
}
public void TranslateText(System.Func<string, string, string> translator)
{
RankText = translator(RankText_l10n_key, RankText);
}
public override string ToString()
{
return "{ "
+ "RankTier:" + RankTier + ","
+ "RankText:" + RankText + ","
+ "RankIcon:" + RankIcon + ","
+ "TrophyRange:" + Bright.Common.StringUtil.CollectionToString(TrophyRange) + ","
+ "WinTrophy:" + WinTrophy + ","
+ "LoseTrophy:" + LoseTrophy + ","
+ "SettleDeducTrophy:" + SettleDeducTrophy + ","
+ "MagList:" + Bright.Common.StringUtil.CollectionToString(MagList) + ","
+ "WinReward:" + WinReward + ","
+ "SeasonReward:" + SeasonReward + ","
+ "MaxMapId:" + MaxMapId + ","
+ "FishSequenceCount:" + FishSequenceCount + ","
+ "FishSequenceConfig:" + FishSequenceConfig + ","
+ "SlienceTime:" + Bright.Common.StringUtil.CollectionToString(SlienceTime) + ","
+ "FishTime:" + Bright.Common.StringUtil.CollectionToString(FishTime) + ","
+ "FishTimeRandomRange:" + FishTimeRandomRange + ","
+ "HugeFishLoseProb:" + HugeFishLoseProb + ","
+ "GiantFishLoseProb:" + GiantFishLoseProb + ","
+ "RobotAccountList:" + Bright.Common.StringUtil.CollectionToString(RobotAccountList) + ","
+ "MatchTierList:" + Bright.Common.StringUtil.CollectionToString(MatchTierList) + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}