131 lines
4.3 KiB
C#
131 lines
4.3 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 MousterData : Luban.BeanBase
|
||
|
{
|
||
|
public MousterData(JSONNode _buf)
|
||
|
{
|
||
|
{ if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; }
|
||
|
{ if(!_buf["Name"].IsString) { throw new SerializationException(); } Name = _buf["Name"]; }
|
||
|
{ if(!_buf["MonsterLevel"].IsNumber) { throw new SerializationException(); } MonsterLevel = _buf["MonsterLevel"]; }
|
||
|
{ if(!_buf["Attack"].IsNumber) { throw new SerializationException(); } Attack = _buf["Attack"]; }
|
||
|
{ if(!_buf["HP"].IsNumber) { throw new SerializationException(); } HP = _buf["HP"]; }
|
||
|
{ if(!_buf["Attackda"].IsNumber) { throw new SerializationException(); } Attackda = _buf["Attackda"]; }
|
||
|
{ if(!_buf["HPda"].IsNumber) { throw new SerializationException(); } HPda = _buf["HPda"]; }
|
||
|
{ if(!_buf["Range"].IsNumber) { throw new SerializationException(); } Range = _buf["Range"]; }
|
||
|
{ if(!_buf["Move"].IsNumber) { throw new SerializationException(); } Move = _buf["Move"]; }
|
||
|
{ if(!_buf["Battle_mouster"].IsString) { throw new SerializationException(); } BattleMouster = _buf["Battle_mouster"]; }
|
||
|
{ if(!_buf["Attackskill"].IsNumber) { throw new SerializationException(); } Attackskill = _buf["Attackskill"]; }
|
||
|
{ if(!_buf["Bloodbar"].IsNumber) { throw new SerializationException(); } Bloodbar = _buf["Bloodbar"]; }
|
||
|
{ if(!_buf["Warning"].IsNumber) { throw new SerializationException(); } Warning = _buf["Warning"]; }
|
||
|
{ if(!_buf["Zoom"].IsNumber) { throw new SerializationException(); } Zoom = _buf["Zoom"]; }
|
||
|
{ if(!_buf["Prefab"].IsString) { throw new SerializationException(); } Prefab = _buf["Prefab"]; }
|
||
|
}
|
||
|
|
||
|
public static MousterData DeserializeMousterData(JSONNode _buf)
|
||
|
{
|
||
|
return new BlacksmithData.MousterData(_buf);
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// id
|
||
|
/// </summary>
|
||
|
public readonly int ID;
|
||
|
/// <summary>
|
||
|
/// 怪物名称
|
||
|
/// </summary>
|
||
|
public readonly string Name;
|
||
|
/// <summary>
|
||
|
/// 怪物等级
|
||
|
/// </summary>
|
||
|
public readonly int MonsterLevel;
|
||
|
/// <summary>
|
||
|
/// 关卡内攻击
|
||
|
/// </summary>
|
||
|
public readonly int Attack;
|
||
|
/// <summary>
|
||
|
/// 关卡内生命
|
||
|
/// </summary>
|
||
|
public readonly int HP;
|
||
|
/// <summary>
|
||
|
/// 关卡内最大攻击
|
||
|
/// </summary>
|
||
|
public readonly int Attackda;
|
||
|
/// <summary>
|
||
|
/// 关卡最大生命
|
||
|
/// </summary>
|
||
|
public readonly int HPda;
|
||
|
/// <summary>
|
||
|
/// 攻击范围
|
||
|
/// </summary>
|
||
|
public readonly int Range;
|
||
|
/// <summary>
|
||
|
/// 移动速度
|
||
|
/// </summary>
|
||
|
public readonly int Move;
|
||
|
/// <summary>
|
||
|
/// 怪物皮肤
|
||
|
/// </summary>
|
||
|
public readonly string BattleMouster;
|
||
|
/// <summary>
|
||
|
/// 攻击调用技能
|
||
|
/// </summary>
|
||
|
public readonly int Attackskill;
|
||
|
/// <summary>
|
||
|
/// 是否显示血条
|
||
|
/// </summary>
|
||
|
public readonly int Bloodbar;
|
||
|
/// <summary>
|
||
|
/// 出现是否预警
|
||
|
/// </summary>
|
||
|
public readonly int Warning;
|
||
|
/// <summary>
|
||
|
/// 怪物缩放
|
||
|
/// </summary>
|
||
|
public readonly int Zoom;
|
||
|
public readonly string Prefab;
|
||
|
|
||
|
public const int __ID__ = -20628757;
|
||
|
public override int GetTypeId() => __ID__;
|
||
|
|
||
|
public void ResolveRef(Tables tables)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public override string ToString()
|
||
|
{
|
||
|
return "{ "
|
||
|
+ "ID:" + ID + ","
|
||
|
+ "Name:" + Name + ","
|
||
|
+ "MonsterLevel:" + MonsterLevel + ","
|
||
|
+ "Attack:" + Attack + ","
|
||
|
+ "HP:" + HP + ","
|
||
|
+ "Attackda:" + Attackda + ","
|
||
|
+ "HPda:" + HPda + ","
|
||
|
+ "Range:" + Range + ","
|
||
|
+ "Move:" + Move + ","
|
||
|
+ "BattleMouster:" + BattleMouster + ","
|
||
|
+ "Attackskill:" + Attackskill + ","
|
||
|
+ "Bloodbar:" + Bloodbar + ","
|
||
|
+ "Warning:" + Warning + ","
|
||
|
+ "Zoom:" + Zoom + ","
|
||
|
+ "Prefab:" + Prefab + ","
|
||
|
+ "}";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|