104 lines
3.3 KiB
C#
Raw Normal View History

2024-11-13 16:56:37 +08:00
//------------------------------------------------------------------------------
// <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"]; }
2024-11-21 09:35:48 +08:00
{ if(!_buf["NextLevelID"].IsNumber) { throw new SerializationException(); } NextLevelID = _buf["NextLevelID"]; }
2024-11-13 16:56:37 +08:00
{ 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>
2024-11-26 15:44:50 +08:00
public readonly float Propattributes;
2024-11-13 16:56:37 +08:00
/// <summary>
2024-11-21 09:35:48 +08:00
/// 下一级ID
/// </summary>
public readonly int NextLevelID;
/// <summary>
2024-11-13 16:56:37 +08:00
/// 道具占比权重
/// </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 + ","
2024-11-21 09:35:48 +08:00
+ "NextLevelID:" + NextLevelID + ","
2024-11-13 16:56:37 +08:00
+ "Propweight:" + Propweight + ","
+ "}";
}
}
}