//------------------------------------------------------------------------------
//
// 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 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);
}
///
/// 核心区域所需要的刮开的面积占核心区域面积比
///
public float CoreScratchPercent { get; private set; }
///
/// 全部区域所需要的刮开的面积占比
///
public float TotalScratchPercent { get; private set; }
public const int __ID__ = -1710325118;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary _tables)
{
PostResolve();
}
public void TranslateText(System.Func translator)
{
}
public override string ToString()
{
return "{ "
+ "CoreScratchPercent:" + CoreScratchPercent + ","
+ "TotalScratchPercent:" + TotalScratchPercent + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}