This commit is contained in:
cthangover committed 2026-09-10 10:58:00 +03:00
commit 27f38c6c1f
50 files changed
+3403

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
using Godot;
namespace Cthangover.CardBattle
{
/// <summary>
/// Common interface for all card UI nodes in the card battle system.
/// Exposes the <c>Frame</c> and <c>Image</c> <see cref="TextureRect"/> controls so that
/// <see cref="CardController"/> can perform hit-testing during drag-and-drop targeting
/// without knowing the concrete card type (<see cref="CharacterCardNode"/> or <see cref="ActionCardNode"/>).
/// </summary>
public interface ICard
{
/// <summary>
/// The frame <see cref="TextureRect"/> used for hit-testing whether a pointer is over this card.
/// </summary>
TextureRect Frame { get; }
/// <summary>
/// The portrait/image <see cref="TextureRect"/> of the card, used for dissolve shader effects on death.
/// </summary>
TextureRect Image { get; }
}
}