128 lines
5.0 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 BLevel : Luban.BeanBase
{
public BLevel(JSONNode _buf)
{
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
{ if(!_buf["name"].IsString) { 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<string>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { string __v0; { if(!__e0.IsString) { 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"]; }
2024-11-13 16:56:37 +08:00
{ 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); } }
2024-11-05 18:15:49 +08:00
{ if(!_buf["Rewards"].IsNumber) { throw new SerializationException(); } Rewards = _buf["Rewards"]; }
}
public static BLevel DeserializeBLevel(JSONNode _buf)
{
return new BLevel(_buf);
}
/// <summary>
/// 关卡ID
/// </summary>
public readonly int ID;
/// <summary>
/// #ID
/// </summary>
public readonly string 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<string> Additionaltasks;
/// <summary>
/// 关卡走路长度
/// </summary>
public readonly int Length;
/// <summary>
/// 目标万分比
/// </summary>
public readonly int Target;
/// <summary>
/// 关卡节点位置
/// </summary>
2024-11-13 16:56:37 +08:00
public readonly System.Collections.Generic.List<int> Nodelocation;
2024-11-05 18:15:49 +08:00
/// <summary>
/// 节点事件组ID
/// </summary>
2024-11-13 16:56:37 +08:00
public readonly System.Collections.Generic.List<int> Eventgroupid;
2024-11-05 18:15:49 +08:00
/// <summary>
/// 关卡奖励
/// </summary>
public readonly int Rewards;
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 + ","
+ "}";
}
}
}