Files
Emberwild/Assets/GAME/Script/Building/BuildCardView.cs
2026-07-07 16:43:51 +02:00

23 lines
665 B
C#

using UnityEngine;
namespace Ashwild.Building
{
/// <summary>
/// The view payload for one construction-menu card: exactly what the card renders (icon +
/// label), nothing more. A manager builds these from the buildable catalog and pushes them
/// into the menu view, so the UI shows cards without ever knowing about BuildableData or
/// where the list comes from.
/// </summary>
public readonly struct BuildCardView
{
public readonly Sprite Icon;
public readonly string Label;
public BuildCardView(Sprite icon, string label)
{
Icon = icon;
Label = label;
}
}
}