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