|
|
|
@ -1,4 +1,3 @@ |
|
|
|
|
#pragma once |
|
|
|
|
#include "Item.h" |
|
|
|
|
#include "safemap.h" |
|
|
|
|
#include "DEFINES.h" |
|
|
|
@ -26,6 +25,7 @@ void ItemInfo::InitializeItems(){ |
|
|
|
|
for(auto&key:DATA["ItemCategory"].GetKeys()){ |
|
|
|
|
ITEM_CATEGORIES[key.first]; |
|
|
|
|
Inventory::sortedInv[key.first]; |
|
|
|
|
Menu::inventoryListeners[key.first]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
for(auto&key:DATA["ItemDatabase"].GetKeys()){ |
|
|
|
@ -75,6 +75,7 @@ void ItemInfo::InitializeItems(){ |
|
|
|
|
|
|
|
|
|
ITEM_DATA.SetInitialized(); |
|
|
|
|
ITEM_CATEGORIES.SetInitialized(); |
|
|
|
|
Menu::inventoryListeners.SetInitialized(); |
|
|
|
|
|
|
|
|
|
std::cout<<ITEM_DATA.size()<<" items have been loaded."<<std::endl; |
|
|
|
|
std::cout<<ITEM_CATEGORIES.size()<<" item categories have been loaded."<<std::endl; |
|
|
|
|