diff options
Diffstat (limited to 'src/server/game/Globals/ObjectMgr.cpp')
-rw-r--r-- | src/server/game/Globals/ObjectMgr.cpp | 41 |
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() { |