Core/Object: Localization objects. (#226)

This commit is contained in:
HeartWell
2016-11-05 22:43:11 +03:00
committed by Shin
parent f54f7ce7dc
commit c8cc99be37
6 changed files with 157456 additions and 16 deletions

View File

@@ -1056,6 +1056,12 @@ class ObjectMgr
if (itr == _creatureLocaleStore.end()) return NULL;
return &itr->second;
}
GameObjectLocale const* GetGameObjectLocale(uint32 entry) const
{
GameObjectLocaleContainer::const_iterator itr = _gameObjectLocaleStore.find(entry);
if (itr == _gameObjectLocaleStore.end()) return NULL;
return &itr->second;
}
ItemLocale const* GetItemLocale(uint32 entry) const
{
ItemLocaleContainer::const_iterator itr = _itemLocaleStore.find(entry);