Implement redeem codes

This commit is contained in:
Kamil
2020-12-17 01:03:38 +01:00
committed by Gent S
parent a74c9be2ff
commit 34dbb59fb1
4 changed files with 53 additions and 0 deletions

View File

@@ -34,6 +34,7 @@ namespace ItemManager {
// pair <Itemset, Rarity> -> vector of pointers (map iterators) to records in ItemData (it looks a lot scarier than it is)
extern std::map<std::pair<int32_t, int32_t>,
std::vector<std::map<std::pair<int32_t, int32_t>, Item>::iterator>> CrateItems;
extern std::map<std::string, std::pair<int32_t, int32_t>> CodeItems; // code -> <id, type>
void init();