Setup Items, item categories, and item scripts, and all associated configuration files for them.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user