//------------------------------------------------------------------------------ // // 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 WeaponAttributeData : Luban.BeanBase { public WeaponAttributeData(JSONNode _buf) { { if(!_buf["ID"].IsNumber) { throw new SerializationException(); } ID = _buf["ID"]; } { if(!_buf["Arms"].IsNumber) { throw new SerializationException(); } Arms = _buf["Arms"]; } { if(!_buf["Name"].IsString) { throw new SerializationException(); } Name = _buf["Name"]; } { if(!_buf["Level"].IsNumber) { throw new SerializationException(); } Level = _buf["Level"]; } { if(!_buf["Upgrade"].IsNumber) { throw new SerializationException(); } Upgrade = _buf["Upgrade"]; } { if(!_buf["Upgradenumber"].IsNumber) { throw new SerializationException(); } Upgradenumber = _buf["Upgradenumber"]; } { if(!_buf["Upgradegold"].IsNumber) { throw new SerializationException(); } Upgradegold = _buf["Upgradegold"]; } { if(!_buf["Attack"].IsNumber) { throw new SerializationException(); } Attack = _buf["Attack"]; } { if(!_buf["HP"].IsNumber) { throw new SerializationException(); } HP = _buf["HP"]; } { if(!_buf["Getskill"].IsNumber) { throw new SerializationException(); } Getskill = _buf["Getskill"]; } { if(!_buf["Unlock"].IsNumber) { throw new SerializationException(); } Unlock = _buf["Unlock"]; } } public static WeaponAttributeData DeserializeWeaponAttributeData(JSONNode _buf) { return new BlacksmithData.WeaponAttributeData(_buf); } /// /// 升级ID /// public readonly int ID; /// /// 武器ID /// public readonly int Arms; /// /// 名称 /// public readonly string Name; /// /// 等级 /// public readonly int Level; /// /// 升级消耗材料 /// public readonly int Upgrade; /// /// 升级消耗数量 /// public readonly int Upgradenumber; /// /// 升级消耗金币 /// public readonly int Upgradegold; /// /// 攻击 /// public readonly int Attack; /// /// 生命 /// public readonly int HP; /// /// 获得技能ID /// public readonly int Getskill; /// /// 解锁武器 /// public readonly int Unlock; public const int __ID__ = -334700822; public override int GetTypeId() => __ID__; public void ResolveRef(Tables tables) { } public override string ToString() { return "{ " + "ID:" + ID + "," + "Arms:" + Arms + "," + "Name:" + Name + "," + "Level:" + Level + "," + "Upgrade:" + Upgrade + "," + "Upgradenumber:" + Upgradenumber + "," + "Upgradegold:" + Upgradegold + "," + "Attack:" + Attack + "," + "HP:" + HP + "," + "Getskill:" + Getskill + "," + "Unlock:" + Unlock + "," + "}"; } } }