76 lines
2.1 KiB
C#
76 lines
2.1 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
|
|
{
|
|
|
|
/// <summary>
|
|
/// 加成效果参数
|
|
/// </summary>
|
|
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);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 积分加成倍率
|
|
/// </summary>
|
|
public float BonusPercent { get; private set; }
|
|
/// <summary>
|
|
/// 积分效果持续时间,单位:秒
|
|
/// </summary>
|
|
public int BonusDuration { get; private set; }
|
|
|
|
public const int __ID__ = -1179432327;
|
|
public override int GetTypeId() => __ID__;
|
|
|
|
public override void Resolve(Dictionary<string, object> _tables)
|
|
{
|
|
base.Resolve(_tables);
|
|
PostResolve();
|
|
}
|
|
|
|
public override void TranslateText(System.Func<string, string, string> translator)
|
|
{
|
|
base.TranslateText(translator);
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return "{ "
|
|
+ "BonusPercent:" + BonusPercent + ","
|
|
+ "BonusDuration:" + BonusDuration + ","
|
|
+ "}";
|
|
}
|
|
|
|
partial void PostInit();
|
|
partial void PostResolve();
|
|
}
|
|
}
|