using System.Collections.Generic;
namespace ColdMint.scripts.inventory;
///
/// Item manager
/// 物品管理器
///
public static class ItemManager
{
private static Dictionary _dictionary = new Dictionary();
///
/// Add items to Item Manager
/// 在物品管理器内添加物品
///
///
public static void AddItem(IItem item)
{
if (_dictionary.ContainsKey(item.Id))
{
return;
}
_dictionary.Add(item.Id, item);
}
}