示例#1
0
 /// <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));
 }
示例#2
0
 public void Dispatch(CardDataEntry cardData)
 {
     Debug.Log("Dispatch");
     table.StartDispatch();
     table.card = new Card(cardData);
     timer      = dispatchDuration;
     start_flip = false;
 }
示例#3
0
 public static bool IsLast(this CardDataEntry card)
 {
     return(CsvDataManager.Instance.cardIndexer.IsLast(card));
 }
示例#4
0
 public CardDataEntry Next(CardDataEntry card)
 {
     return(array[card.internal_dataEntryIndex + 1]);
 }
示例#5
0
 public bool IsLast(CardDataEntry card)
 {
     return(card.internal_dataEntryIndex + 1 == array.Length);
 }
示例#6
0
 public CardInfo(CardDataEntry cardData)
 {
     this.cardData = cardData;
 }
示例#7
0
 public Card(CardDataEntry cardData)
 {
     m_CardInfo = new CardInfo(cardData);
 }