Commit b02c18a8 authored by Chen Bill's avatar Chen Bill

update struct CardDataC

parent 2961cbb1
...@@ -20,8 +20,8 @@ constexpr unsigned int MIN_CARD_ID = (unsigned int)(MAX_STRING_ID + 1) >> 4; ...@@ -20,8 +20,8 @@ constexpr unsigned int MIN_CARD_ID = (unsigned int)(MAX_STRING_ID + 1) >> 4;
using CardData = card_data; using CardData = card_data;
struct CardDataC : card_data { struct CardDataC : card_data {
unsigned int ot{}; uint32_t ot{};
unsigned int category{}; uint32_t category{};
bool is_setcodes(std::vector <uint32_t> values) const { bool is_setcodes(std::vector <uint32_t> values) const {
for (auto& value : values) { for (auto& value : values) {
...@@ -36,8 +36,8 @@ struct CardString { ...@@ -36,8 +36,8 @@ struct CardString {
std::wstring text; std::wstring text;
std::wstring desc[16]; std::wstring desc[16];
}; };
typedef std::unordered_map<unsigned int, CardDataC>::const_iterator code_pointer; using code_pointer = std::unordered_map<unsigned int, CardDataC>::const_iterator;
typedef std::unordered_map<unsigned int, CardString>::const_iterator string_pointer; using string_pointer = std::unordered_map<unsigned int, CardString>::const_iterator;
class DataManager { class DataManager {
public: public:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment