//------------------------------------------------------------------------------
//
// 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 FishHurt : Bright.Config.BeanBase
{
public JSONNode json;
public FishHurt(JSONNode _json)
{
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
{ if(!_json["Index"].IsNumber) { throw new SerializationException(); } Index = _json["Index"]; }
{ if(!_json["Duration"].IsNumber) { throw new SerializationException(); } Duration = _json["Duration"]; }
json = _json;
PostInit();
}
public FishHurt(int ID, int Index, float Duration )
{
this.ID = ID;
this.Index = Index;
this.Duration = Duration;
PostInit();
}
public static FishHurt DeserializeFishHurt(JSONNode _json)
{
return new FishHurt(_json);
}
///
/// 编号
///
public int ID { get; private set; }
///
/// 技能序号
///
public int Index { get; private set; }
///
/// 持续时长
///
public float Duration { get; private set; }
public const int __ID__ = -468062553;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary _tables)
{
PostResolve();
}
public void TranslateText(System.Func translator)
{
}
public override string ToString()
{
return "{ "
+ "ID:" + ID + ","
+ "Index:" + Index + ","
+ "Duration:" + Duration + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}