104 lines
3.8 KiB
C#
104 lines
3.8 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.BlacksmithData
|
|
{
|
|
public sealed partial class LevelWaveData : Luban.BeanBase
|
|
{
|
|
public LevelWaveData(JSONNode _buf)
|
|
{
|
|
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
|
{ if(!_buf["Levels"].IsNumber) { throw new SerializationException(); } Levels = _buf["Levels"]; }
|
|
{ if(!_buf["Wave"].IsNumber) { throw new SerializationException(); } Wave = _buf["Wave"]; }
|
|
{ if(!_buf["Appear"].IsNumber) { throw new SerializationException(); } Appear = _buf["Appear"]; }
|
|
{ if(!_buf["Conditional"].IsNumber) { throw new SerializationException(); } Conditional = _buf["Conditional"]; }
|
|
{ var __json0 = _buf["Monsters"]; if(!__json0.IsArray) { throw new SerializationException(); } Monsters = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } Monsters.Add(__v0); } }
|
|
{ if(!_buf["Coefficient"].IsNumber) { throw new SerializationException(); } Coefficient = _buf["Coefficient"]; }
|
|
{ if(!_buf["Monsterall"].IsNumber) { throw new SerializationException(); } Monsterall = _buf["Monsterall"]; }
|
|
{ var __json0 = _buf["MonsterWeight"]; if(!__json0.IsArray) { throw new SerializationException(); } MonsterWeight = new System.Collections.Generic.List<int>(__json0.Count); foreach(JSONNode __e0 in __json0.Children) { int __v0; { if(!__e0.IsNumber) { throw new SerializationException(); } __v0 = __e0; } MonsterWeight.Add(__v0); } }
|
|
{ if(!_buf["Drop"].IsNumber) { throw new SerializationException(); } Drop = _buf["Drop"]; }
|
|
}
|
|
|
|
public static LevelWaveData DeserializeLevelWaveData(JSONNode _buf)
|
|
{
|
|
return new BlacksmithData.LevelWaveData(_buf);
|
|
}
|
|
|
|
/// <summary>
|
|
/// ID
|
|
/// </summary>
|
|
public readonly int ID;
|
|
/// <summary>
|
|
/// 关卡数
|
|
/// </summary>
|
|
public readonly int Levels;
|
|
/// <summary>
|
|
/// 对应波次
|
|
/// </summary>
|
|
public readonly int Wave;
|
|
/// <summary>
|
|
/// 出怪条件
|
|
/// </summary>
|
|
public readonly int Appear;
|
|
/// <summary>
|
|
/// 条件系数
|
|
/// </summary>
|
|
public readonly int Conditional;
|
|
/// <summary>
|
|
/// 怪物ID
|
|
/// </summary>
|
|
public readonly System.Collections.Generic.List<int> Monsters;
|
|
/// <summary>
|
|
/// 属性系数
|
|
/// </summary>
|
|
public readonly float Coefficient;
|
|
/// <summary>
|
|
/// 怪物总数
|
|
/// </summary>
|
|
public readonly int Monsterall;
|
|
/// <summary>
|
|
/// 出怪权重
|
|
/// </summary>
|
|
public readonly System.Collections.Generic.List<int> MonsterWeight;
|
|
/// <summary>
|
|
/// 波次掉落ID
|
|
/// </summary>
|
|
public readonly int Drop;
|
|
|
|
public const int __ID__ = -511295193;
|
|
public override int GetTypeId() => __ID__;
|
|
|
|
public void ResolveRef(Tables tables)
|
|
{
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return "{ "
|
|
+ "ID:" + ID + ","
|
|
+ "Levels:" + Levels + ","
|
|
+ "Wave:" + Wave + ","
|
|
+ "Appear:" + Appear + ","
|
|
+ "Conditional:" + Conditional + ","
|
|
+ "Monsters:" + Luban.StringUtil.CollectionToString(Monsters) + ","
|
|
+ "Coefficient:" + Coefficient + ","
|
|
+ "Monsterall:" + Monsterall + ","
|
|
+ "MonsterWeight:" + Luban.StringUtil.CollectionToString(MonsterWeight) + ","
|
|
+ "Drop:" + Drop + ","
|
|
+ "}";
|
|
}
|
|
}
|
|
|
|
}
|
|
|