feat(Core/Object): Add helper to allow removing allowed looters (#16709)
This commit is contained in:
parent
cb392752ef
commit
f5d0246292
2 changed files with 6 additions and 0 deletions
|
|
@ -3167,3 +3167,8 @@ GuidUnorderedSet const& WorldObject::GetAllowedLooters() const
|
|||
{
|
||||
return _allowedLooters;
|
||||
}
|
||||
|
||||
void WorldObject::RemoveAllowedLooter(ObjectGuid guid)
|
||||
{
|
||||
_allowedLooters.erase(guid);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -614,6 +614,7 @@ public:
|
|||
void SetAllowedLooters(GuidUnorderedSet const looters);
|
||||
[[nodiscard]] bool HasAllowedLooter(ObjectGuid guid) const;
|
||||
[[nodiscard]] GuidUnorderedSet const& GetAllowedLooters() const;
|
||||
void RemoveAllowedLooter(ObjectGuid guid);
|
||||
|
||||
std::string GetDebugInfo() const override;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue