aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Globals/ObjectMgr.cpp
diff options
context:
space:
mode:
authorxinef1 <w.szyszko2@gmail.com>2017-02-05 23:14:19 +0100
committerShauren <shauren.trinity@gmail.com>2017-02-05 23:14:19 +0100
commit59ce3d6c9bd82d55cbfa505bb945b71cab21a12f (patch)
tree11e0f0f2ae3f3baffff0586f785ebbc7b7efd8aa /src/server/game/Globals/ObjectMgr.cpp
parent3c605ba614c45c4b8f99c12fb49f342c068054a5 (diff)
Core/Misc: Moved CharacterInfo out of world to separate class
Closes #19030
Diffstat (limited to 'src/server/game/Globals/ObjectMgr.cpp')
-rw-r--r--src/server/game/Globals/ObjectMgr.cpp41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp
index a880b527d17..183634bd68e 100644
--- a/src/server/game/Globals/ObjectMgr.cpp
+++ b/src/server/game/Globals/ObjectMgr.cpp
@@ -2220,47 +2220,6 @@ void ObjectMgr::RemoveGameobjectFromGrid(ObjectGuid::LowType guid, GameObjectDat
}
}
-Player* ObjectMgr::GetPlayerByLowGUID(ObjectGuid::LowType lowguid) const
-{
- ObjectGuid guid(HighGuid::Player, lowguid);
- return ObjectAccessor::FindPlayer(guid);
-}
-
-bool ObjectMgr::GetPlayerNameByGUID(ObjectGuid guid, std::string& name) const
-{
- CharacterInfo const* characterInfo = sWorld->GetCharacterInfo(guid);
- if (!characterInfo)
- return false;
-
- name = characterInfo->Name;
- return true;
-}
-
-uint32 ObjectMgr::GetPlayerTeamByGUID(ObjectGuid guid) const
-{
- CharacterInfo const* characterInfo = sWorld->GetCharacterInfo(guid);
- if (!characterInfo)
- return 0;
-
- return Player::TeamForRace(characterInfo->Race);
-}
-
-uint32 ObjectMgr::GetPlayerAccountIdByGUID(ObjectGuid guid) const
-{
- if (CharacterInfo const* characterInfo = sWorld->GetCharacterInfo(guid))
- return characterInfo->AccountId;
-
- return 0;
-}
-
-uint32 ObjectMgr::GetPlayerAccountIdByPlayerName(std::string const& name) const
-{
- ObjectGuid guid = sWorld->GetCharacterGuidByName(name);
- if (!guid.IsEmpty())
- return GetPlayerAccountIdByGUID(guid);
-
- return 0;
-}
void ObjectMgr::LoadItemLocales()
{