diff options
author | Shauren <shauren.trinity@gmail.com> | 2021-01-24 21:40:02 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-10-04 00:19:38 +0200 |
commit | 5a516fb6549e460e68b45005a17ec1b6217fefa5 (patch) | |
tree | ba79668b9b4716eedb7627bb86e7d48642e3a567 /src/server/game/Loot/Loot.h | |
parent | 46e0056196dd6e56077aeeb67d41ec520046a79e (diff) |
Core/Loot: Send DungeonEncounter id in SMSG_ITEM_PUSH_RESULT
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; |