feat(Core/Object): Add helper to allow removing allowed looters (#16709)

This commit is contained in:
Skjalf
2023-07-08 21:45:06 -03:00
committed by GitHub
parent cb392752ef
commit f5d0246292
2 changed files with 6 additions and 0 deletions

View File

@@ -3167,3 +3167,8 @@ GuidUnorderedSet const& WorldObject::GetAllowedLooters() const
{
return _allowedLooters;
}
void WorldObject::RemoveAllowedLooter(ObjectGuid guid)
{
_allowedLooters.erase(guid);
}

View File

@@ -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;