AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
Bag.h File Reference
#include "Item.h"
#include "ItemTemplate.h"

Go to the source code of this file.

Classes

class  Bag
 

Macros

#define MAX_BAG_SIZE   36
 

Functions

ItemNewItemOrBag (ItemTemplate const *proto)
 

Macro Definition Documentation

◆ MAX_BAG_SIZE

#define MAX_BAG_SIZE   36

Function Documentation

◆ NewItemOrBag()

Item * NewItemOrBag ( ItemTemplate const *  proto)
inline
68{
69 return (proto->InventoryType == INVTYPE_BAG) ? new Bag : new Item;
70}
@ INVTYPE_BAG
Definition: ItemTemplate.h:274
Definition: Bag.h:28
Definition: Item.h:220

References ItemTemplate::InventoryType, and INVTYPE_BAG.

Referenced by Player::_LoadItem(), Player::_LoadMailedItem(), Item::CreateItem(), AuctionHouseMgr::LoadAuctionItems(), and Guild::BankTab::LoadItemFromDB().