Scriptum/Assets/Scripts/REFACTORING/Models/Chest/ChestPrefabAsset.cs

30 lines
749 B
C#
Raw Normal View History

using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
[System.Serializable]
public class ChestPrefabAsset : PrefabAssetModel
{
[SerializeField]
public Chest Chest = null;
//public List<KeyValuePair<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);
}
}