备份CatanBuilding瘦身独立工程
This commit is contained in:
75
Assets/Scripts/Tables/MoreSpinPoint.cs
Normal file
75
Assets/Scripts/Tables/MoreSpinPoint.cs
Normal file
@@ -0,0 +1,75 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user