#include <ItemPackets.h>
void WorldPackets::Item::ItemInstance::Initialize |
( |
::Item const * |
item | ) |
|
250 ItemID = item->GetEntry();
254 if (!bonusListIds.empty())
257 ItemBonus->BonusListIDs.insert(
ItemBonus->BonusListIDs.end(), bonusListIds.begin(), bonusListIds.end());
265 for (
size_t i = 0; mask != 0; mask >>= 1, ++i)
Optional< CompactArray< int32 > > Modifications
Definition: ItemPackets.h:50
Definition: UpdateFields.h:57
ItemModifier
Definition: Item.h:222
uint32 RandomPropertiesSeed
Definition: ItemPackets.h:47
uint32 RandomPropertiesID
Definition: ItemPackets.h:48
Optional< ItemBonusInstanceData > ItemBonus
Definition: ItemPackets.h:49
Definition: UpdateFields.h:64
uint32_t uint32
Definition: Define.h:150
uint32 ItemID
Definition: ItemPackets.h:46
Definition: UpdateFields.h:56
void WorldPackets::Item::ItemInstance::Initialize |
( |
::LootItem const & |
lootItem | ) |
|
- Todo:
no Modifications
276 if (!lootItem.BonusListIDs.empty())
279 ItemBonus->BonusListIDs = lootItem.BonusListIDs;
uint32 RandomPropertiesSeed
Definition: ItemPackets.h:47
uint32 RandomPropertiesID
Definition: ItemPackets.h:48
Optional< ItemBonusInstanceData > ItemBonus
Definition: ItemPackets.h:49
uint32 ItemID
Definition: ItemPackets.h:46
void WorldPackets::Item::ItemInstance::Initialize |
( |
::VoidStorageItem const * |
voidItem | ) |
|
288 ItemID = voidItem->ItemEntry;
291 if (voidItem->ItemUpgradeId)
297 if (!voidItem->BonusListIDs.empty())
300 ItemBonus->BonusListIDs = voidItem->BonusListIDs;
Optional< CompactArray< int32 > > Modifications
Definition: ItemPackets.h:50
uint32 RandomPropertiesSeed
Definition: ItemPackets.h:47
uint32 RandomPropertiesID
Definition: ItemPackets.h:48
Optional< ItemBonusInstanceData > ItemBonus
Definition: ItemPackets.h:49
uint32 ItemID
Definition: ItemPackets.h:46
53 {
return !(*
this == r); }
309 if (
ItemBonus.is_initialized() != r.ItemBonus.is_initialized() ||
Modifications.is_initialized() != r.Modifications.is_initialized())
Optional< CompactArray< int32 > > Modifications
Definition: ItemPackets.h:50
uint32 RandomPropertiesSeed
Definition: ItemPackets.h:47
uint32 RandomPropertiesID
Definition: ItemPackets.h:48
Optional< ItemBonusInstanceData > ItemBonus
Definition: ItemPackets.h:49
uint32 ItemID
Definition: ItemPackets.h:46
uint32 WorldPackets::Item::ItemInstance::ItemID = 0 |
uint32 WorldPackets::Item::ItemInstance::RandomPropertiesID = 0 |
uint32 WorldPackets::Item::ItemInstance::RandomPropertiesSeed = 0 |
The documentation for this struct was generated from the following files: