//------------------------------------------------------------------------------ // // 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 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(__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(__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(__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(__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(__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(__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 TrophyRange, int WinTrophy, int LoseTrophy, int SettleDeducTrophy, System.Collections.Generic.List MagList, int WinReward, int SeasonReward, int MaxMapId, int FishSequenceCount, int FishSequenceConfig, System.Collections.Generic.List SlienceTime, System.Collections.Generic.List FishTime, float FishTimeRandomRange, float HugeFishLoseProb, float GiantFishLoseProb, System.Collections.Generic.List RobotAccountList, System.Collections.Generic.List 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; } /// /// key /// public string RankText { get; private set; } public string RankText_l10n_key { get; } public string RankIcon { get; private set; } public System.Collections.Generic.List 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 MagList { get; private set; } /// /// 读Drop表 /// public int WinReward { get; private set; } /// /// 读Drop表 /// public int SeasonReward { get; private set; } /// /// 最大地图id+X /// public int MaxMapId { get; private set; } public int FishSequenceCount { get; private set; } /// /// 至少X条鱼品质≥3 /// public int FishSequenceConfig { get; private set; } /// /// 最小值(单位:秒) /// public System.Collections.Generic.List SlienceTime { get; private set; } /// /// 小型鱼 /// public System.Collections.Generic.List FishTime { get; private set; } public float FishTimeRandomRange { get; private set; } /// /// 巨鱼失败概率 /// public float HugeFishLoseProb { get; private set; } /// /// 鱼王失败概率 /// public float GiantFishLoseProb { get; private set; } /// /// 读EventSoloRobot表 /// public System.Collections.Generic.List RobotAccountList { get; private set; } public System.Collections.Generic.List MatchTierList { get; private set; } public const int __ID__ = 376324018; public override int GetTypeId() => __ID__; public void Resolve(Dictionary _tables) { PostResolve(); } public void TranslateText(System.Func 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(); } }