92 lines
3.1 KiB
C#
Raw Normal View History

//------------------------------------------------------------------------------
// <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 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<int>(__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"]; }
}
public static SkillRogueData DeserializeSkillRogueData(JSONNode _buf)
{
return new BlacksmithData.SkillRogueData(_buf);
}
/// <summary>
/// 肉鸽ID
/// </summary>
public readonly int ID;
/// <summary>
/// 判断携带道具
/// </summary>
public readonly System.Collections.Generic.List<int> Carryingprops;
/// <summary>
/// 肉鸽技能出现前置技能
/// </summary>
public readonly int Frontend;
/// <summary>
/// 选项品质
/// </summary>
public readonly int Quality;
/// <summary>
/// 肉鸽技能图标
/// </summary>
public readonly string Icon;
/// <summary>
/// 添加技能
/// </summary>
public readonly int Addskill;
/// <summary>
/// 替换技能
/// </summary>
public readonly int Replace;
/// <summary>
/// 出现权重
/// </summary>
public readonly int Weight;
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 + ","
+ "}";
}
}
}