aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Phasing/PhaseShift.h
diff options
context:
space:
mode:
authorMatan Shukry <matanshukry@gmail.com>2021-12-28 14:24:10 +0200
committerGitHub <noreply@github.com>2021-12-28 13:24:10 +0100
commit8fabe5a3aacf7797f03d074ab8434f445be64955 (patch)
treedd3c977290be47d5a708947893c3544678045194 /src/server/game/Phasing/PhaseShift.h
parent1aad7f8ddd486e60f76730d3baa36ec63711c7e8 (diff)
Core/Phasing: Implemented db spawns in personal phases (#26345)
Co-authored-by: Shauren <shauren.trinity@gmail.com>
Diffstat (limited to 'src/server/game/Phasing/PhaseShift.h')
-rw-r--r--src/server/game/Phasing/PhaseShift.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/server/game/Phasing/PhaseShift.h b/src/server/game/Phasing/PhaseShift.h
index 133f58056a2..32fc4455877 100644
--- a/src/server/game/Phasing/PhaseShift.h
+++ b/src/server/game/Phasing/PhaseShift.h
@@ -65,6 +65,7 @@ public:
std::vector<Condition*> const* AreaConditions;
bool operator<(PhaseRef const& right) const { return Id < right.Id; }
bool operator==(PhaseRef const& right) const { return Id == right.Id; }
+ bool IsPersonal() const { return Flags.HasFlag(PhaseFlags::Personal); }
};
struct VisibleMapIdRef
{
@@ -85,6 +86,8 @@ public:
using VisibleMapIdContainer = std::map<uint32, VisibleMapIdRef>;
using UiMapPhaseIdContainer = std::map<uint32, UiMapPhaseIdRef>;
+ ObjectGuid GetPersonalGuid() const { return PersonalGuid; }
+
bool AddPhase(uint32 phaseId, PhaseFlags flags, std::vector<Condition*> const* areaConditions, int32 references = 1);
EraseResult<PhaseContainer> RemovePhase(uint32 phaseId);
bool HasPhase(uint32 phaseId) const { return Phases.find(PhaseRef(phaseId, PhaseFlags::None, nullptr)) != Phases.end(); }
@@ -105,6 +108,8 @@ public:
bool CanSee(PhaseShift const& other) const;
+ bool HasPersonalPhase() const;
+
protected:
friend class PhasingHandler;