NLDClient-yudde/ProjectNLD/Assets/Code/Scripts/Gameplay/DataTable/BoundsCfg/DataBounds.cs

106 lines
3.7 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.BoundsCfg
{
public sealed partial class DataBounds : Bright.Config.BeanBase
{
public DataBounds(JSONNode _json)
{
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
{ if(!_json["BoundTag"].IsNumber) { throw new SerializationException(); } BoundTag = (CharacterCfg.Efaction)_json["BoundTag"].AsInt; }
{ if(!_json["TriggerCount"].IsNumber) { throw new SerializationException(); } TriggerCount = _json["TriggerCount"]; }
{ if(!_json["Name"].IsString) { throw new SerializationException(); } Name = _json["Name"]; }
{ if(!_json["DESC"].IsString) { throw new SerializationException(); } DESC = _json["DESC"]; }
{ if(!_json["TargetType"].IsNumber) { throw new SerializationException(); } TargetType = (BoundsCfg.EBoundsTarget)_json["TargetType"].AsInt; }
{ var __json0 = _json["BuffIds"]; if(!__json0.IsArray) { throw new SerializationException(); } BuffIds = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } BuffIds.Add(__v0); } }
PostInit();
}
public DataBounds(int ID, CharacterCfg.Efaction BoundTag, int TriggerCount, string Name, string DESC, BoundsCfg.EBoundsTarget TargetType, System.Collections.Generic.List<int> BuffIds )
{
this.ID = ID;
this.BoundTag = BoundTag;
this.TriggerCount = TriggerCount;
this.Name = Name;
this.DESC = DESC;
this.TargetType = TargetType;
this.BuffIds = BuffIds;
PostInit();
}
public static DataBounds DeserializeDataBounds(JSONNode _json)
{
return new BoundsCfg.DataBounds(_json);
}
/// <summary>
/// 配置用ID
/// </summary>
public int ID { get; private set; }
/// <summary>
/// 羁绊标签
/// </summary>
public CharacterCfg.Efaction BoundTag { get; private set; }
/// <summary>
/// 触发数量
/// </summary>
public int TriggerCount { get; private set; }
/// <summary>
/// 名字
/// </summary>
public string Name { get; private set; }
/// <summary>
/// 描述
/// </summary>
public string DESC { get; private set; }
/// <summary>
/// 作用对象
/// </summary>
public BoundsCfg.EBoundsTarget TargetType { get; private set; }
/// <summary>
/// 增加buffIds
/// </summary>
public System.Collections.Generic.List<int> BuffIds { get; private set; }
public const int __ID__ = -2092395234;
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 + ","
+ "BoundTag:" + BoundTag + ","
+ "TriggerCount:" + TriggerCount + ","
+ "Name:" + Name + ","
+ "DESC:" + DESC + ","
+ "TargetType:" + TargetType + ","
+ "BuffIds:" + Bright.Common.StringUtil.CollectionToString(BuffIds) + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}