//------------------------------------------------------------------------------
//
// 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 Daily : FishingEventType
{
public Daily(JSONNode _json) : base(_json)
{
{ if(!_json["StartTime"].IsNumber) { throw new SerializationException(); } StartTime = _json["StartTime"]; }
{ if(!_json["EndTime"].IsNumber) { throw new SerializationException(); } EndTime = _json["EndTime"]; }
PostInit();
}
public Daily(int StartTime, int EndTime ) : base()
{
this.StartTime = StartTime;
this.EndTime = EndTime;
PostInit();
}
public static Daily DeserializeDaily(JSONNode _json)
{
return new Daily(_json);
}
///
/// 起始时间,单位秒
///
public int StartTime { get; private set; }
///
/// 终止时间,单位秒
///
public int EndTime { get; private set; }
public const int __ID__ = 65793529;
public override int GetTypeId() => __ID__;
public override void Resolve(Dictionary _tables)
{
base.Resolve(_tables);
PostResolve();
}
public override void TranslateText(System.Func translator)
{
base.TranslateText(translator);
}
public override string ToString()
{
return "{ "
+ "StartTime:" + StartTime + ","
+ "EndTime:" + EndTime + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}