diff options
author | Matan Shukry <matanshukry@gmail.com> | 2021-12-28 14:24:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-28 13:24:10 +0100 |
commit | 8fabe5a3aacf7797f03d074ab8434f445be64955 (patch) | |
tree | dd3c977290be47d5a708947893c3544678045194 /src/server/game/Phasing/PhasingHandler.h | |
parent | 1aad7f8ddd486e60f76730d3baa36ec63711c7e8 (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/PhasingHandler.h')
-rw-r--r-- | src/server/game/Phasing/PhasingHandler.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/server/game/Phasing/PhasingHandler.h b/src/server/game/Phasing/PhasingHandler.h index 73003029cfc..17d40977e56 100644 --- a/src/server/game/Phasing/PhasingHandler.h +++ b/src/server/game/Phasing/PhasingHandler.h @@ -59,6 +59,7 @@ public: static PhaseShift const& GetEmptyPhaseShift(); static void InitDbPhaseShift(PhaseShift& phaseShift, uint8 phaseUseFlags, uint16 phaseId, uint32 phaseGroupId); + static void InitDbPersonalOwnership(PhaseShift& phaseShift, ObjectGuid const& personalGuid); static void InitDbVisibleMapId(PhaseShift& phaseShift, int32 visibleMapId); static bool InDbPhaseShift(WorldObject const* object, uint8 phaseUseFlags, uint16 phaseId, uint32 phaseGroupId); @@ -67,9 +68,11 @@ public: static void SetAlwaysVisible(WorldObject* object, bool apply, bool updateVisibility); static void SetInversed(WorldObject* object, bool apply, bool updateVisibility); - static void PrintToChat(ChatHandler* chat, PhaseShift const& phaseShift); + static void PrintToChat(ChatHandler* chat, WorldObject const* target); static std::string FormatPhases(PhaseShift const& phaseShift); + static bool IsPersonalPhase(uint32 phaseId); + private: static void AddPhase(WorldObject* object, uint32 phaseId, ObjectGuid const& personalGuid, bool updateVisibility); static void AddPhaseGroup(WorldObject* object, uint32 phaseGroupId, ObjectGuid const& personalGuid, bool updateVisibility); |