/// <summary> /// Get the next card in the card array /// </summary> public static CardDataEntry Succession(this CardDataEntry card) { if (card.IsLast()) { throw new System.ArgumentOutOfRangeException("Reached last card when trying to get the next card!"); } return(CsvDataManager.Instance.cardIndexer.Next(card)); }
public void Dispatch(CardDataEntry cardData) { Debug.Log("Dispatch"); table.StartDispatch(); table.card = new Card(cardData); timer = dispatchDuration; start_flip = false; }
public static bool IsLast(this CardDataEntry card) { return(CsvDataManager.Instance.cardIndexer.IsLast(card)); }
public CardDataEntry Next(CardDataEntry card) { return(array[card.internal_dataEntryIndex + 1]); }
public bool IsLast(CardDataEntry card) { return(card.internal_dataEntryIndex + 1 == array.Length); }
public CardInfo(CardDataEntry cardData) { this.cardData = cardData; }
public Card(CardDataEntry cardData) { m_CardInfo = new CardInfo(cardData); }