//------------------------------------------------------------------------------ // // 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 MoreSpinPoint : EventPartnerSpinType { public MoreSpinPoint(JSONNode _json) : base(_json) { { if(!_json["BonusPercent"].IsNumber) { throw new SerializationException(); } BonusPercent = _json["BonusPercent"]; } { if(!_json["BonusDuration"].IsNumber) { throw new SerializationException(); } BonusDuration = _json["BonusDuration"]; } PostInit(); } public MoreSpinPoint(float BonusPercent, int BonusDuration ) : base() { this.BonusPercent = BonusPercent; this.BonusDuration = BonusDuration; PostInit(); } public static MoreSpinPoint DeserializeMoreSpinPoint(JSONNode _json) { return new MoreSpinPoint(_json); } /// /// 积分加成倍率 /// public float BonusPercent { get; private set; } /// /// 积分效果持续时间,单位:秒 /// public int BonusDuration { get; private set; } public const int __ID__ = -1179432327; public override int GetTypeId() => __ID__; public override void Resolve(Dictionary _tables) { base.Resolve(_tables); PostResolve(); } public override void TranslateText(System.Func translator) { base.TranslateText(translator); } public override string ToString() { return "{ " + "BonusPercent:" + BonusPercent + "," + "BonusDuration:" + BonusDuration + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }