76 lines
2.2 KiB
C#
76 lines
2.2 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 EventScratchConfig : Bright.Config.BeanBase
|
|
{
|
|
public JSONNode json;
|
|
public EventScratchConfig(JSONNode _json)
|
|
{
|
|
{ if(!_json["CoreScratchPercent"].IsNumber) { throw new SerializationException(); } CoreScratchPercent = _json["CoreScratchPercent"]; }
|
|
{ if(!_json["TotalScratchPercent"].IsNumber) { throw new SerializationException(); } TotalScratchPercent = _json["TotalScratchPercent"]; }
|
|
json = _json;
|
|
PostInit();
|
|
}
|
|
|
|
public EventScratchConfig(float CoreScratchPercent, float TotalScratchPercent )
|
|
{
|
|
this.CoreScratchPercent = CoreScratchPercent;
|
|
this.TotalScratchPercent = TotalScratchPercent;
|
|
PostInit();
|
|
}
|
|
|
|
public static EventScratchConfig DeserializeEventScratchConfig(JSONNode _json)
|
|
{
|
|
return new EventScratchConfig(_json);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 核心区域所需要的刮开的面积占核心区域面积比
|
|
/// </summary>
|
|
public float CoreScratchPercent { get; private set; }
|
|
/// <summary>
|
|
/// 全部区域所需要的刮开的面积占比
|
|
/// </summary>
|
|
public float TotalScratchPercent { get; private set; }
|
|
|
|
public const int __ID__ = -1710325118;
|
|
public override int GetTypeId() => __ID__;
|
|
|
|
public void Resolve(Dictionary<string, object> _tables)
|
|
{
|
|
PostResolve();
|
|
}
|
|
|
|
public void TranslateText(System.Func<string, string, string> translator)
|
|
{
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return "{ "
|
|
+ "CoreScratchPercent:" + CoreScratchPercent + ","
|
|
+ "TotalScratchPercent:" + TotalScratchPercent + ","
|
|
+ "}";
|
|
}
|
|
|
|
partial void PostInit();
|
|
partial void PostResolve();
|
|
}
|
|
}
|