30 lines
923 B
C#
30 lines
923 B
C#
using System.Collections.Generic;
|
|
|
|
public class InventoryDataListManager : DataListManager<KeyValuePair<int, Item>> // or maybe EquippableItem - but its get conflicts...
|
|
{
|
|
public DataListManager<KeyValuePair<int, Item>> SetUiManager(ref UIWarehouseManager _uiManager)
|
|
{
|
|
uiManager = _uiManager;
|
|
|
|
return this;
|
|
}
|
|
|
|
public override void AddElementToList(KeyValuePair<int, Item> newElement)
|
|
{
|
|
Elements.Add(newElement);
|
|
}
|
|
|
|
public override void RemoveElementFromList(KeyValuePair<int, Item> element)
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
// public override void Build()
|
|
// {
|
|
// // pass to InventoryManager singleton
|
|
// foreach(KeyValuePair<int, EquippableItemPrefabAsset> itemEntry in Elements)
|
|
// InventoryManager.Instance.SetupItemInInventory(itemEntry.Key, itemEntry.Value.equippableItem);
|
|
//
|
|
// }
|
|
}
|