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

30 lines
753 B
C#
Raw Permalink Normal View History

using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
[System.Serializable]
public class ChestPrefabAsset : PrefabAssetModel
{
[SerializeField]
public Chest Chest = null;
2022-11-24 03:03:30 +01:00
//public List<IndexValuePair<int, EquippableItemPrefabAsset>> Content { get; set; }
public ChestPrefabAsset(Chest _chest)
2022-11-27 21:28:55 +01:00
: 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);
}
}