494 lines
20 KiB
C#
494 lines
20 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 TbGlobalConfig
|
||
{
|
||
|
||
private readonly GlobalConfig _data;
|
||
|
||
public TbGlobalConfig(JSONNode _json)
|
||
{
|
||
if(!_json.IsArray)
|
||
{
|
||
throw new SerializationException();
|
||
}
|
||
if (_json.Count != 1) throw new SerializationException("table mode=one, but size != 1");
|
||
_data = GlobalConfig.DeserializeGlobalConfig(_json[0]);
|
||
PostInit();
|
||
}
|
||
|
||
/// <summary>
|
||
/// 固定钓鱼序列
|
||
/// </summary>
|
||
public System.Collections.Generic.List<int> FixedFish => _data.FixedFish;
|
||
/// <summary>
|
||
/// 多少次钓鱼不会失败,无视张力过大过小,也不会弹出引导
|
||
/// </summary>
|
||
public int NoFail => _data.NoFail;
|
||
/// <summary>
|
||
/// 多少次钓鱼不会失败,无视张力过大过小,但会弹出引导
|
||
/// </summary>
|
||
public int NoFailWithGuidance => _data.NoFailWithGuidance;
|
||
/// <summary>
|
||
/// 钓鱼失败不会消耗体力
|
||
/// </summary>
|
||
public int FailWithoutEnergyConsuming => _data.FailWithoutEnergyConsuming;
|
||
/// <summary>
|
||
/// 固定触发引导组
|
||
/// </summary>
|
||
public string FixedGuidance => _data.FixedGuidance;
|
||
/// <summary>
|
||
/// 商店未解锁前,玩家没体力时点击钓鱼固定触发该引导组
|
||
/// </summary>
|
||
public string FixedGuidance02 => _data.FixedGuidance02;
|
||
/// <summary>
|
||
/// 建造这么多次之后,解锁自动建造
|
||
/// </summary>
|
||
public int AutoBuildUnlock => _data.AutoBuildUnlock;
|
||
/// <summary>
|
||
/// 建造奖励自动领取解锁等级
|
||
/// </summary>
|
||
public int AutoClaimUnlock => _data.AutoClaimUnlock;
|
||
/// <summary>
|
||
/// 完成该引导后,建造图标再显示红点
|
||
/// </summary>
|
||
public string BuildRedPointUnlock => _data.BuildRedPointUnlock;
|
||
/// <summary>
|
||
/// 玩家大于等于该等级后才可被选作轰炸的目标
|
||
/// </summary>
|
||
public int BombAvailableLevel => _data.BombAvailableLevel;
|
||
/// <summary>
|
||
/// 第几条鱼解锁连击数,具体参数配置为fixedfishlist的id
|
||
/// </summary>
|
||
public int MaxComboUnlockFish => _data.MaxComboUnlockFish;
|
||
/// <summary>
|
||
/// 第几条鱼的时候,对应连击数加速攒满的倍率,和上个参数一一对应
|
||
/// </summary>
|
||
public System.Collections.Generic.List<float> ComboCountAccelerateFactor => _data.ComboCountAccelerateFactor;
|
||
/// <summary>
|
||
/// 转盘券广告每日最大次数
|
||
/// </summary>
|
||
public int WheelIAADailyCount => _data.WheelIAADailyCount;
|
||
/// <summary>
|
||
/// 自动使用转盘券,每步完成后的加速数值
|
||
/// </summary>
|
||
public float WheelPerTime => _data.WheelPerTime;
|
||
/// <summary>
|
||
/// 最多加速几步
|
||
/// </summary>
|
||
public int WheelAccMaxTime => _data.WheelAccMaxTime;
|
||
/// <summary>
|
||
/// 看广告后,再次钓鱼时,鱼的力量会变为原力量的百分比
|
||
/// </summary>
|
||
public float FishingRetryPowerReduction => _data.FishingRetryPowerReduction;
|
||
/// <summary>
|
||
/// 看广告后,再次钓鱼时,鱼的血量会变为原血量的百分比
|
||
/// </summary>
|
||
public float FishingRetryHPReduction => _data.FishingRetryHPReduction;
|
||
/// <summary>
|
||
/// 看广告后,再次钓鱼时,鱼的逃跑速率变成之前的百分比
|
||
/// </summary>
|
||
public float FishingRetryEscapeReduction => _data.FishingRetryEscapeReduction;
|
||
/// <summary>
|
||
/// 初始漂流瓶幸运值
|
||
/// </summary>
|
||
public float InitBotLuck => _data.InitBotLuck;
|
||
/// <summary>
|
||
/// 基础权重,分别对应漂流瓶,鱼
|
||
/// </summary>
|
||
public System.Collections.Generic.List<float> BotLuckBasic => _data.BotLuckBasic;
|
||
/// <summary>
|
||
/// 幸运值浮动参数,分别漂流瓶,鱼
|
||
/// </summary>
|
||
public System.Collections.Generic.List<float> BotLuckParam => _data.BotLuckParam;
|
||
/// <summary>
|
||
/// 幸运值加值,分别对应漂流瓶,鱼
|
||
/// </summary>
|
||
public System.Collections.Generic.List<float> ModifierToBotLuck => _data.ModifierToBotLuck;
|
||
/// <summary>
|
||
/// 初始鱼种类幸运值
|
||
/// </summary>
|
||
public float InitFishLuck => _data.InitFishLuck;
|
||
/// <summary>
|
||
/// 基础权重,分别对应白色鱼,蓝色鱼,紫色鱼,橙色鱼
|
||
/// </summary>
|
||
public System.Collections.Generic.List<float> FishLuckBasic => _data.FishLuckBasic;
|
||
/// <summary>
|
||
/// 幸运值浮动参数,分别对应白色鱼,蓝色鱼,紫色鱼,橙色鱼
|
||
/// </summary>
|
||
public System.Collections.Generic.List<float> FishLuckParam => _data.FishLuckParam;
|
||
/// <summary>
|
||
/// 幸运值加值,分别对应白色鱼,蓝色鱼,紫色鱼,橙色鱼
|
||
/// </summary>
|
||
public System.Collections.Generic.List<float> ModifierToFishLuck => _data.ModifierToFishLuck;
|
||
/// <summary>
|
||
/// 漂流瓶随机参数
|
||
/// </summary>
|
||
public System.Collections.Generic.List<float> BotRandParam => _data.BotRandParam;
|
||
/// <summary>
|
||
/// 每日登录增加漂流瓶幸运值
|
||
/// </summary>
|
||
public float DailyLoginLuckAddToCategory => _data.DailyLoginLuckAddToCategory;
|
||
/// <summary>
|
||
/// 每日登录增加鱼种类幸运值
|
||
/// </summary>
|
||
public float DailyLoginLuckAddToFish => _data.DailyLoginLuckAddToFish;
|
||
/// <summary>
|
||
/// 商业化特殊鱼种的概率
|
||
/// </summary>
|
||
public float CommercialFishParam => _data.CommercialFishParam;
|
||
/// <summary>
|
||
/// 鱼线长度 = (鱼竿长度 + 鱼线实际长度) * LineLengthParam
|
||
/// </summary>
|
||
public float LineLengthParam => _data.LineLengthParam;
|
||
/// <summary>
|
||
/// 鱼线长度超过最大鱼线这个百分比,则开始预警
|
||
/// </summary>
|
||
public float WarningLineLengthRatio => _data.WarningLineLengthRatio;
|
||
/// <summary>
|
||
/// 鱼超过最大长度时,不会立刻失败。而是鱼线长度数字持续闪烁,然后在这个时间之后,如果鱼还是超过最大长度则判定为失败
|
||
/// </summary>
|
||
public float FailDelayTime => _data.FailDelayTime;
|
||
public System.Collections.Generic.List<float> BattleFloatingNumberDamageParam => _data.BattleFloatingNumberDamageParam;
|
||
public System.Collections.Generic.List<float> BattleFloatingNumberScaleList => _data.BattleFloatingNumberScaleList;
|
||
public System.Collections.Generic.List<string> BarShakePriority => _data.BarShakePriority;
|
||
/// <summary>
|
||
/// 账号初始体力
|
||
/// </summary>
|
||
public int InitEnergy => _data.InitEnergy;
|
||
/// <summary>
|
||
/// 账号初始钞票
|
||
/// </summary>
|
||
public int InitCash => _data.InitCash;
|
||
/// <summary>
|
||
/// 账号初始树脂
|
||
/// </summary>
|
||
public int InitResin => _data.InitResin;
|
||
/// <summary>
|
||
/// 账号初始转盘券
|
||
/// </summary>
|
||
public int InitWheelTicket => _data.InitWheelTicket;
|
||
/// <summary>
|
||
/// 账号初始体力上限
|
||
/// </summary>
|
||
public int InitEnergyLimit => _data.InitEnergyLimit;
|
||
/// <summary>
|
||
/// 几分钟恢复,单位分钟
|
||
/// </summary>
|
||
public int InitEnergyRestorationSpeed => _data.InitEnergyRestorationSpeed;
|
||
/// <summary>
|
||
/// 每次恢复体力时恢复几点体力
|
||
/// </summary>
|
||
public int InitEnergyRestorationCount => _data.InitEnergyRestorationCount;
|
||
/// <summary>
|
||
/// 玩家默认的初始头像
|
||
/// </summary>
|
||
public int InitAvatar => _data.InitAvatar;
|
||
/// <summary>
|
||
/// 玩家初始的鱼竿编号,对应RodData主键
|
||
/// </summary>
|
||
public int InitRodID => _data.InitRodID;
|
||
/// <summary>
|
||
/// 玩家初始的手套编号,对应GloveData主键
|
||
/// </summary>
|
||
public int InitGloveID => _data.InitGloveID;
|
||
public int DefaultSpMapID => _data.DefaultSpMapID;
|
||
public int PictureGiftedLimitDaily => _data.PictureGiftedLimitDaily;
|
||
public bool MusicSetting => _data.MusicSetting;
|
||
public bool SoundSetting => _data.SoundSetting;
|
||
public bool VibrateSetting => _data.VibrateSetting;
|
||
public bool NoticeSetting => _data.NoticeSetting;
|
||
public string LanguageSetting => _data.LanguageSetting;
|
||
public System.Collections.Generic.List<string> LanguageList => _data.LanguageList;
|
||
public System.Collections.Generic.List<string> LanguagePackList => _data.LanguagePackList;
|
||
public int CDKeyCD => _data.CDKeyCD;
|
||
public int MailDeliverLevel => _data.MailDeliverLevel;
|
||
public int AccountLinkReward => _data.AccountLinkReward;
|
||
/// <summary>
|
||
/// 上述标记的图标
|
||
/// </summary>
|
||
public System.Collections.Generic.List<string> RankIcon => _data.RankIcon;
|
||
/// <summary>
|
||
/// 普通鱼结算参数,小于这个数值,则分别判定为D,C-,C,C+,B-,B,B+,A-,A,A+,S,SS,SSS,X,XX,XXX,无穷
|
||
/// </summary>
|
||
public System.Collections.Generic.List<float> Rank => _data.Rank;
|
||
/// <summary>
|
||
/// 活动鱼结算参数,小于这个数值,则分别判定为D,C-,C,C+,B-,B,B+,A-,A,A+,S,SS,SSS,X,XX,XXX,无穷
|
||
/// </summary>
|
||
public System.Collections.Generic.List<float> RankForSpFish => _data.RankForSpFish;
|
||
/// <summary>
|
||
/// 活动鱼最终积分 = (鱼品质 - 参数1) * 参数2 + 总积分 * (鱼品质 - 参数1) / 参数3 + 参数4
|
||
/// </summary>
|
||
public System.Collections.Generic.List<float> RankForSpFishParams => _data.RankForSpFishParams;
|
||
/// <summary>
|
||
/// 0:不震动;1:light impact;2:medium impact;3:heavy impact
|
||
/// </summary>
|
||
public System.Collections.Generic.List<int> RankVibration => _data.RankVibration;
|
||
/// <summary>
|
||
/// 长按时,间隔这个时间,播放震动
|
||
/// </summary>
|
||
public float HoldVibrationInterval => _data.HoldVibrationInterval;
|
||
/// <summary>
|
||
/// 拉鱼时,间隔这个时间,播放震动
|
||
/// </summary>
|
||
public float ReelVibrationInterval => _data.ReelVibrationInterval;
|
||
/// <summary>
|
||
/// 钓鱼失败后,失败面板延迟这个时间再出现
|
||
/// </summary>
|
||
public float FishingFailPanelDelay => _data.FishingFailPanelDelay;
|
||
/// <summary>
|
||
/// 几次刺鱼失败后,则判定为鱼溜走了
|
||
/// </summary>
|
||
public int FishingFailPiercingCount => _data.FishingFailPiercingCount;
|
||
/// <summary>
|
||
/// 鱼的进度条在最左和最右时,如果超过这个时间还在阈值内,则判定失败,单位秒
|
||
/// </summary>
|
||
public float FishingFailStrugglingTime => _data.FishingFailStrugglingTime;
|
||
/// <summary>
|
||
/// 鱼的进度条在最左和最右时,如果超过一定时间还在这个阈值内,则判定失败,单位进度条百分比
|
||
/// </summary>
|
||
public float FishingFailProgress => _data.FishingFailProgress;
|
||
/// <summary>
|
||
/// 分数比例 = log(BottleCashParamBase - 排行榜名次 + 好友等级 / BottleCashParamLevel) / BottleCashParamDiv
|
||
/// </summary>
|
||
public int BottleCashParamBase => _data.BottleCashParamBase;
|
||
public int BottleCashParamDiv => _data.BottleCashParamDiv;
|
||
public int BottleCashParamLevel => _data.BottleCashParamLevel;
|
||
/// <summary>
|
||
/// 抢到的钱 = min(BottleCashParamLimit,传过来的钱)* (1 + 全局钞票加成 ) * (1 + 系统钞票加成)
|
||
/// </summary>
|
||
public int BottleCashParamLimit => _data.BottleCashParamLimit;
|
||
/// <summary>
|
||
/// 如果长按时间大于等于这个数值,则判定为长按
|
||
/// </summary>
|
||
public float HoldIntervalGeneral => _data.HoldIntervalGeneral;
|
||
/// <summary>
|
||
/// 自动建造时,每步完成后的加速数值
|
||
/// </summary>
|
||
public float TimeScalePerStep => _data.TimeScalePerStep;
|
||
/// <summary>
|
||
/// 最多加速几步
|
||
/// </summary>
|
||
public int AccMaxStep => _data.AccMaxStep;
|
||
/// <summary>
|
||
/// 手动连点后,每步完成后的数值
|
||
/// </summary>
|
||
public float TapTimeScale => _data.TapTimeScale;
|
||
/// <summary>
|
||
/// 最多加速几步
|
||
/// </summary>
|
||
public int TapScaleMaxStep => _data.TapScaleMaxStep;
|
||
/// <summary>
|
||
/// 登录时,礼包的拍脸图最多弹出数量
|
||
/// </summary>
|
||
public int ShowPopupPack => _data.ShowPopupPack;
|
||
/// <summary>
|
||
/// 登录时,活动拍脸图的最多弹出数量
|
||
/// </summary>
|
||
public int ShowPopupEvent => _data.ShowPopupEvent;
|
||
/// <summary>
|
||
/// 聊天列表最大数量,算上表情和入会通知等事件
|
||
/// </summary>
|
||
public int ClubChatMaxCount => _data.ClubChatMaxCount;
|
||
/// <summary>
|
||
/// 聊天列表最大保存时间,单位天
|
||
/// </summary>
|
||
public int ClubChatMaxDay => _data.ClubChatMaxDay;
|
||
/// <summary>
|
||
/// 推荐公会列表,分别对应3个列表的数量
|
||
/// </summary>
|
||
public System.Collections.Generic.List<int> ClubRecommendedList => _data.ClubRecommendedList;
|
||
/// <summary>
|
||
/// 模糊搜索数量
|
||
/// </summary>
|
||
public int ClubFuzzySearchCount => _data.ClubFuzzySearchCount;
|
||
/// <summary>
|
||
/// 默认公会头像
|
||
/// </summary>
|
||
public int ClubInitAvatar => _data.ClubInitAvatar;
|
||
/// <summary>
|
||
/// 默认公会头像框
|
||
/// </summary>
|
||
public int ClubInitFrame => _data.ClubInitFrame;
|
||
/// <summary>
|
||
/// 公会初始活跃度
|
||
/// </summary>
|
||
public int ClubInitAP => _data.ClubInitAP;
|
||
/// <summary>
|
||
/// 公会单次签到增加活跃度数值
|
||
/// </summary>
|
||
public int ClubAPAddedPerSign => _data.ClubAPAddedPerSign;
|
||
/// <summary>
|
||
/// 公会人数上限,基于等级的数组
|
||
/// </summary>
|
||
public System.Collections.Generic.List<int> ClubRoomPerLevel => _data.ClubRoomPerLevel;
|
||
/// <summary>
|
||
/// 公会名称最大字符数
|
||
/// </summary>
|
||
public int ClubNameMaxChar => _data.ClubNameMaxChar;
|
||
/// <summary>
|
||
/// 公会宣言最大字符数
|
||
/// </summary>
|
||
public int ClubNoticeMaxChar => _data.ClubNoticeMaxChar;
|
||
/// <summary>
|
||
/// 公会签到奖励
|
||
/// </summary>
|
||
public int ClubSignReward => _data.ClubSignReward;
|
||
/// <summary>
|
||
/// 公会创建的钞票消耗
|
||
/// </summary>
|
||
public int ClubCreationCashCost => _data.ClubCreationCashCost;
|
||
/// <summary>
|
||
/// 公会捐赠的钞票奖励
|
||
/// </summary>
|
||
public int ClubDonationCashReward => _data.ClubDonationCashReward;
|
||
/// <summary>
|
||
/// 公会聊天间隔时间设置(单位秒)
|
||
/// </summary>
|
||
public int ClubChatLimitTime => _data.ClubChatLimitTime;
|
||
/// <summary>
|
||
/// 公会请求体力的时间间隔(单位小时)
|
||
/// </summary>
|
||
public int ClubLureRequestCd => _data.ClubLureRequestCd;
|
||
/// <summary>
|
||
/// 每次请求能够获得的体力数量
|
||
/// </summary>
|
||
public int ClubLureDonateReward => _data.ClubLureDonateReward;
|
||
/// <summary>
|
||
/// 每次请求需要几次帮助
|
||
/// </summary>
|
||
public int ClubLureRequestCount => _data.ClubLureRequestCount;
|
||
/// <summary>
|
||
/// 每人每天能够帮助其他人多少次
|
||
/// </summary>
|
||
public int ClubLureDonateLimit => _data.ClubLureDonateLimit;
|
||
/// <summary>
|
||
/// 公会会长x天未登录时转让会长
|
||
/// </summary>
|
||
public int ClubMasterTransferCondition => _data.ClubMasterTransferCondition;
|
||
/// <summary>
|
||
/// 转让时检测公会近x天登录过的玩家
|
||
/// </summary>
|
||
public int ClubTransferAvailableCondition => _data.ClubTransferAvailableCondition;
|
||
/// <summary>
|
||
/// 公会x天内无登录玩家
|
||
/// </summary>
|
||
public int ClubDissolutionCondition => _data.ClubDissolutionCondition;
|
||
/// <summary>
|
||
/// 最近活跃天数显示上限
|
||
/// </summary>
|
||
public int ClubMaxRecentActiveTime => _data.ClubMaxRecentActiveTime;
|
||
/// <summary>
|
||
/// 公会最大副会长数量
|
||
/// </summary>
|
||
public int ClubMaxCoLeaderCount => _data.ClubMaxCoLeaderCount;
|
||
/// <summary>
|
||
/// 公会最大长老数量
|
||
/// </summary>
|
||
public int ClubMaxElderCount => _data.ClubMaxElderCount;
|
||
/// <summary>
|
||
/// 钓鱼时,如果鱼模型资源下载失败,则使用首包的鱼资源替代
|
||
/// </summary>
|
||
public System.Collections.Generic.List<int> FishUnDownloadAlter => _data.FishUnDownloadAlter;
|
||
/// <summary>
|
||
/// 一次最多开10个箱子
|
||
/// </summary>
|
||
public int BoxMaxOpenCount => _data.BoxMaxOpenCount;
|
||
public float NewItemWeightForFish => _data.NewItemWeightForFish;
|
||
public float MaxZoneScaleGap => _data.MaxZoneScaleGap;
|
||
public float MaxZoneSpeedGap => _data.MaxZoneSpeedGap;
|
||
public float MaxStrugglingGap => _data.MaxStrugglingGap;
|
||
public float MinBarIncrease => _data.MinBarIncrease;
|
||
public int MinMaxCount => _data.MinMaxCount;
|
||
public float HoldBarIncreasing => _data.HoldBarIncreasing;
|
||
public float HoldBarDecreasing => _data.HoldBarDecreasing;
|
||
public float RankSSS => _data.RankSSS;
|
||
public float RankSS => _data.RankSS;
|
||
public float RankS => _data.RankS;
|
||
public float RankA => _data.RankA;
|
||
public float RankB => _data.RankB;
|
||
public float RankC => _data.RankC;
|
||
public float FishingFailWaitingTime => _data.FishingFailWaitingTime;
|
||
/// <summary>
|
||
/// 全游戏,跨天时间比格林威治时间延后X小时
|
||
/// </summary>
|
||
public int GlobalTimeOffset => _data.GlobalTimeOffset;
|
||
/// <summary>
|
||
/// 多少进度对应寻宝活动一个活动道具
|
||
/// </summary>
|
||
public int DiggingShovelValue => _data.DiggingShovelValue;
|
||
/// <summary>
|
||
/// 大于或等于此活动代币数时,入口图标显示红点
|
||
/// </summary>
|
||
public int DiggingRedPoint => _data.DiggingRedPoint;
|
||
/// <summary>
|
||
/// 棋盘宽度为3,4,5,6,7,8格时播放propshhow延迟时间
|
||
/// </summary>
|
||
public System.Collections.Generic.List<float> DiggingPropShowTime => _data.DiggingPropShowTime;
|
||
/// <summary>
|
||
/// 鱼品质图标
|
||
/// </summary>
|
||
public System.Collections.Generic.List<string> FishQualityIcon => _data.FishQualityIcon;
|
||
/// <summary>
|
||
/// 调查问卷奖励
|
||
/// </summary>
|
||
public System.Collections.Generic.List<int> SurveyReward => _data.SurveyReward;
|
||
/// <summary>
|
||
/// 调查问卷解锁等级
|
||
/// </summary>
|
||
public int SurveyLevelRequire => _data.SurveyLevelRequire;
|
||
/// <summary>
|
||
/// 钓到冰皇后时,触发该引导
|
||
/// </summary>
|
||
public string FreezeSkillGuidance => _data.FreezeSkillGuidance;
|
||
/// <summary>
|
||
/// 钓到雷霆使者的鱼时,触发该引导
|
||
/// </summary>
|
||
public string ElectricSkillGuidance => _data.ElectricSkillGuidance;
|
||
/// <summary>
|
||
/// 钓到沼泽之王的鱼时,触发该引导
|
||
/// </summary>
|
||
public string CorruptSkillGuidance => _data.CorruptSkillGuidance;
|
||
/// <summary>
|
||
/// 目标奖励活动鱼剩余次数
|
||
/// </summary>
|
||
public int SkillGuidanceRemainings => _data.SkillGuidanceRemainings;
|
||
/// <summary>
|
||
/// guidancepopuppanel的Station_powerreel生效时在玩家几秒内没有集气会弹出
|
||
/// </summary>
|
||
public float StaPowPopupTime => _data.StaPowPopupTime;
|
||
/// <summary>
|
||
/// 好友推荐的限制等级
|
||
/// </summary>
|
||
public int FriendRecommendLevel => _data.FriendRecommendLevel;
|
||
|
||
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();
|
||
}
|
||
|
||
} |