119 lines
2.8 KiB
C#
119 lines
2.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;
|
|
|
|
|
|
namespace SepCore.Definition
|
|
{
|
|
public sealed partial class ItemConfig : Luban.BeanBase
|
|
{
|
|
public ItemConfig(ByteBuf _buf)
|
|
{
|
|
Id = _buf.ReadInt();
|
|
Name = _buf.ReadString();
|
|
ItemType = (ItemType)_buf.ReadInt();
|
|
Rarity = (Rarity)_buf.ReadInt();
|
|
StackLimit = _buf.ReadInt();
|
|
EquipSlot = (EquipmentSlotType)_buf.ReadInt();
|
|
MaxHpBonus = _buf.ReadInt();
|
|
MaxMpBonus = _buf.ReadInt();
|
|
AtkBonus = _buf.ReadInt();
|
|
MatBonus = _buf.ReadInt();
|
|
SpeedBonus = _buf.ReadInt();
|
|
}
|
|
|
|
public static ItemConfig DeserializeItemConfig(ByteBuf _buf)
|
|
{
|
|
return new ItemConfig(_buf);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 物品ID
|
|
/// </summary>
|
|
public readonly int Id;
|
|
/// <summary>
|
|
/// 原型名
|
|
/// </summary>
|
|
public readonly string Name;
|
|
/// <summary>
|
|
/// 物品类型
|
|
/// </summary>
|
|
public readonly ItemType ItemType;
|
|
/// <summary>
|
|
/// 稀有度
|
|
/// </summary>
|
|
public readonly Rarity Rarity;
|
|
/// <summary>
|
|
/// 单格堆叠上限
|
|
/// </summary>
|
|
public readonly int StackLimit;
|
|
/// <summary>
|
|
/// 装备栏类型
|
|
/// </summary>
|
|
public readonly EquipmentSlotType EquipSlot;
|
|
/// <summary>
|
|
/// HP上限修正
|
|
/// </summary>
|
|
public readonly int MaxHpBonus;
|
|
/// <summary>
|
|
/// MP上限修正
|
|
/// </summary>
|
|
public readonly int MaxMpBonus;
|
|
/// <summary>
|
|
/// ATK修正
|
|
/// </summary>
|
|
public readonly int AtkBonus;
|
|
/// <summary>
|
|
/// MAT修正
|
|
/// </summary>
|
|
public readonly int MatBonus;
|
|
/// <summary>
|
|
/// SPD修正
|
|
/// </summary>
|
|
public readonly int SpeedBonus;
|
|
|
|
public const int __ID__ = -764023723;
|
|
public override int GetTypeId() => __ID__;
|
|
|
|
public void ResolveRef(Tables tables)
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return "{ "
|
|
+ "id:" + Id + ","
|
|
+ "name:" + Name + ","
|
|
+ "itemType:" + ItemType + ","
|
|
+ "rarity:" + Rarity + ","
|
|
+ "stackLimit:" + StackLimit + ","
|
|
+ "equipSlot:" + EquipSlot + ","
|
|
+ "maxHpBonus:" + MaxHpBonus + ","
|
|
+ "maxMpBonus:" + MaxMpBonus + ","
|
|
+ "atkBonus:" + AtkBonus + ","
|
|
+ "matBonus:" + MatBonus + ","
|
|
+ "speedBonus:" + SpeedBonus + ","
|
|
+ "}";
|
|
}
|
|
}
|
|
|
|
}
|