This commit is contained in:
MuHua-123
2025-07-23 18:01:18 +08:00
parent 8ebd3864c6
commit 5ca97fb0b1
54 changed files with 749 additions and 704 deletions
+27
View File
@@ -0,0 +1,27 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// 库存类型枚举,区分背包、仓库等不同库存。
/// </summary>
public enum InventoryType { EquipmentSlot, Backpack, Storage }
/// <summary>
/// 物品库存 - 数据
/// </summary>
public abstract class DataInventory {
/// <summary> 库存类型 </summary>
public InventoryType inventoryType;
}
/// <summary>
/// 仓库 - 库存
/// </summary>
public class DataStorage : DataInventory {
}
/// <summary>
/// 背包 - 库存
/// </summary>
public class DataBackpack : DataInventory {
}