23 lines
665 B
C#
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;
|
|
}
|
|
}
|
|
}
|