TrinityCore
Loading...
Searching...
No Matches
LootStoreItem Struct Reference

#include <LootMgr.h>

Public Types

enum class  Type : int8 { Item = 0 , Reference = 1 , Currency = 2 , TrackingQuest = 3 }
 

Public Member Functions

 LootStoreItem (uint32 _itemid, Type _type, float _chance, bool _needs_quest, uint16 _lootmode, uint8 _groupid, uint8 _mincount, uint8 _maxcount)
 
bool Roll (bool rate) const
 
bool IsValid (LootStore const &store, uint32 entry) const
 

Public Attributes

uint32 itemid
 
Type type
 
float chance
 
uint16 lootmode
 
bool needs_quest
 
uint8 groupid
 
uint8 mincount
 
uint8 maxcount
 
ConditionsReference conditions
 

Detailed Description

Definition at line 38 of file LootMgr.h.

Member Enumeration Documentation

◆ Type

enum class LootStoreItem::Type : int8
strong
Enumerator
Item 
Reference 
Currency 
TrackingQuest 

Definition at line 40 of file LootMgr.h.

Constructor & Destructor Documentation

◆ LootStoreItem()

LootStoreItem::LootStoreItem ( uint32  _itemid,
Type  _type,
float  _chance,
bool  _needs_quest,
uint16  _lootmode,
uint8  _groupid,
uint8  _mincount,
uint8  _maxcount 
)
inline

Definition at line 59 of file LootMgr.h.

Member Function Documentation

◆ IsValid()

bool LootStoreItem::IsValid ( LootStore const &  store,
uint32  entry 
) const

Definition at line 285 of file LootMgr.cpp.

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

◆ Roll()

bool LootStoreItem::Roll ( bool  rate) const

Definition at line 250 of file LootMgr.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ chance

float LootStoreItem::chance

Definition at line 50 of file LootMgr.h.

◆ conditions

ConditionsReference LootStoreItem::conditions

Definition at line 56 of file LootMgr.h.

◆ groupid

uint8 LootStoreItem::groupid

Definition at line 53 of file LootMgr.h.

◆ itemid

uint32 LootStoreItem::itemid

Definition at line 48 of file LootMgr.h.

◆ lootmode

uint16 LootStoreItem::lootmode

Definition at line 51 of file LootMgr.h.

◆ maxcount

uint8 LootStoreItem::maxcount

Definition at line 55 of file LootMgr.h.

◆ mincount

uint8 LootStoreItem::mincount

Definition at line 54 of file LootMgr.h.

◆ needs_quest

bool LootStoreItem::needs_quest

Definition at line 52 of file LootMgr.h.

◆ type

Type LootStoreItem::type

Definition at line 49 of file LootMgr.h.


The documentation for this struct was generated from the following files: