diff options
Diffstat (limited to 'src/server/game/Loot/Loot.h')
-rw-r--r-- | src/server/game/Loot/Loot.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/server/game/Loot/Loot.h b/src/server/game/Loot/Loot.h index 3af9963aa06..fda1cb0e9c7 100644 --- a/src/server/game/Loot/Loot.h +++ b/src/server/game/Loot/Loot.h @@ -284,6 +284,8 @@ struct TC_GAME_API Loot ObjectGuid const& GetOwnerGUID() const { return _owner; } LootMethod GetLootMethod() const { return _lootMethod; } ObjectGuid const& GetLootMasterGUID() const { return _lootMaster; } + uint32 GetDungeonEncounterId() const { return _dungeonEncounterId; } + void SetDungeonEncounterId(uint32 dungeonEncounterId) { _dungeonEncounterId = dungeonEncounterId; } void clear(); @@ -331,6 +333,7 @@ private: ObjectGuid _lootMaster; GuidUnorderedSet _allowedLooters; bool _wasOpened; // true if at least one player received the loot content + uint32 _dungeonEncounterId; }; class TC_GAME_API AELootResult @@ -341,11 +344,12 @@ public: Item* item; uint8 count; LootType lootType; + uint32 dungeonEncounterId; }; typedef std::vector<ResultValue> OrderedStorage; - void Add(Item* item, uint8 count, LootType lootType); + void Add(Item* item, uint8 count, LootType lootType, uint32 dungeonEncounterId); OrderedStorage::const_iterator begin() const; OrderedStorage::const_iterator end() const; |