NLDClient-yudde/ProjectNLD/Assets/Code/Scripts/GenCode/Luban/DataTable/DataSystemCfg.cs

66 lines
1.8 KiB
C#
Raw Normal View History

2023-12-21 20:00:58 +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;
2023-12-21 20:00:58 +08:00
2023-12-21 20:00:58 +08:00
namespace cfg
{
public sealed partial class DataSystemCfg : Luban.BeanBase
{
2025-05-22 18:57:44 +08:00
public JSONNode cacheJsonNode {get; private set;}
public DataSystemCfg(JSONNode _buf)
2023-12-21 20:00:58 +08:00
{
2025-05-22 18:57:44 +08:00
cacheJsonNode = _buf;
{ if(!_buf["Id"].IsNumber) { throw new SerializationException(); } Id = (ESystemType)_buf["Id"].AsInt; }
{ var __json0 = _buf["Unlock"]; if(!__json0.IsArray) { throw new SerializationException(); } int _n0 = __json0.Count; Unlock = new int[_n0]; int __index0=0; foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Unlock[__index0++] = __v0; } }
2023-12-21 20:00:58 +08:00
}
public DataSystemCfg(ESystemType Id, int[] Unlock )
{
this.Id = Id;
this.Unlock = Unlock;
2023-12-21 20:00:58 +08:00
}
public static DataSystemCfg DeserializeDataSystemCfg(JSONNode _buf)
2023-12-21 20:00:58 +08:00
{
return new DataSystemCfg(_buf);
2023-12-21 20:00:58 +08:00
}
/// <summary>
/// 系统类型
/// </summary>
public ESystemType Id { get; private set; }
/// <summary>
/// 解锁条件
/// </summary>
public int[] Unlock { get; private set; }
2023-12-21 20:00:58 +08:00
public const int __ID__ = 122753803;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
2023-12-21 20:00:58 +08:00
{
}
public override string ToString()
{
return "{ "
+ "Id:" + Id + ","
+ "Unlock:" + Luban.StringUtil.CollectionToString(Unlock) + ","
2023-12-21 20:00:58 +08:00
+ "}";
}
}
2023-12-21 20:00:58 +08:00
}