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

167 lines
8.1 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
{
/// <summary>
/// 1v1活动参数
/// </summary>
public sealed partial class EventSoloConfig : Bright.Config.BeanBase
{
public JSONNode json;
public EventSoloConfig(JSONNode _json)
{
{ if(!_json["EventTime"].IsNumber) { throw new SerializationException(); } EventTime = _json["EventTime"]; }
{ if(!_json["InitTrophy"].IsNumber) { throw new SerializationException(); } InitTrophy = _json["InitTrophy"]; }
{ if(!_json["MinTrophy"].IsNumber) { throw new SerializationException(); } MinTrophy = _json["MinTrophy"]; }
{ if(!_json["ClaimRewardMatchCount"].IsNumber) { throw new SerializationException(); } ClaimRewardMatchCount = _json["ClaimRewardMatchCount"]; }
{ if(!_json["SettlementTime"].IsNumber) { throw new SerializationException(); } SettlementTime = _json["SettlementTime"]; }
{ var __json0 = _json["BigFishFireTimeCd"]; if(!__json0.IsArray) { throw new SerializationException(); } BigFishFireTimeCd = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } BigFishFireTimeCd.Add(__v0); } }
{ var __json0 = _json["RobotBehaviorTimeDelay"]; if(!__json0.IsArray) { throw new SerializationException(); } RobotBehaviorTimeDelay = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } RobotBehaviorTimeDelay.Add(__v0); } }
{ if(!_json["MaxFailCount"].IsNumber) { throw new SerializationException(); } MaxFailCount = _json["MaxFailCount"]; }
{ if(!_json["StartTime"].IsNumber) { throw new SerializationException(); } StartTime = _json["StartTime"]; }
{ if(!_json["EndTime"].IsNumber) { throw new SerializationException(); } EndTime = _json["EndTime"]; }
{ if(!_json["MaxMatchTime"].IsNumber) { throw new SerializationException(); } MaxMatchTime = _json["MaxMatchTime"]; }
{ var __json0 = _json["MatchDelayTime"]; if(!__json0.IsArray) { throw new SerializationException(); } MatchDelayTime = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } MatchDelayTime.Add(__v0); } }
{ if(!_json["ChooseRodTime"].IsNumber) { throw new SerializationException(); } ChooseRodTime = _json["ChooseRodTime"]; }
{ var __json0 = _json["RobotChooseRodTime"]; if(!__json0.IsArray) { throw new SerializationException(); } RobotChooseRodTime = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } RobotChooseRodTime.Add(__v0); } }
{ if(!_json["DuplicateFishRat"].IsNumber) { throw new SerializationException(); } DuplicateFishRat = _json["DuplicateFishRat"]; }
json = _json;
PostInit();
}
public EventSoloConfig(int EventTime, int InitTrophy, int MinTrophy, int ClaimRewardMatchCount, int SettlementTime, System.Collections.Generic.List<int> BigFishFireTimeCd, System.Collections.Generic.List<int> RobotBehaviorTimeDelay, int MaxFailCount, int StartTime, int EndTime, int MaxMatchTime, System.Collections.Generic.List<int> MatchDelayTime, int ChooseRodTime, System.Collections.Generic.List<int> RobotChooseRodTime, int DuplicateFishRat )
{
this.EventTime = EventTime;
this.InitTrophy = InitTrophy;
this.MinTrophy = MinTrophy;
this.ClaimRewardMatchCount = ClaimRewardMatchCount;
this.SettlementTime = SettlementTime;
this.BigFishFireTimeCd = BigFishFireTimeCd;
this.RobotBehaviorTimeDelay = RobotBehaviorTimeDelay;
this.MaxFailCount = MaxFailCount;
this.StartTime = StartTime;
this.EndTime = EndTime;
this.MaxMatchTime = MaxMatchTime;
this.MatchDelayTime = MatchDelayTime;
this.ChooseRodTime = ChooseRodTime;
this.RobotChooseRodTime = RobotChooseRodTime;
this.DuplicateFishRat = DuplicateFishRat;
PostInit();
}
public static EventSoloConfig DeserializeEventSoloConfig(JSONNode _json)
{
return new EventSoloConfig(_json);
}
/// <summary>
/// 活动时间(单位:秒)
/// </summary>
public int EventTime { get; private set; }
/// <summary>
/// 初始杯数
/// </summary>
public int InitTrophy { get; private set; }
/// <summary>
/// 最低杯数
/// </summary>
public int MinTrophy { get; private set; }
/// <summary>
/// 每周至少完成X场对战才能领取赛季奖励
/// </summary>
public int ClaimRewardMatchCount { get; private set; }
/// <summary>
/// 结算时间(单位:秒)
/// </summary>
public int SettlementTime { get; private set; }
/// <summary>
/// 间隔多少秒,对手头像播放着火特效
/// </summary>
public System.Collections.Generic.List<int> BigFishFireTimeCd { get; private set; }
/// <summary>
/// 机器人发消息的延迟(单位:秒)
/// </summary>
public System.Collections.Generic.List<int> RobotBehaviorTimeDelay { get; private set; }
/// <summary>
/// 每条鱼最多失败X次
/// </summary>
public int MaxFailCount { get; private set; }
/// <summary>
/// 开始倒计时(单位:秒)
/// </summary>
public int StartTime { get; private set; }
/// <summary>
/// 强制结束倒计时(单位:秒)
/// </summary>
public int EndTime { get; private set; }
/// <summary>
/// 匹配最大时间(单位:秒)
/// </summary>
public int MaxMatchTime { get; private set; }
/// <summary>
/// 匹配展示延迟
/// </summary>
public System.Collections.Generic.List<int> MatchDelayTime { get; private set; }
/// <summary>
/// 选择鱼竿时间(单位:秒)
/// </summary>
public int ChooseRodTime { get; private set; }
/// <summary>
/// 机器人选择鱼竿的时间(单位:秒)
/// </summary>
public System.Collections.Generic.List<int> RobotChooseRodTime { get; private set; }
/// <summary>
/// 钓鱼序列中,最多重复鱼比例 ≤ X/100
/// </summary>
public int DuplicateFishRat { get; private set; }
public const int __ID__ = -319221989;
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 "{ "
+ "EventTime:" + EventTime + ","
+ "InitTrophy:" + InitTrophy + ","
+ "MinTrophy:" + MinTrophy + ","
+ "ClaimRewardMatchCount:" + ClaimRewardMatchCount + ","
+ "SettlementTime:" + SettlementTime + ","
+ "BigFishFireTimeCd:" + Bright.Common.StringUtil.CollectionToString(BigFishFireTimeCd) + ","
+ "RobotBehaviorTimeDelay:" + Bright.Common.StringUtil.CollectionToString(RobotBehaviorTimeDelay) + ","
+ "MaxFailCount:" + MaxFailCount + ","
+ "StartTime:" + StartTime + ","
+ "EndTime:" + EndTime + ","
+ "MaxMatchTime:" + MaxMatchTime + ","
+ "MatchDelayTime:" + Bright.Common.StringUtil.CollectionToString(MatchDelayTime) + ","
+ "ChooseRodTime:" + ChooseRodTime + ","
+ "RobotChooseRodTime:" + Bright.Common.StringUtil.CollectionToString(RobotChooseRodTime) + ","
+ "DuplicateFishRat:" + DuplicateFishRat + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}