WXGame/box1/Assets/Script/Excel/BChapter.cs

74 lines
2.3 KiB
C#
Raw Normal View History

2024-11-05 18:15:49 +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;
namespace cfg
{
public sealed partial class BChapter : Luban.BeanBase
{
public BChapter(JSONNode _buf)
{
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
{ if(!_buf["Chaptericon"].IsString) { throw new SerializationException(); } Chaptericon = _buf["Chaptericon"]; }
{ if(!_buf["Chaptername"].IsString) { throw new SerializationException(); } Chaptername = _buf["Chaptername"]; }
2024-11-08 18:21:41 +08:00
{ var __json0 = _buf["Contain"]; if(!__json0.IsArray) { throw new SerializationException(); } Contain = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Contain.Add(__v0); } }
2024-11-05 18:15:49 +08:00
{ if(!_buf["Reward"].IsNumber) { throw new SerializationException(); } Reward = _buf["Reward"]; }
}
public static BChapter DeserializeBChapter(JSONNode _buf)
{
return new BChapter(_buf);
}
/// <summary>
/// #ID
/// </summary>
public readonly int ID;
/// <summary>
/// 章节图标
/// </summary>
public readonly string Chaptericon;
/// <summary>
/// 章节名称
/// </summary>
public readonly string Chaptername;
/// <summary>
/// 包含关卡ID
/// </summary>
2024-11-08 18:21:41 +08:00
public readonly System.Collections.Generic.List<int> Contain;
2024-11-05 18:15:49 +08:00
/// <summary>
/// 关卡宝箱ID
/// </summary>
public readonly int Reward;
public const int __ID__ = 1465034155;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "ID:" + ID + ","
+ "Chaptericon:" + Chaptericon + ","
+ "Chaptername:" + Chaptername + ","
+ "Contain:" + Luban.StringUtil.CollectionToString(Contain) + ","
+ "Reward:" + Reward + ","
+ "}";
}
}
}