Setup Items, item categories, and item scripts, and all associated configuration files for them.

This commit is contained in:
2023-10-06 17:19:02 -05:00
parent c1d64e7bd1
commit 877c44c372
27 changed files with 280 additions and 4 deletions
+38
View File
@@ -0,0 +1,38 @@
#pragma once
#include "Item.h"
#include "safemap.h"
#include "DEFINES.h"
#include "Crawler.h"
INCLUDE_game
INCLUDE_DATA
safemap<std::string,ItemInfo>ITEM_DATA;
typedef std::string IT;
void ItemInfo::InitializeItems(){
for(auto&key:DATA["ItemDatabase"].GetKeys()){
std::cout<<key.first<<std::endl;
}
ITEM_DATA.SetInitialized();
}
void Inventory::AddItem(IT it,int amt){
}
void Inventory::GetItemCount(IT it){
}
void Inventory::UseItem(IT it,int amt)
{
}
void Inventory::RemoveItem(IT it,int amt)
{
}