diff options
| author | Shauren <shauren.trinity@gmail.com> | 2022-02-12 21:36:46 +0100 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2022-02-12 21:36:46 +0100 |
| commit | f8ad7017dd69e3853ed5912ac6151bc56b6265a0 (patch) | |
| tree | 13c6568cf2e7b3a7ccb964b12f6686651f0e714d /src/server/game/Phasing | |
| parent | 5b28a5ab14f3ca25f986d547e2d2005be3f047b7 (diff) | |
Core/Misc: Move (or delete) constructors and destructors to .cpp files (avoids compiling them in every file that includes them)
Diffstat (limited to 'src/server/game/Phasing')
| -rw-r--r-- | src/server/game/Phasing/PhaseShift.cpp | 7 | ||||
| -rw-r--r-- | src/server/game/Phasing/PhaseShift.h | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/server/game/Phasing/PhaseShift.cpp b/src/server/game/Phasing/PhaseShift.cpp index f0655bf01fa..0c11581b545 100644 --- a/src/server/game/Phasing/PhaseShift.cpp +++ b/src/server/game/Phasing/PhaseShift.cpp @@ -18,6 +18,13 @@ #include "PhaseShift.h" #include "Containers.h" +PhaseShift::PhaseShift() = default; +PhaseShift::PhaseShift(PhaseShift const& right) = default; +PhaseShift::PhaseShift(PhaseShift&& right) noexcept = default; +PhaseShift& PhaseShift::operator=(PhaseShift const& right) = default; +PhaseShift& PhaseShift::operator=(PhaseShift&& right) noexcept = default; +PhaseShift::~PhaseShift() = default; + bool PhaseShift::AddPhase(uint32 phaseId, PhaseFlags flags, std::vector<Condition*> const* areaConditions, int32 references /*= 1*/) { auto insertResult = Phases.emplace(phaseId, flags, nullptr); diff --git a/src/server/game/Phasing/PhaseShift.h b/src/server/game/Phasing/PhaseShift.h index 32fc4455877..7d483ce12a9 100644 --- a/src/server/game/Phasing/PhaseShift.h +++ b/src/server/game/Phasing/PhaseShift.h @@ -86,6 +86,13 @@ public: using VisibleMapIdContainer = std::map<uint32, VisibleMapIdRef>; using UiMapPhaseIdContainer = std::map<uint32, UiMapPhaseIdRef>; + PhaseShift(); + PhaseShift(PhaseShift const& right); + PhaseShift(PhaseShift&& right) noexcept; + PhaseShift& operator=(PhaseShift const& right); + PhaseShift& operator=(PhaseShift&& right) noexcept; + ~PhaseShift(); + ObjectGuid GetPersonalGuid() const { return PersonalGuid; } bool AddPhase(uint32 phaseId, PhaseFlags flags, std::vector<Condition*> const* areaConditions, int32 references = 1); |
