//------------------------------------------------------------------------------
//
// 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 TbEventSoloConfig
{
private readonly EventSoloConfig _data;
public TbEventSoloConfig(JSONNode _json)
{
if(!_json.IsArray)
{
throw new SerializationException();
}
if (_json.Count != 1) throw new SerializationException("table mode=one, but size != 1");
_data = EventSoloConfig.DeserializeEventSoloConfig(_json[0]);
PostInit();
}
///
/// 活动时间(单位:秒)
///
public int EventTime => _data.EventTime;
///
/// 初始杯数
///
public int InitTrophy => _data.InitTrophy;
///
/// 最低杯数
///
public int MinTrophy => _data.MinTrophy;
///
/// 每周至少完成X场对战才能领取赛季奖励
///
public int ClaimRewardMatchCount => _data.ClaimRewardMatchCount;
///
/// 结算时间(单位:秒)
///
public int SettlementTime => _data.SettlementTime;
///
/// 间隔多少秒,对手头像播放着火特效
///
public System.Collections.Generic.List BigFishFireTimeCd => _data.BigFishFireTimeCd;
///
/// 机器人发消息的延迟(单位:秒)
///
public System.Collections.Generic.List RobotBehaviorTimeDelay => _data.RobotBehaviorTimeDelay;
///
/// 每条鱼最多失败X次
///
public int MaxFailCount => _data.MaxFailCount;
///
/// 开始倒计时(单位:秒)
///
public int StartTime => _data.StartTime;
///
/// 强制结束倒计时(单位:秒)
///
public int EndTime => _data.EndTime;
///
/// 匹配最大时间(单位:秒)
///
public int MaxMatchTime => _data.MaxMatchTime;
///
/// 匹配展示延迟
///
public System.Collections.Generic.List MatchDelayTime => _data.MatchDelayTime;
///
/// 选择鱼竿时间(单位:秒)
///
public int ChooseRodTime => _data.ChooseRodTime;
///
/// 机器人选择鱼竿的时间(单位:秒)
///
public System.Collections.Generic.List RobotChooseRodTime => _data.RobotChooseRodTime;
///
/// 钓鱼序列中,最多重复鱼比例 ≤ X/100
///
public int DuplicateFishRat => _data.DuplicateFishRat;
public void Resolve(Dictionary _tables)
{
_data.Resolve(_tables);
PostResolve();
}
public void TranslateText(System.Func translator)
{
_data.TranslateText(translator);
}
partial void PostInit();
partial void PostResolve();
}
}