92 lines
2.9 KiB
C#
92 lines
2.9 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 BBuildLevelUp : Luban.BeanBase
|
|
{
|
|
public BBuildLevelUp(JSONNode _buf)
|
|
{
|
|
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
|
{ if(!_buf["Buildingwhere"].IsNumber) { throw new SerializationException(); } Buildingwhere = _buf["Buildingwhere"]; }
|
|
{ if(!_buf["Buildingclass"].IsNumber) { throw new SerializationException(); } Buildingclass = _buf["Buildingclass"]; }
|
|
{ if(!_buf["Buildingtype"].IsNumber) { throw new SerializationException(); } Buildingtype = _buf["Buildingtype"]; }
|
|
{ if(!_buf["Buildinglevel"].IsNumber) { throw new SerializationException(); } Buildinglevel = _buf["Buildinglevel"]; }
|
|
{ if(!_buf["Buildingup"].IsNumber) { throw new SerializationException(); } Buildingup = _buf["Buildingup"]; }
|
|
{ if(!_buf["Buildingnext"].IsNumber) { throw new SerializationException(); } Buildingnext = _buf["Buildingnext"]; }
|
|
{ if(!_buf["Buildingicon"].IsString) { throw new SerializationException(); } Buildingicon = _buf["Buildingicon"]; }
|
|
}
|
|
|
|
public static BBuildLevelUp DeserializeBBuildLevelUp(JSONNode _buf)
|
|
{
|
|
return new BBuildLevelUp(_buf);
|
|
}
|
|
|
|
/// <summary>
|
|
/// ID
|
|
/// </summary>
|
|
public readonly int ID;
|
|
/// <summary>
|
|
/// 所在的建筑
|
|
/// </summary>
|
|
public readonly int Buildingwhere;
|
|
/// <summary>
|
|
/// 建筑阶级
|
|
/// </summary>
|
|
public readonly int Buildingclass;
|
|
/// <summary>
|
|
/// 建筑类型
|
|
/// </summary>
|
|
public readonly int Buildingtype;
|
|
/// <summary>
|
|
/// 建筑等级
|
|
/// </summary>
|
|
public readonly int Buildinglevel;
|
|
/// <summary>
|
|
/// 升级消耗星星
|
|
/// </summary>
|
|
public readonly int Buildingup;
|
|
/// <summary>
|
|
/// 下一等级ID
|
|
/// </summary>
|
|
public readonly int Buildingnext;
|
|
/// <summary>
|
|
/// 建筑图标
|
|
/// </summary>
|
|
public readonly string Buildingicon;
|
|
|
|
public const int __ID__ = 1081028691;
|
|
public override int GetTypeId() => __ID__;
|
|
|
|
public void ResolveRef(Tables tables)
|
|
{
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return "{ "
|
|
+ "ID:" + ID + ","
|
|
+ "Buildingwhere:" + Buildingwhere + ","
|
|
+ "Buildingclass:" + Buildingclass + ","
|
|
+ "Buildingtype:" + Buildingtype + ","
|
|
+ "Buildinglevel:" + Buildinglevel + ","
|
|
+ "Buildingup:" + Buildingup + ","
|
|
+ "Buildingnext:" + Buildingnext + ","
|
|
+ "Buildingicon:" + Buildingicon + ","
|
|
+ "}";
|
|
}
|
|
}
|
|
|
|
}
|
|
|