//------------------------------------------------------------------------------ // // This code was generated by a tool. // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ 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); } /// /// id /// public readonly int ID; /// /// 怪物名称 /// public readonly string Name; /// /// 怪物等级 /// public readonly int MonsterLevel; /// /// 关卡内攻击 /// public readonly int Attack; /// /// 关卡内生命 /// public readonly int HP; /// /// 关卡内最大攻击 /// public readonly int Attackda; /// /// 关卡最大生命 /// public readonly int HPda; /// /// 攻击范围 /// public readonly int Range; /// /// 移动速度 /// public readonly int Move; /// /// 怪物皮肤 /// public readonly string BattleMouster; /// /// 攻击调用技能 /// public readonly int Attackskill; /// /// 是否显示血条 /// public readonly int Bloodbar; /// /// 出现是否预警 /// public readonly int Warning; /// /// 怪物缩放 /// 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 + "," + "}"; } } }