diff options
Diffstat (limited to 'src/core/card.h')
| -rw-r--r-- | src/core/card.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/core/card.h b/src/core/card.h new file mode 100644 index 0000000..afd8198 --- /dev/null +++ b/src/core/card.h @@ -0,0 +1,27 @@ +#ifndef HIVE_MIND_CORE_CARD_H_ +#define HIVE_MIND_CORE_CARD_H_ + +#include <vector> +#include <map> + +#include "util/common.h" + +constexpr int PACK_NUM = 3; +constexpr int CARD_NUM_PER_PACK = 15; + +struct Card { + std::string name; + std::string text; + std::string zhsname; + std::string zhstext; + std::string image_url; +}; + +using CardPack = std::vector<Arc<Card>>; + +void init_card_db(); +Arc<Card> get_card(std::string name); + +std::vector<Arc<Card>> parse_cardlist(const std::string &s); + +#endif |
