//------------------------------------------------------------------------------
//
// 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 Luban;
using SimpleJSON;
namespace cfg.BlacksmithData
{
public sealed partial class SkillRogueData : Luban.BeanBase
{
public SkillRogueData(JSONNode _buf)
{
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
{ var __json0 = _buf["Carryingprops"]; if(!__json0.IsArray) { throw new SerializationException(); } Carryingprops = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Carryingprops.Add(__v0); } }
{ if(!_buf["Frontend"].IsNumber) { throw new SerializationException(); } Frontend = _buf["Frontend"]; }
{ if(!_buf["Quality"].IsNumber) { throw new SerializationException(); } Quality = _buf["Quality"]; }
{ if(!_buf["Icon"].IsString) { throw new SerializationException(); } Icon = _buf["Icon"]; }
{ if(!_buf["Addskill"].IsNumber) { throw new SerializationException(); } Addskill = _buf["Addskill"]; }
{ if(!_buf["Replace"].IsNumber) { throw new SerializationException(); } Replace = _buf["Replace"]; }
{ if(!_buf["Weight"].IsNumber) { throw new SerializationException(); } Weight = _buf["Weight"]; }
{ if(!_buf["Title"].IsString) { throw new SerializationException(); } Title = _buf["Title"]; }
{ if(!_buf["Describe"].IsString) { throw new SerializationException(); } Describe = _buf["Describe"]; }
}
public static SkillRogueData DeserializeSkillRogueData(JSONNode _buf)
{
return new BlacksmithData.SkillRogueData(_buf);
}
///
/// 肉鸽ID
///
public readonly int ID;
///
/// 判断携带道具
///
public readonly System.Collections.Generic.List Carryingprops;
///
/// 肉鸽技能出现前置技能
///
public readonly int Frontend;
///
/// 选项品质
///
public readonly int Quality;
///
/// 肉鸽技能图标
///
public readonly string Icon;
///
/// 添加技能
///
public readonly int Addskill;
///
/// 替换技能
///
public readonly int Replace;
///
/// 出现权重
///
public readonly int Weight;
///
/// 标题
///
public readonly string Title;
///
/// 说明
///
public readonly string Describe;
public const int __ID__ = -1909589485;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "ID:" + ID + ","
+ "Carryingprops:" + Luban.StringUtil.CollectionToString(Carryingprops) + ","
+ "Frontend:" + Frontend + ","
+ "Quality:" + Quality + ","
+ "Icon:" + Icon + ","
+ "Addskill:" + Addskill + ","
+ "Replace:" + Replace + ","
+ "Weight:" + Weight + ","
+ "Title:" + Title + ","
+ "Describe:" + Describe + ","
+ "}";
}
}
}