AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
EnchantDuration Struct Reference

#include "Player.h"

Public Member Functions

 EnchantDuration ()=default
 
 EnchantDuration (Item *_item, EnchantmentSlot _slot, uint32 _leftduration)
 

Public Attributes

Itemitem {nullptr}
 
EnchantmentSlot slot {MAX_ENCHANTMENT_SLOT}
 
uint32 leftduration {0}
 

Detailed Description

Constructor & Destructor Documentation

◆ EnchantDuration() [1/2]

EnchantDuration::EnchantDuration ( )
default

◆ EnchantDuration() [2/2]

EnchantDuration::EnchantDuration ( Item _item,
EnchantmentSlot  _slot,
uint32  _leftduration 
)
inline
444 : item(_item), slot(_slot),
445 leftduration(_leftduration) { ASSERT(item); };
#define ASSERT
Definition: Errors.h:68
EnchantmentSlot slot
Definition: Player.h:448
uint32 leftduration
Definition: Player.h:449
Item * item
Definition: Player.h:447

References ASSERT, and item.

Member Data Documentation

◆ item

Item* EnchantDuration::item {nullptr}

Referenced by EnchantDuration().

◆ leftduration

uint32 EnchantDuration::leftduration {0}

◆ slot

EnchantmentSlot EnchantDuration::slot {MAX_ENCHANTMENT_SLOT}