Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
LootItem Struct Reference

#include <LootMgr.h>

Public Member Functions

void AddAllowedLooter (Player const *player)
bool AllowedForPlayer (Player const *player) const
const AllowedLooterSetGetAllowedLooters () const
 LootItem ()
 LootItem (LootStoreItem const &li)
void WriteBasicDataPart (LootSlotType slotType, uint8 slot, ByteBuffer *buff)
void WriteBitDataPart (PermissionTypes permission, LootSlotType hasSlotType, ByteBuffer *buff)

Public Attributes

AllowedLooterSet allowedGUIDs
bool canSave
ConditionList conditions
uint8 count: 8
bool follow_loot_rules: 1
bool freeforall: 1
bool is_blocked: 1
bool is_counted: 1
bool is_looted: 1
bool is_underthreshold: 1
uint32 itemid
bool needs_quest: 1
int32 randomPropertyId
uint32 randomSuffix

Detailed Description

Definition at line 118 of file LootMgr.h.

Constructor & Destructor Documentation

◆ LootItem() [1/2]

◆ LootItem() [2/2]

LootItem::LootItem ( )
inline

Definition at line 140 of file LootMgr.h.

References canSave.

Member Function Documentation

◆ AddAllowedLooter()

void LootItem::AddAllowedLooter ( Player const * player)

Definition at line 380 of file LootMgr.cpp.

References allowedGUIDs, and Object::GetGUIDLow().

Referenced by Loot::FillNonQuestNonFFAConditionalLoot().

◆ AllowedForPlayer()

◆ GetAllowedLooters()

const AllowedLooterSet & LootItem::GetAllowedLooters ( ) const
inline

◆ WriteBasicDataPart()

void LootItem::WriteBasicDataPart ( LootSlotType slotType,
uint8 slot,
ByteBuffer * buff )

Definition at line 849 of file LootMgr.cpp.

References count, itemid, randomPropertyId, randomSuffix, and sObjectMgr.

Referenced by LootView::WriteData().

◆ WriteBitDataPart()

void LootItem::WriteBitDataPart ( PermissionTypes permission,
LootSlotType hasSlotType,
ByteBuffer * buff )

Definition at line 839 of file LootMgr.cpp.

References ByteBuffer::WriteBit(), and ByteBuffer::WriteBits().

Referenced by LootView::WriteData().

Member Data Documentation

◆ allowedGUIDs

AllowedLooterSet LootItem::allowedGUIDs

◆ canSave

bool LootItem::canSave

Definition at line 133 of file LootMgr.h.

Referenced by Item::ItemContainerLoadLootFromDB(), LootItem(), and LootItem().

◆ conditions

◆ count

◆ follow_loot_rules

◆ freeforall

◆ is_blocked

◆ is_counted

bool LootItem::is_counted

◆ is_looted

◆ is_underthreshold

bool LootItem::is_underthreshold

Definition at line 129 of file LootMgr.h.

Referenced by Item::ItemContainerLoadLootFromDB(), and LootItem().

◆ itemid

◆ needs_quest

bool LootItem::needs_quest

Definition at line 131 of file LootMgr.h.

Referenced by AllowedForPlayer(), Item::ItemContainerLoadLootFromDB(), and LootItem().

◆ randomPropertyId

◆ randomSuffix

uint32 LootItem::randomSuffix

Definition at line 121 of file LootMgr.h.

Referenced by Item::ItemContainerLoadLootFromDB(), LootItem(), and WriteBasicDataPart().


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