TrinityCore
ItemBonusMgr Namespace Reference

Classes

struct  ItemBonusGenerationParams
 

Functions

void Load ()
 
ItemContext GetContextForPlayer (MapDifficultyEntry const *mapDifficulty, Player const *player)
 
std::span< ItemBonusEntry const * > GetItemBonuses (uint32 bonusListId)
 
uint32 GetItemBonusListForItemLevelDelta (int16 delta)
 
bool CanApplyBonusTreeToItem (ItemTemplate const *itemTemplate, uint32 itemBonusTreeId, ItemBonusGenerationParams const &params)
 
uint32 GetBonusTreeIdOverride (uint32 itemBonusTreeId, ItemBonusGenerationParams const &params)
 
void ApplyBonusTreeHelper (ItemTemplate const *itemTemplate, uint32 itemBonusTreeId, ItemBonusGenerationParams const &params, int32 sequenceLevel, uint32 *itemLevelSelectorId, std::vector< int32 > *bonusListIDs)
 
int32 GetAzeriteUnlockBonusList (uint16 azeriteUnlockMappingSetId, uint16 minItemLevel, InventoryType inventoryType)
 
std::vector< int32GetBonusListsForItem (uint32 itemId, ItemBonusGenerationParams const &params)
 
template<typename Visitor >
void VisitItemBonusTree (uint32 itemBonusTreeId, Visitor visitor)
 
std::vector< int32GetAllBonusListsForTree (uint32 itemBonusTreeId)
 

Function Documentation

◆ ApplyBonusTreeHelper()

void ItemBonusMgr::ApplyBonusTreeHelper ( ItemTemplate const *  itemTemplate,
uint32  itemBonusTreeId,
ItemBonusGenerationParams const &  params,
int32  sequenceLevel,
uint32 itemLevelSelectorId,
std::vector< int32 > *  bonusListIDs 
)

Definition at line 279 of file ItemBonusMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CanApplyBonusTreeToItem()

bool ItemBonusMgr::CanApplyBonusTreeToItem ( ItemTemplate const *  itemTemplate,
uint32  itemBonusTreeId,
ItemBonusGenerationParams const &  params 
)

Definition at line 145 of file ItemBonusMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetAllBonusListsForTree()

TC_GAME_API std::vector< int32 > ItemBonusMgr::GetAllBonusListsForTree ( uint32  itemBonusTreeId)

Definition at line 499 of file ItemBonusMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetAzeriteUnlockBonusList()

int32 ItemBonusMgr::GetAzeriteUnlockBonusList ( uint16  azeriteUnlockMappingSetId,
uint16  minItemLevel,
InventoryType  inventoryType 
)

Definition at line 405 of file ItemBonusMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetBonusListsForItem()

TC_GAME_API std::vector< int32 > ItemBonusMgr::GetBonusListsForItem ( uint32  itemId,
ItemBonusGenerationParams const &  params 
)

Definition at line 438 of file ItemBonusMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetBonusTreeIdOverride()

uint32 ItemBonusMgr::GetBonusTreeIdOverride ( uint32  itemBonusTreeId,
ItemBonusGenerationParams const &  params 
)

Definition at line 188 of file ItemBonusMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetContextForPlayer()

TC_GAME_API ItemContext ItemBonusMgr::GetContextForPlayer ( MapDifficultyEntry const *  mapDifficulty,
Player const *  player 
)

Definition at line 74 of file ItemBonusMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetItemBonuses()

TC_GAME_API std::span< ItemBonusEntry const * > ItemBonusMgr::GetItemBonuses ( uint32  bonusListId)

Definition at line 129 of file ItemBonusMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetItemBonusListForItemLevelDelta()

TC_GAME_API uint32 ItemBonusMgr::GetItemBonusListForItemLevelDelta ( int16  delta)

Definition at line 137 of file ItemBonusMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Load()

TC_GAME_API void ItemBonusMgr::Load ( )

Definition at line 47 of file ItemBonusMgr.cpp.

+ Here is the caller graph for this function:

◆ VisitItemBonusTree()

template<typename Visitor >
void ItemBonusMgr::VisitItemBonusTree ( uint32  itemBonusTreeId,
Visitor  visitor 
)

Definition at line 485 of file ItemBonusMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: