//------------------------------------------------------------------------------ // // 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.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(__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 SkillIds ) { this.SkillGroupId = SkillGroupId; this.SkillIds = SkillIds; PostInit(); } public static DataSkillRefer DeserializeDataSkillRefer(JSONNode _json) { return new SkillCfg.DataSkillRefer(_json); } /// /// 技能组Id /// public int SkillGroupId { get; private set; } /// /// 技能对应突破等级的具体id /// public System.Collections.Generic.List SkillIds { get; private set; } public const int __ID__ = -2022533388; public override int GetTypeId() => __ID__; public void Resolve(Dictionary _tables) { PostResolve(); } public void TranslateText(System.Func translator) { } public override string ToString() { return "{ " + "SkillGroupId:" + SkillGroupId + "," + "SkillIds:" + Bright.Common.StringUtil.CollectionToString(SkillIds) + "," + "}"; } partial void PostInit(); partial void PostResolve(); } }