mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
LFGMgr.cpp and LFGMgr.h added to Three
LFGMgr.cpp and LFGMgr.h added to Three. This is part of the current build error fixes,
This commit is contained in:
parent
165cfba9c4
commit
8ef55a922f
10 changed files with 3053 additions and 49 deletions
|
|
@ -708,6 +708,28 @@ class ObjectMgr
|
|||
return NULL;
|
||||
}
|
||||
|
||||
DungeonFinderRequirements const* GetDungeonFinderRequirements(uint32 mapId, uint32 difficulty) const
|
||||
{
|
||||
DungeonFinderRequirementsMap::const_iterator itr = mDungeonFinderRequirementsMap.find(MAKE_PAIR32(mapId, difficulty));
|
||||
if (itr != mDungeonFinderRequirementsMap.end())
|
||||
return &itr->second;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
DungeonFinderRewards const* GetDungeonFinderRewards(uint32 level) const
|
||||
{
|
||||
DungeonFinderRewardsMap::const_iterator itr = mDungeonFinderRewardsMap.find(level);
|
||||
if (itr != mDungeonFinderRewardsMap.end())
|
||||
{
|
||||
return &itr->second;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
DungeonFinderRequirementsMap const& GetDungeonFinderRequirementsMap() const { return mDungeonFinderRequirementsMap; }
|
||||
DungeonFinderRewardsMap const& GetDungeonFinderRewardsMap() const { return mDungeonFinderRewardsMap; }
|
||||
DungeonFinderItemsMap const& GetDungeonFinderItemsMap() const { return mDungeonFinderItemsMap; }
|
||||
|
||||
// Static wrappers for various accessors
|
||||
static GameObjectInfo const* GetGameObjectInfo(uint32 id); ///< Wrapper for sGOStorage.LookupEntry
|
||||
static Player* GetPlayer(const char* name); ///< Wrapper for ObjectAccessor::FindPlayerByName
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue