NLDClient-yudde/ProjectNLD/Assets/Code/Scripts/Gameplay/DataTable/LevelCfg/DataTerrianProp.cs

78 lines
2.3 KiB
C#
Raw Normal View History

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