NLDClient-yudde/ProjectNLD/Assets/Code/Scripts/Gameplay/DataTable/RedPoint/DataRedPoint.cs

78 lines
2.1 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.RedPoint
{
public sealed partial class DataRedPoint : Bright.Config.BeanBase
{
public DataRedPoint(JSONNode _json)
{
{ if(!_json["Id"].IsNumber) { throw new SerializationException(); } Id = _json["Id"]; }
{ if(!_json["ParentID"].IsNumber) { throw new SerializationException(); } ParentID = _json["ParentID"]; }
{ if(!_json["Type"].IsNumber) { throw new SerializationException(); } Type = (RedPoint.NodeType)_json["Type"].AsInt; }
PostInit();
}
public DataRedPoint(int Id, int ParentID, RedPoint.NodeType Type )
{
this.Id = Id;
this.ParentID = ParentID;
this.Type = Type;
PostInit();
}
public static DataRedPoint DeserializeDataRedPoint(JSONNode _json)
{
return new RedPoint.DataRedPoint(_json);
}
/// <summary>
/// 节点ID
/// </summary>
public int Id { get; private set; }
/// <summary>
/// 父节点ID
/// </summary>
public int ParentID { get; private set; }
/// <summary>
/// 节点类型
/// </summary>
public RedPoint.NodeType Type { get; private set; }
public const int __ID__ = -1475526824;
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 "{ "
+ "Id:" + Id + ","
+ "ParentID:" + ParentID + ","
+ "Type:" + Type + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}