NLDClient-yudde/ProjectNLD/Assets/Code/Scripts/Gameplay/DataTable/SkillCfg/DataSkillRefer.cs

71 lines
2.2 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.SkillCfg
{
public sealed partial class DataSkillRefer : Bright.Config.BeanBase
{
public DataSkillRefer(JSONNode _json)
{
{ if(!_json["SkillGroupId"].IsNumber) { throw new SerializationException(); } SkillGroupId = _json["SkillGroupId"]; }
{ var __json0 = _json["SkillIds"]; if(!__json0.IsArray) { throw new SerializationException(); } SkillIds = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } SkillIds.Add(__v0); } }
PostInit();
}
public DataSkillRefer(int SkillGroupId, System.Collections.Generic.List<int> SkillIds )
{
this.SkillGroupId = SkillGroupId;
this.SkillIds = SkillIds;
PostInit();
}
public static DataSkillRefer DeserializeDataSkillRefer(JSONNode _json)
{
return new SkillCfg.DataSkillRefer(_json);
}
/// <summary>
/// 技能组Id
/// </summary>
public int SkillGroupId { get; private set; }
/// <summary>
/// 技能对应突破等级的具体id
/// </summary>
public System.Collections.Generic.List<int> SkillIds { get; private set; }
public const int __ID__ = -2022533388;
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 "{ "
+ "SkillGroupId:" + SkillGroupId + ","
+ "SkillIds:" + Bright.Common.StringUtil.CollectionToString(SkillIds) + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}