//------------------------------------------------------------------------------
//
// 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 Bright.Serialization;
using System.Collections.Generic;
using SimpleJSON;
namespace cfg.LevelCfg
{
public sealed partial class DataWeatherProp : Bright.Config.BeanBase
{
public DataWeatherProp(JSONNode _json)
{
{ if(!_json["ID"].IsNumber) { throw new SerializationException(); } ID = _json["ID"]; }
{ if(!_json["Name"].IsString) { throw new SerializationException(); } Name = _json["Name"]; }
{ var __json0 = _json["BuffIds"]; if(!__json0.IsArray) { throw new SerializationException(); } BuffIds = new System.Collections.Generic.List(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } BuffIds.Add(__v0); } }
PostInit();
}
public DataWeatherProp(int ID, string Name, System.Collections.Generic.List BuffIds )
{
this.ID = ID;
this.Name = Name;
this.BuffIds = BuffIds;
PostInit();
}
public static DataWeatherProp DeserializeDataWeatherProp(JSONNode _json)
{
return new LevelCfg.DataWeatherProp(_json);
}
///
/// 配置用ID
///
public int ID { get; private set; }
///
/// 名字
///
public string Name { get; private set; }
///
/// 对应的属性id
///
public System.Collections.Generic.List BuffIds { get; private set; }
public const int __ID__ = -964155457;
public override int GetTypeId() => __ID__;
public void Resolve(Dictionary _tables)
{
PostResolve();
}
public void TranslateText(System.Func translator)
{
}
public override string ToString()
{
return "{ "
+ "ID:" + ID + ","
+ "Name:" + Name + ","
+ "BuffIds:" + Bright.Common.StringUtil.CollectionToString(BuffIds) + ","
+ "}";
}
partial void PostInit();
partial void PostResolve();
}
}