23 lines
594 B
C#
23 lines
594 B
C#
using System.Collections.Generic;
|
|
using BlueWater.Interfaces;
|
|
using UnityEngine;
|
|
|
|
namespace BlueWater.Items
|
|
{
|
|
[CreateAssetMenu(fileName = "ItemTable", menuName = "ScriptableObjects/ItemTable")]
|
|
public class ItemDataSo : ScriptableObject, IDataContainer<ItemData>
|
|
{
|
|
[field: SerializeField]
|
|
public List<ItemData> ItemDataList { get; private set; }
|
|
|
|
public List<ItemData> GetData()
|
|
{
|
|
return ItemDataList;
|
|
}
|
|
|
|
public void SetData(List<ItemData> itemDataList)
|
|
{
|
|
ItemDataList = itemDataList;
|
|
}
|
|
}
|
|
} |