Files
MedievalShopkeeper/Assets/Scripts/PlaceableData.cs
2026-09-03 16:35:05 +01:00

29 lines
781 B
C#

using UnityEngine;
namespace MedievalShopkeeper
{
public enum PlacementType
{
Floor,
Wall
}
[CreateAssetMenu(fileName = "NewPlaceable", menuName = "Medieval Shopkeeper/Placeable Furniture")]
public class PlaceableData : ScriptableObject
{
[Header("Basic Info")]
public string objectName;
public int purchaseCost;
[Header("Placement Rules")]
public PlacementType placementType;
[Tooltip("The actual prefab that gets spawned in the world.")]
public GameObject prefab;
[Tooltip("The physical bounds of this object used to check if placement is blocked by other objects.")]
public Vector3 overlapBoxExtents = new Vector3(0.45f, 0.45f, 0.45f);
}
}