public static Card.Type getCardType(Card.SubType type) { switch (type) { case Card.SubType.Work: case Card.SubType.BandTogether: return(Card.Type.Mortal); case Card.SubType.Alter: case Card.SubType.RiseAbove: return(Card.Type.Magic); case Card.SubType.Understand: case Card.SubType.Master: return(Card.Type.Patience); case Card.SubType.Guess: case Card.SubType.Friends: return(Card.Type.Luck); default: Debug.Log("Could not retrieve card type."); return(Card.Type.Mortal); } }
public static List <Card.Variant> getCardVariants(Card.SubType type) { List <Card.Variant> typeList = new List <Card.Variant>(); switch (type) { case Card.SubType.Work: typeList.Add(Card.Variant.Build); typeList.Add(Card.Variant.Delegate); typeList.Add(Card.Variant.Assist); typeList.Add(Card.Variant.Fight); break; case Card.SubType.BandTogether: typeList.Add(Card.Variant.Legion); typeList.Add(Card.Variant.Workforce); typeList.Add(Card.Variant.SearchParty); typeList.Add(Card.Variant.Inclusion); break; case Card.SubType.Alter: typeList.Add(Card.Variant.Reality); typeList.Add(Card.Variant.Time); typeList.Add(Card.Variant.Outcomes); typeList.Add(Card.Variant.Creature); break; case Card.SubType.RiseAbove: typeList.Add(Card.Variant.Sorcery); typeList.Add(Card.Variant.Leader); typeList.Add(Card.Variant.AllKnowing); typeList.Add(Card.Variant.Mystery); break; case Card.SubType.Understand: typeList.Add(Card.Variant.Seek); typeList.Add(Card.Variant.Examine); typeList.Add(Card.Variant.Remember); typeList.Add(Card.Variant.Observe); break; case Card.SubType.Master: typeList.Add(Card.Variant.Weaponry); typeList.Add(Card.Variant.Stealth); typeList.Add(Card.Variant.Words); typeList.Add(Card.Variant.Tricks); break; case Card.SubType.Guess: typeList.Add(Card.Variant.History); typeList.Add(Card.Variant.Rumors); typeList.Add(Card.Variant.Readings); typeList.Add(Card.Variant.Experience); break; case Card.SubType.Friends: typeList.Add(Card.Variant.Canines); typeList.Add(Card.Variant.Vermin); typeList.Add(Card.Variant.Commoners); typeList.Add(Card.Variant.Leaders); break; } if (typeList.Count <= 0) { Debug.Log("Could not retrieve card variants."); } return(typeList); }