mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-07 04:47:45 +00:00
converted all tabs to 4 spaces
This commit is contained in:
@@ -10,14 +10,14 @@ Xinef
|
||||
|
||||
struct StoredLootItem
|
||||
{
|
||||
StoredLootItem(uint32 i, uint32 c, int32 ri, uint32 rs) :
|
||||
itemid(i), count(c), randomPropertyId(ri), randomSuffix(rs) { }
|
||||
StoredLootItem(uint32 i, uint32 c, int32 ri, uint32 rs) :
|
||||
itemid(i), count(c), randomPropertyId(ri), randomSuffix(rs) { }
|
||||
|
||||
// If itemid == 0 - money amount is stored in count value
|
||||
uint32 itemid;
|
||||
uint32 count;
|
||||
int32 randomPropertyId;
|
||||
uint32 randomSuffix;
|
||||
// If itemid == 0 - money amount is stored in count value
|
||||
uint32 itemid;
|
||||
uint32 count;
|
||||
int32 randomPropertyId;
|
||||
uint32 randomSuffix;
|
||||
};
|
||||
|
||||
typedef std::list<StoredLootItem> StoredLootItemList;
|
||||
@@ -27,23 +27,23 @@ class LootItemStorage
|
||||
{
|
||||
friend class ACE_Singleton<LootItemStorage, ACE_Thread_Mutex>;
|
||||
|
||||
private:
|
||||
LootItemStorage();
|
||||
~LootItemStorage();
|
||||
private:
|
||||
LootItemStorage();
|
||||
~LootItemStorage();
|
||||
|
||||
public:
|
||||
void LoadStorageFromDB();
|
||||
void RemoveEntryFromDB(uint32 containerId, uint32 itemid, uint32 count);
|
||||
public:
|
||||
void LoadStorageFromDB();
|
||||
void RemoveEntryFromDB(uint32 containerId, uint32 itemid, uint32 count);
|
||||
|
||||
void AddNewStoredLoot(Loot* loot, Player* player);
|
||||
bool LoadStoredLoot(Item* item);
|
||||
void AddNewStoredLoot(Loot* loot, Player* player);
|
||||
bool LoadStoredLoot(Item* item);
|
||||
|
||||
void RemoveStoredLootItem(uint32 containerId, uint32 itemid, uint32 count);
|
||||
void RemoveStoredLootMoney(uint32 containerId);
|
||||
void RemoveStoredLoot(uint32 containerId);
|
||||
void RemoveStoredLootItem(uint32 containerId, uint32 itemid, uint32 count);
|
||||
void RemoveStoredLootMoney(uint32 containerId);
|
||||
void RemoveStoredLoot(uint32 containerId);
|
||||
|
||||
private:
|
||||
LootItemContainer lootItemStore;
|
||||
private:
|
||||
LootItemContainer lootItemStore;
|
||||
};
|
||||
|
||||
#define sLootItemStorage ACE_Singleton<LootItemStorage, ACE_Thread_Mutex>::instance()
|
||||
|
||||
Reference in New Issue
Block a user