- 引入 UnityGameFramework
- 使用 Luban 替代原来的 UGF 的数据表
This commit is contained in:
@@ -0,0 +1,111 @@
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <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();
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
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 + ","
|
||||
+ "}";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user