Difference between revisions of "DiskCardGame.CardMetaCategory"
 (created article)  | 
				m (added category)  | 
				||
| Line 36: | Line 36: | ||
      CardMetaCategory.TraderOffer  |       CardMetaCategory.TraderOffer  | ||
  };  |   };  | ||
| + | |||
| + | [Category:Types]  | ||
Revision as of 22:19, 29 January 2022
| Namespace | DiskCardGame | 
|---|---|
| Type | Enum | 
| Inherits | System.Enum | 
| From | Base Game | 
A CardMetaCategory is a type of flag that can be applied to a CardInfo. It usually appears as part of a List<T>, as a list of flags for a card.
All Categories
A list of all meta categories and their uses is as follows:
ChoiceNode
Makes this card a possible choice when a player enters a choice node.
TraderOffer
The Trader will offer this card to the player for the cost of either a Rabbit Pelt or Wolf Pelt.
Part3Random
This card is one of the possible cards the player can get from the Gift Bearer sigil.
Rare
Does two things:
- The Trader will offer this card to the player for the cost of a Golden Pelt.
 - Makes this card a possible choice for boss drops.
 
NOTE: This category will not give a card the appearance of a rare card. To do that, see CardAppearanceBehaviour.Appearance. 
NOTE: If you use this category on a card, consider removing `ChoiceNode` and `TraderOffer` from that card.
GBCPack
Makes this card available in card packs in Act 2.
GBCPlayable
TODO: Add description for this
NUM_CATEGORIES
This is not a category. Rather, the integer associated with this constant refers to the number of categories present in the base game.
Example Usage
A common use case for meta categories is via a list that can then be passed into the API. Here is an example of such a list:
var metadata = new List<CardMetaCategory>() {
    CardMetaCategory.ChoiceNode,
    CardMetaCategory.TraderOffer
};
[Category:Types]