aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Phasing/PhaseShift.h
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2018-09-25 21:08:38 +0200
committerShauren <shauren.trinity@gmail.com>2018-09-26 23:08:22 +0200
commita6fb448b44b5c7e64e6ea960bf951ccf0a8dd0c9 (patch)
treeb0e24d187f2ba39d3258e08410cfb7becc1676e0 /src/server/game/Phasing/PhaseShift.h
parentf46314c8cec6c741273b37f77fef378c619a6263 (diff)
Core/DataStores: Updated hotfix database structure
* Updated handling for removed db2s
Diffstat (limited to 'src/server/game/Phasing/PhaseShift.h')
-rw-r--r--src/server/game/Phasing/PhaseShift.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/server/game/Phasing/PhaseShift.h b/src/server/game/Phasing/PhaseShift.h
index f1929168613..c15bf4100a2 100644
--- a/src/server/game/Phasing/PhaseShift.h
+++ b/src/server/game/Phasing/PhaseShift.h
@@ -68,7 +68,7 @@ public:
int32 References = 0;
TerrainSwapInfo const* VisibleMapInfo = nullptr;
};
- struct UiWorldMapAreaIdSwapRef
+ struct UiMapPhaseIdRef
{
int32 References = 0;
};
@@ -80,7 +80,7 @@ public:
};
typedef boost::container::flat_set<PhaseRef> PhaseContainer;
typedef std::map<uint32, VisibleMapIdRef> VisibleMapIdContainer;
- typedef std::map<uint32, UiWorldMapAreaIdSwapRef> UiWorldMapAreaIdSwapContainer;
+ typedef std::map<uint32, UiMapPhaseIdRef> UiMapPhaseIdContainer;
PhaseShift() : Flags(PhaseShiftFlags::Unphased), NonCosmeticReferences(0), CosmeticReferences(0), DefaultReferences(0), IsDbPhaseShift(false) { }
@@ -94,10 +94,10 @@ public:
bool HasVisibleMapId(uint32 visibleMapId) const { return VisibleMapIds.find(visibleMapId) != VisibleMapIds.end(); }
VisibleMapIdContainer const& GetVisibleMapIds() const { return VisibleMapIds; }
- bool AddUiWorldMapAreaIdSwap(uint32 uiWorldMapAreaId, int32 references = 1);
- EraseResult<UiWorldMapAreaIdSwapContainer> RemoveUiWorldMapAreaIdSwap(uint32 uiWorldMapAreaId);
- bool HasUiWorldMapAreaIdSwap(uint32 uiWorldMapAreaId) const { return UiWorldMapAreaIdSwaps.find(uiWorldMapAreaId) != UiWorldMapAreaIdSwaps.end(); }
- UiWorldMapAreaIdSwapContainer const& GetUiWorldMapAreaIdSwaps() const { return UiWorldMapAreaIdSwaps; }
+ bool AddUiMapPhaseId(uint32 uiMapPhaseId, int32 references = 1);
+ EraseResult<UiMapPhaseIdContainer> RemoveUiMapPhaseId(uint32 uiMapPhaseId);
+ bool HasUiMapPhaseId(uint32 uiMapPhaseId) const { return UiMapPhaseIds.find(uiMapPhaseId) != UiMapPhaseIds.end(); }
+ UiMapPhaseIdContainer const& GetUiWorldMapAreaIdSwaps() const { return UiMapPhaseIds; }
void Clear();
void ClearPhases();
@@ -111,7 +111,7 @@ protected:
ObjectGuid PersonalGuid;
PhaseContainer Phases;
VisibleMapIdContainer VisibleMapIds;
- UiWorldMapAreaIdSwapContainer UiWorldMapAreaIdSwaps;
+ UiMapPhaseIdContainer UiMapPhaseIds;
void ModifyPhasesReferences(PhaseContainer::iterator itr, int32 references);
void UpdateUnphasedFlag();