Skip to content

Runtime API

UIHandLayout

void RebuildList();
void NotifyLayoutChanged(bool instant = false);

UIDragCard

static UIDragCard ActiveDrag { get; }
static bool IsAnyCardDragging { get; }
bool IsDragging { get; }

void MarkDropped();
void CancelDrag();

UIDropHandler

bool CanAccept(GameObject draggedObject);

ModularCardView

void SetCard(CardDefinition definition);
void SetDesign(CardDesignTemplate design);
void Refresh();
void AutoAssignReferences();

CardDeck

IReadOnlyList<CardDefinition> Cards { get; }
int Count { get; }
bool IsFull { get; }

bool TryAddCard(CardDefinition card);
bool RemoveCard(CardDefinition card);
int CountCopies(CardDefinition card);
bool IsValid(out string message);
void Clear();

CardDealerManager

int RemainingCards { get; }

void ResetDeck();
void DrawCard();
void DrawCards(int amount);
bool TryDrawCard(out ModularCardView createdCard);
void ShuffleDrawPile();

All runtime types are in the CardFanUI namespace.