Scriptum/Assets/Scripts/REFACTORING/Models/Chest/ChestPrefabAsset.cs
2022-11-28 00:52:47 +01:00

30 lines
753 B
C#

using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
[System.Serializable]
public class ChestPrefabAsset : PrefabAssetModel
{
[SerializeField]
public Chest Chest = null;
//public List<IndexValuePair<int, EquippableItemPrefabAsset>> Content { get; set; }
public ChestPrefabAsset(Chest _chest)
: base(_chest.name, _chest.ChestModel.name, new Vector3(0, 0, 0))
{
Chest = _chest;
}
public ChestPrefabAsset(string _name, string _prefabAssetName, Vector3 _position, Chest _chest = null)
: base(_name, _prefabAssetName, _position)
{
Chest = _chest;
}
public ChestPrefabAssetData MapPrefabAssetModelToData()
{
return new ChestPrefabAssetData(this);
}
}