Class Naming - bugladen/bga7s5s GitHub Wiki
When implementing a new card, the class name must follow a rigid format.
- The class must begin with an underscore
- The next two characters are the two-digit set number.
- The next three characters are the card number
Examples:
Example | Class name |
---|---|
Card #44 from the Tooth and Claw | _02044 |
Card #129 from the Core Set | _01129 |
Set Numbers
The follow codes will be used as set numbers for the purpose of class names:
Set | Code |
---|---|
Core | 01 |
Tooth and Claw | 02 |
Faith and Fortune | 03 |
Card Numbers
Card numbers are located at the bottom-left of the card. Here is the card number of Makepeace Botwighte:
This tells use that Makepeace is from the Core set, and that he is card #92.
Edge Cases
There will be times when cards will have the same number and be from the same set. A specific example is Appealing to the People where there are two art versions.
In this case we use class names _01159a and _01159b.
Another edge case is Henri Michelet and Jean Urbain, who were somehow given the same card number in the Core Set.
In this case we use class names _01067a and _01067b respectively.
Future edge cases are expected to follow the same pattern.