aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Globals/ObjectMgr.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/game/Globals/ObjectMgr.h')
-rw-r--r--src/server/game/Globals/ObjectMgr.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/server/game/Globals/ObjectMgr.h b/src/server/game/Globals/ObjectMgr.h
index dc9196dd0df..3960a7b4aed 100644
--- a/src/server/game/Globals/ObjectMgr.h
+++ b/src/server/game/Globals/ObjectMgr.h
@@ -477,7 +477,7 @@ struct TrinityStringLocale
StringVector Content;
};
-typedef std::map<uint64, uint64> LinkedRespawnContainer;
+typedef std::map<ObjectGuid, ObjectGuid> LinkedRespawnContainer;
typedef std::unordered_map<uint32, CreatureData> CreatureDataContainer;
typedef std::unordered_map<uint32, GameObjectData> GameObjectDataContainer;
typedef std::map<TempSummonGroupKey, std::vector<TempSummonData> > TempSummonDataContainer;
@@ -765,7 +765,7 @@ class ObjectMgr
void GetPlayerLevelInfo(uint32 race, uint32 class_, uint8 level, PlayerLevelInfo* info) const;
- uint64 GetPlayerGUIDByName(std::string const& name) const;
+ ObjectGuid GetPlayerGUIDByName(std::string const& name) const;
/**
* Retrieves the player name by guid.
@@ -780,9 +780,9 @@ class ObjectMgr
*
* @return true if player was found, false otherwise
*/
- bool GetPlayerNameByGUID(uint64 guid, std::string& name) const;
- uint32 GetPlayerTeamByGUID(uint64 guid) const;
- uint32 GetPlayerAccountIdByGUID(uint64 guid) const;
+ bool GetPlayerNameByGUID(ObjectGuid guid, std::string& name) const;
+ uint32 GetPlayerTeamByGUID(ObjectGuid guid) const;
+ uint32 GetPlayerAccountIdByGUID(ObjectGuid guid) const;
uint32 GetPlayerAccountIdByPlayerName(std::string const& name) const;
uint32 GetNearestTaxiNode(float x, float y, float z, uint32 mapid, uint32 team);
@@ -1120,10 +1120,10 @@ class ObjectMgr
}
CreatureData& NewOrExistCreatureData(uint32 guid) { return _creatureDataStore[guid]; }
void DeleteCreatureData(uint32 guid);
- uint64 GetLinkedRespawnGuid(uint64 guid) const
+ ObjectGuid GetLinkedRespawnGuid(ObjectGuid guid) const
{
LinkedRespawnContainer::const_iterator itr = _linkedRespawnStore.find(guid);
- if (itr == _linkedRespawnStore.end()) return 0;
+ if (itr == _linkedRespawnStore.end()) return ObjectGuid::Empty;
return itr->second;
}
CreatureLocale const* GetCreatureLocale(uint32 entry) const