Dynamic ID enumerator
Here's what I currently made. Obviosuly, actual values are just for show.
Is this correct, Snacko ?
If yes, Mok please arrange csv2dat to produce a file like this, it's named "card_id.h".
Also, the automatic parse must ignore all entries named "Empty" or "None".
I'm not sure about entries that start with "*" : we put that there so they would be the first displayed on the Deck Builder, but for IDs probably it's better to just ignore that special character.
As for special accented characters and like, probably the best thing to do is just annihilate them and replace with the normal characters ( CARD_ID_FROZEN_AETHER ).
Is this correct, Snacko ?
If yes, Mok please arrange csv2dat to produce a file like this, it's named "card_id.h".
- Code: Select all
#ifndef CARD_ID_H
#define CARD_ID_H
typedef enum
{
CARD_ID_RULES_ENGINE = 1,
CARD_ID_DEADBOX = 2,
} card_id_t;
#endif
Also, the automatic parse must ignore all entries named "Empty" or "None".
I'm not sure about entries that start with "*" : we put that there so they would be the first displayed on the Deck Builder, but for IDs probably it's better to just ignore that special character.
As for special accented characters and like, probably the best thing to do is just annihilate them and replace with the normal characters ( CARD_ID_FROZEN_AETHER ).