coding question
Posted: Sun Mar 17, 2019 12:11 pm
i want to create a vector of items i am using the very common one
what i do not know is how to add a single item to the list (because i want to use the same loot code and it uses a vector)
when i know what the item is and it is here as master_item
and it will be used here
Code: Select all
vector<Item*>* itemswhen i know what the item is and it is here as master_item
Code: Select all
master_item = master_item_list.GetItem(item_harvested);Code: Select all
void Client::Loot(int32 total_coins, vector<Item*>* items, Entity* entity, bool collection){
if(!entity && !collection){
CloseLoot();
return;
}