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

74 lines
2.6 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 BEventgroup : Luban.BeanBase
{
public BEventgroup(JSONNode _buf)
{
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
2024-11-26 15:44:50 +08:00
{ if(!_buf["EventDescribe"].IsNumber) { throw new SerializationException(); } EventDescribe = _buf["EventDescribe"]; }
{ var __json0 = _buf["Eventgroup1"]; if(!__json0.IsArray) { throw new SerializationException(); } Eventgroup1 = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Eventgroup1.Add(__v0); } }
{ var __json0 = _buf["Eventgroup2"]; if(!__json0.IsArray) { throw new SerializationException(); } Eventgroup2 = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Eventgroup2.Add(__v0); } }
2024-11-21 09:35:48 +08:00
{ if(!_buf["icon"].IsString) { throw new SerializationException(); } Icon = _buf["icon"]; }
2024-11-05 18:15:49 +08:00
}
public static BEventgroup DeserializeBEventgroup(JSONNode _buf)
{
return new BEventgroup(_buf);
}
/// <summary>
/// #ID
/// </summary>
public readonly int ID;
/// <summary>
2024-11-26 15:44:50 +08:00
/// 事件位置描述
2024-11-05 18:15:49 +08:00
/// </summary>
2024-11-26 15:44:50 +08:00
public readonly int EventDescribe;
/// <summary>
/// 事件1会出现的事件
/// </summary>
public readonly System.Collections.Generic.List<int> Eventgroup1;
/// <summary>
/// 事件2会出现的事件
/// </summary>
public readonly System.Collections.Generic.List<int> Eventgroup2;
2024-11-21 09:35:48 +08:00
/// <summary>
/// 图标
/// </summary>
public readonly string Icon;
2024-11-05 18:15:49 +08:00
public const int __ID__ = 350488071;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "ID:" + ID + ","
2024-11-26 15:44:50 +08:00
+ "EventDescribe:" + EventDescribe + ","
+ "Eventgroup1:" + Luban.StringUtil.CollectionToString(Eventgroup1) + ","
+ "Eventgroup2:" + Luban.StringUtil.CollectionToString(Eventgroup2) + ","
2024-11-21 09:35:48 +08:00
+ "icon:" + Icon + ","
2024-11-05 18:15:49 +08:00
+ "}";
}
}
}