//------------------------------------------------------------------------------ // // 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 TbEventPartnerConfig { private readonly EventPartnerConfig _data; public TbEventPartnerConfig(JSONNode _json) { if(!_json.IsArray) { throw new SerializationException(); } if (_json.Count != 1) throw new SerializationException("table mode=one, but size != 1"); _data = EventPartnerConfig.DeserializeEventPartnerConfig(_json[0]); PostInit(); } /// /// 每种类型的玩法中,匹配的队友数量 /// public System.Collections.Generic.List InvitationCount => _data.InvitationCount; /// /// 机器人同意时间(单位:秒) /// public System.Collections.Generic.List RobotAgreeTime => _data.RobotAgreeTime; /// /// 【原始版】加的分必须是配置值的整数倍 /// public int RobotPointsMultiple => _data.RobotPointsMultiple; /// /// 【矿工版】加的分必须是配置值的整数倍 /// public int RobotPointsMultiple2 => _data.RobotPointsMultiple2; /// /// 活跃好友数量 /// public System.Collections.Generic.List FriendRecommendParam1 => _data.FriendRecommendParam1; /// /// 推荐伙伴数量 /// public System.Collections.Generic.List FriendRecommendParam2 => _data.FriendRecommendParam2; /// /// 推荐伙伴列表刷新时间(单位:秒) /// public int FriendRecommendListRefreshTime => _data.FriendRecommendListRefreshTime; /// /// 用户发出N次邀请后,开始推荐机器人 /// public int RobotRecommendTriggerCount => _data.RobotRecommendTriggerCount; /// /// 机器人占推荐列表的比例 /// public float RobotRecommendCount => _data.RobotRecommendCount; /// /// 机器人单日活跃时间段(单位:秒) /// public System.Collections.Generic.List RobotDailyActiveTimeWindow => _data.RobotDailyActiveTimeWindow; /// /// 机器人单次集中加分时间段(单位:秒) /// public System.Collections.Generic.List RobotSingleAddPointsTimeWindow => _data.RobotSingleAddPointsTimeWindow; /// /// 机器人单次加分,分几次完成 /// public System.Collections.Generic.List RobotSingleAddPointsOperations => _data.RobotSingleAddPointsOperations; /// /// 机器人每24小时最多激活几次 /// public int RobotMaxActivationCountPer24h => _data.RobotMaxActivationCountPer24h; /// /// 自动匹配的按钮冷却时间(单位:秒) /// public int AutoMatchCD => _data.AutoMatchCD; /// /// 自动匹配的等级分段 /// public System.Collections.Generic.List AutoMatchLevelList => _data.AutoMatchLevelList; /// /// 结组的匹配区间 /// public System.Collections.Generic.List AutoMatchLevelRange => _data.AutoMatchLevelRange; /// /// 入池超过X秒,则自动与同组其他玩家匹配(单位:秒) /// public int AutoMatchMaxTime => _data.AutoMatchMaxTime; public void Resolve(Dictionary _tables) { _data.Resolve(_tables); PostResolve(); } public void TranslateText(System.Func translator) { _data.TranslateText(translator); } partial void PostInit(); partial void PostResolve(); } }