AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
ItemRecovery.h File Reference
#include "DatabaseEnvFwd.h"
#include "ObjectGuid.h"
#include <optional>
#include <string>
#include <utility>
#include <vector>

Go to the source code of this file.

Classes

struct  RecoveryItem
 

Namespaces

namespace  ItemRecovery
 

Typedefs

using RecoveryItemLoot = std::vector< std::pair< uint32, uint32 > >
 

Enumerations

enum  RecoveryItemSource : uint8 {
  RECOVERY_ITEM_SOURCE_DESTROYED = 0 ,
  RECOVERY_ITEM_SOURCE_VENDORED = 1 ,
  RECOVERY_ITEM_SOURCE_DISENCHANTED = 2
}
 

Functions

bool ItemRecovery::Save (Item const *item, uint32 count, RecoveryItemSource source, uint32 money=0, RecoveryItemLoot const &loot={ })
 
std::optional< RecoveryItem > ItemRecovery::Load (uint32 recoveryId)
 
bool ItemRecovery::Restore (RecoveryItem const &recovery, Player *owner)
 
void ItemRecovery::DeleteFromDB (CharacterDatabaseTransaction trans, uint32 recoveryId)
 
bool ItemRecovery::IsInBuyback (Player *player, RecoveryItem const &recovery)
 

Typedef Documentation

◆ RecoveryItemLoot

using RecoveryItemLoot = std::vector<std::pair<uint32 , uint32 > >

Enumeration Type Documentation

◆ RecoveryItemSource

Enumerator
RECOVERY_ITEM_SOURCE_DESTROYED 
RECOVERY_ITEM_SOURCE_VENDORED 
RECOVERY_ITEM_SOURCE_DISENCHANTED 
32{
36};
@ RECOVERY_ITEM_SOURCE_DISENCHANTED
Definition ItemRecovery.h:35
@ RECOVERY_ITEM_SOURCE_DESTROYED
Definition ItemRecovery.h:33
@ RECOVERY_ITEM_SOURCE_VENDORED
Definition ItemRecovery.h:34