2025-03-31 18:29:18 +08:00
|
|
|
|
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>
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
2025-03-31 18:29:18 +08:00
|
|
|
using Luban;
|
|
|
|
|
using SimpleJSON;
|
2023-12-21 20:00:58 +08:00
|
|
|
|
2025-03-31 18:19:34 +08:00
|
|
|
|
2023-12-21 20:00:58 +08:00
|
|
|
namespace cfg
|
|
|
|
|
{
|
2025-03-31 18:29:18 +08:00
|
|
|
public sealed partial class DataSystemCfg : Luban.BeanBase
|
|
|
|
|
{
|
2025-05-22 18:57:44 +08:00
|
|
|
public JSONNode cacheJsonNode {get; private set;}
|
|
|
|
|
|
2025-03-31 18:29:18 +08:00
|
|
|
public DataSystemCfg(JSONNode _buf)
|
2023-12-21 20:00:58 +08:00
|
|
|
{
|
2025-05-22 18:57:44 +08:00
|
|
|
cacheJsonNode = _buf;
|
2025-03-31 18:29:18 +08:00
|
|
|
{ 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;
|
2025-03-31 18:29:18 +08:00
|
|
|
|
2023-12-21 20:00:58 +08:00
|
|
|
}
|
|
|
|
|
|
2025-03-31 18:29:18 +08:00
|
|
|
public static DataSystemCfg DeserializeDataSystemCfg(JSONNode _buf)
|
2023-12-21 20:00:58 +08:00
|
|
|
{
|
2025-03-31 18:29:18 +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; }
|
2025-03-31 18:29:18 +08:00
|
|
|
|
2023-12-21 20:00:58 +08:00
|
|
|
public const int __ID__ = 122753803;
|
|
|
|
|
public override int GetTypeId() => __ID__;
|
|
|
|
|
|
2025-03-31 18:29:18 +08:00
|
|
|
public void ResolveRef(Tables tables)
|
2023-12-21 20:00:58 +08:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return "{ "
|
|
|
|
|
+ "Id:" + Id + ","
|
2025-03-31 18:29:18 +08:00
|
|
|
+ "Unlock:" + Luban.StringUtil.CollectionToString(Unlock) + ","
|
2023-12-21 20:00:58 +08:00
|
|
|
+ "}";
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-03-31 18:29:18 +08:00
|
|
|
|
2023-12-21 20:00:58 +08:00
|
|
|
}
|
2025-03-31 18:29:18 +08:00
|
|
|
|