diff options
| author | Mistivia <i@mistivia.com> | 2025-01-15 19:12:12 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-01-15 19:12:46 +0800 |
| commit | 4da382953c830a61ae24ccbe95c4241db8788269 (patch) | |
| tree | 31f6d184273274e2660516d1ac1146b5661f20b6 /src/core/card.h | |
restore
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 |
