//------------------------------------------------------------------------------
//
// 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
{
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);
}
///
/// ID
///
public readonly int ID;
///
/// 所在的建筑
///
public readonly int Buildingwhere;
///
/// 建筑阶级
///
public readonly int Buildingclass;
///
/// 建筑类型
///
public readonly int Buildingtype;
///
/// 建筑等级
///
public readonly int Buildinglevel;
///
/// 升级消耗星星
///
public readonly int Buildingup;
///
/// 下一等级ID
///
public readonly int Buildingnext;
///
/// 建筑图标
///
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 + ","
+ "}";
}
}
}