2024-11-26 15:44:50 +08:00

146 lines
5.7 KiB
C#

//------------------------------------------------------------------------------
// <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 BLevel : Luban.BeanBase
{
public BLevel(JSONNode _buf)
{
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
{ if(!_buf["name"].IsNumber) { throw new SerializationException(); } Name = _buf["name"]; }
{ if(!_buf["Front"].IsNumber) { throw new SerializationException(); } Front = _buf["Front"]; }
{ if(!_buf["Strength"].IsNumber) { throw new SerializationException(); } Strength = _buf["Strength"]; }
{ if(!_buf["Timetype"].IsNumber) { throw new SerializationException(); } Timetype = _buf["Timetype"]; }
{ if(!_buf["Countdown"].IsNumber) { throw new SerializationException(); } Countdown = _buf["Countdown"]; }
{ if(!_buf["Box"].IsNumber) { throw new SerializationException(); } Box = _buf["Box"]; }
{ if(!_buf["Maintasks"].IsNumber) { throw new SerializationException(); } Maintasks = _buf["Maintasks"]; }
{ var __json0 = _buf["Additionaltasks"]; if(!__json0.IsArray) { throw new SerializationException(); } Additionaltasks = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Additionaltasks.Add(__v0); } }
{ if(!_buf["Length"].IsNumber) { throw new SerializationException(); } Length = _buf["Length"]; }
{ if(!_buf["Target"].IsNumber) { throw new SerializationException(); } Target = _buf["Target"]; }
{ var __json0 = _buf["Nodelocation"]; if(!__json0.IsArray) { throw new SerializationException(); } Nodelocation = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Nodelocation.Add(__v0); } }
{ var __json0 = _buf["Eventgroupid"]; if(!__json0.IsArray) { throw new SerializationException(); } Eventgroupid = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Eventgroupid.Add(__v0); } }
{ if(!_buf["Rewards"].IsNumber) { throw new SerializationException(); } Rewards = _buf["Rewards"]; }
{ if(!_buf["ItemList"].IsNumber) { throw new SerializationException(); } ItemList = _buf["ItemList"]; }
{ if(!_buf["icon"].IsString) { throw new SerializationException(); } Icon = _buf["icon"]; }
{ if(!_buf["textID"].IsNumber) { throw new SerializationException(); } TextID = _buf["textID"]; }
}
public static BLevel DeserializeBLevel(JSONNode _buf)
{
return new BLevel(_buf);
}
/// <summary>
/// 关卡ID
/// </summary>
public readonly int ID;
/// <summary>
/// #ID
/// </summary>
public readonly int Name;
/// <summary>
/// 关卡开启前置
/// </summary>
public readonly int Front;
/// <summary>
/// 体力消耗
/// </summary>
public readonly int Strength;
/// <summary>
/// 时间类型
/// </summary>
public readonly int Timetype;
/// <summary>
/// 装箱倒计时
/// </summary>
public readonly int Countdown;
/// <summary>
/// 默认箱子
/// </summary>
public readonly int Box;
/// <summary>
/// 关卡主要任务
/// </summary>
public readonly int Maintasks;
/// <summary>
/// 关卡额外任务
/// </summary>
public readonly System.Collections.Generic.List<int> Additionaltasks;
/// <summary>
/// 关卡走路长度
/// </summary>
public readonly int Length;
/// <summary>
/// 目标万分比
/// </summary>
public readonly int Target;
/// <summary>
/// 关卡节点位置
/// </summary>
public readonly System.Collections.Generic.List<int> Nodelocation;
/// <summary>
/// 节点事件组ID
/// </summary>
public readonly System.Collections.Generic.List<int> Eventgroupid;
/// <summary>
/// 关卡奖励
/// </summary>
public readonly int Rewards;
/// <summary>
/// 所用道具组
/// </summary>
public readonly int ItemList;
/// <summary>
/// 关卡用图标
/// </summary>
public readonly string Icon;
/// <summary>
/// 文本组ID
/// </summary>
public readonly int TextID;
public const int __ID__ = 1962837090;
public override int GetTypeId() => __ID__;
public void ResolveRef(Tables tables)
{
}
public override string ToString()
{
return "{ "
+ "ID:" + ID + ","
+ "name:" + Name + ","
+ "Front:" + Front + ","
+ "Strength:" + Strength + ","
+ "Timetype:" + Timetype + ","
+ "Countdown:" + Countdown + ","
+ "Box:" + Box + ","
+ "Maintasks:" + Maintasks + ","
+ "Additionaltasks:" + Luban.StringUtil.CollectionToString(Additionaltasks) + ","
+ "Length:" + Length + ","
+ "Target:" + Target + ","
+ "Nodelocation:" + Luban.StringUtil.CollectionToString(Nodelocation) + ","
+ "Eventgroupid:" + Luban.StringUtil.CollectionToString(Eventgroupid) + ","
+ "Rewards:" + Rewards + ","
+ "ItemList:" + ItemList + ","
+ "icon:" + Icon + ","
+ "textID:" + TextID + ","
+ "}";
}
}
}