98 lines
3.0 KiB
C#
98 lines
3.0 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 Luban;
|
||
|
using SimpleJSON;
|
||
|
|
||
|
|
||
|
namespace cfg
|
||
|
{
|
||
|
public sealed partial class BProp : Luban.BeanBase
|
||
|
{
|
||
|
public BProp(JSONNode _buf)
|
||
|
{
|
||
|
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||
|
{ if(!_buf["PropName"].IsString) { throw new SerializationException(); } PropName = _buf["PropName"]; }
|
||
|
{ if(!_buf["PropType"].IsNumber) { throw new SerializationException(); } PropType = _buf["PropType"]; }
|
||
|
{ if(!_buf["Proplevel"].IsNumber) { throw new SerializationException(); } Proplevel = _buf["Proplevel"]; }
|
||
|
{ if(!_buf["Preform"].IsString) { throw new SerializationException(); } Preform = _buf["Preform"]; }
|
||
|
{ if(!_buf["Propicon"].IsString) { throw new SerializationException(); } Propicon = _buf["Propicon"]; }
|
||
|
{ if(!_buf["Propfunction"].IsNumber) { throw new SerializationException(); } Propfunction = _buf["Propfunction"]; }
|
||
|
{ if(!_buf["Propattributes"].IsNumber) { throw new SerializationException(); } Propattributes = _buf["Propattributes"]; }
|
||
|
{ if(!_buf["Propweight"].IsNumber) { throw new SerializationException(); } Propweight = _buf["Propweight"]; }
|
||
|
}
|
||
|
|
||
|
public static BProp DeserializeBProp(JSONNode _buf)
|
||
|
{
|
||
|
return new BProp(_buf);
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// ID
|
||
|
/// </summary>
|
||
|
public readonly int ID;
|
||
|
/// <summary>
|
||
|
/// 道具名称
|
||
|
/// </summary>
|
||
|
public readonly string PropName;
|
||
|
/// <summary>
|
||
|
/// 道具类型
|
||
|
/// </summary>
|
||
|
public readonly int PropType;
|
||
|
/// <summary>
|
||
|
/// 道具等级
|
||
|
/// </summary>
|
||
|
public readonly int Proplevel;
|
||
|
/// <summary>
|
||
|
/// 预制体名字
|
||
|
/// </summary>
|
||
|
public readonly string Preform;
|
||
|
/// <summary>
|
||
|
/// 道具图标
|
||
|
/// </summary>
|
||
|
public readonly string Propicon;
|
||
|
/// <summary>
|
||
|
/// 道具作用类型
|
||
|
/// </summary>
|
||
|
public readonly int Propfunction;
|
||
|
/// <summary>
|
||
|
/// 道具属性值
|
||
|
/// </summary>
|
||
|
public readonly int Propattributes;
|
||
|
/// <summary>
|
||
|
/// 道具占比权重
|
||
|
/// </summary>
|
||
|
public readonly int Propweight;
|
||
|
|
||
|
public const int __ID__ = 63448773;
|
||
|
public override int GetTypeId() => __ID__;
|
||
|
|
||
|
public void ResolveRef(Tables tables)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public override string ToString()
|
||
|
{
|
||
|
return "{ "
|
||
|
+ "ID:" + ID + ","
|
||
|
+ "PropName:" + PropName + ","
|
||
|
+ "PropType:" + PropType + ","
|
||
|
+ "Proplevel:" + Proplevel + ","
|
||
|
+ "Preform:" + Preform + ","
|
||
|
+ "Propicon:" + Propicon + ","
|
||
|
+ "Propfunction:" + Propfunction + ","
|
||
|
+ "Propattributes:" + Propattributes + ","
|
||
|
+ "Propweight:" + Propweight + ","
|
||
|
+ "}";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|