AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
AuctionHouseScript Class Reference

#include "AuctionHouseScript.h"

Inheritance diagram for AuctionHouseScript:
ScriptObject

Public Member Functions

virtual void OnAuctionAdd (AuctionHouseObject *, AuctionEntry *)
 
virtual void OnAuctionRemove (AuctionHouseObject *, AuctionEntry *)
 
virtual void OnAuctionSuccessful (AuctionHouseObject *, AuctionEntry *)
 
virtual void OnAuctionExpire (AuctionHouseObject *, AuctionEntry *)
 
virtual void OnBeforeAuctionHouseMgrSendAuctionWonMail (AuctionHouseMgr *, AuctionEntry *, Player *, uint32 &, bool &, bool &, bool &)
 
virtual void OnBeforeAuctionHouseMgrSendAuctionSalePendingMail (AuctionHouseMgr *, AuctionEntry *, Player *, uint32 &, bool &)
 
virtual void OnBeforeAuctionHouseMgrSendAuctionSuccessfulMail (AuctionHouseMgr *, AuctionEntry *, Player *, uint32 &, uint32 &, bool &, bool &, bool &)
 
virtual void OnBeforeAuctionHouseMgrSendAuctionExpiredMail (AuctionHouseMgr *, AuctionEntry *, Player *, uint32 &, bool &, bool &)
 
virtual void OnBeforeAuctionHouseMgrSendAuctionOutbiddedMail (AuctionHouseMgr *, AuctionEntry *, Player *, uint32 &, Player *, uint32 &, bool &, bool &)
 
virtual void OnBeforeAuctionHouseMgrSendAuctionCancelledToBidderMail (AuctionHouseMgr *, AuctionEntry *, Player *, uint32 &, bool &)
 
virtual void OnBeforeAuctionHouseMgrUpdate ()
 
- Public Member Functions inherited from ScriptObject
virtual bool IsDatabaseBound () const
 
virtual bool isAfterLoadScript () const
 
virtual void checkValidity ()
 
const std::string & GetName () const
 
uint16 GetTotalAvailableHooks ()
 

Protected Member Functions

 AuctionHouseScript (const char *name, std::vector< uint16 > enabledHooks=std::vector< uint16 >())
 
- Protected Member Functions inherited from ScriptObject
 ScriptObject (const char *name, uint16 totalAvailableHooks=0)
 
virtual ~ScriptObject ()=default
 

Detailed Description

Constructor & Destructor Documentation

◆ AuctionHouseScript()

AuctionHouseScript::AuctionHouseScript ( const char *  name,
std::vector< uint16 enabledHooks = std::vector<uint16>() 
)
protected
91{
92 // If empty - enable all available hooks.
93 if (enabledHooks.empty())
94 for (uint16 i = 0; i < AUCTIONHOUSEHOOK_END; ++i)
95 enabledHooks.emplace_back(i);
96
97 ScriptRegistry<AuctionHouseScript>::AddScript(this, std::move(enabledHooks));
98}
std::uint16_t uint16
Definition: Define.h:108
@ AUCTIONHOUSEHOOK_END
Definition: AuctionHouseScript.h:37
static void AddScript(TScript *const script, std::vector< uint16 > enabledHooks={})
Definition: ScriptMgr.h:738
Definition: ScriptObject.h:43

References ScriptRegistry< TScript >::AddScript(), and AUCTIONHOUSEHOOK_END.

Member Function Documentation

◆ OnAuctionAdd()

virtual void AuctionHouseScript::OnAuctionAdd ( AuctionHouseObject ,
AuctionEntry  
)
inlinevirtual
47{ }

◆ OnAuctionExpire()

virtual void AuctionHouseScript::OnAuctionExpire ( AuctionHouseObject ,
AuctionEntry  
)
inlinevirtual
56{ }

◆ OnAuctionRemove()

virtual void AuctionHouseScript::OnAuctionRemove ( AuctionHouseObject ,
AuctionEntry  
)
inlinevirtual
50{ }

◆ OnAuctionSuccessful()

virtual void AuctionHouseScript::OnAuctionSuccessful ( AuctionHouseObject ,
AuctionEntry  
)
inlinevirtual
53{ }

◆ OnBeforeAuctionHouseMgrSendAuctionCancelledToBidderMail()

virtual void AuctionHouseScript::OnBeforeAuctionHouseMgrSendAuctionCancelledToBidderMail ( AuctionHouseMgr ,
AuctionEntry ,
Player ,
uint32 ,
bool &   
)
inlinevirtual
74{ }

◆ OnBeforeAuctionHouseMgrSendAuctionExpiredMail()

virtual void AuctionHouseScript::OnBeforeAuctionHouseMgrSendAuctionExpiredMail ( AuctionHouseMgr ,
AuctionEntry ,
Player ,
uint32 ,
bool &  ,
bool &   
)
inlinevirtual
68{ }

◆ OnBeforeAuctionHouseMgrSendAuctionOutbiddedMail()

virtual void AuctionHouseScript::OnBeforeAuctionHouseMgrSendAuctionOutbiddedMail ( AuctionHouseMgr ,
AuctionEntry ,
Player ,
uint32 ,
Player ,
uint32 ,
bool &  ,
bool &   
)
inlinevirtual
71{ }

◆ OnBeforeAuctionHouseMgrSendAuctionSalePendingMail()

virtual void AuctionHouseScript::OnBeforeAuctionHouseMgrSendAuctionSalePendingMail ( AuctionHouseMgr ,
AuctionEntry ,
Player ,
uint32 ,
bool &   
)
inlinevirtual
62{ }

◆ OnBeforeAuctionHouseMgrSendAuctionSuccessfulMail()

virtual void AuctionHouseScript::OnBeforeAuctionHouseMgrSendAuctionSuccessfulMail ( AuctionHouseMgr ,
AuctionEntry ,
Player ,
uint32 ,
uint32 ,
bool &  ,
bool &  ,
bool &   
)
inlinevirtual
65{ }

◆ OnBeforeAuctionHouseMgrSendAuctionWonMail()

virtual void AuctionHouseScript::OnBeforeAuctionHouseMgrSendAuctionWonMail ( AuctionHouseMgr ,
AuctionEntry ,
Player ,
uint32 ,
bool &  ,
bool &  ,
bool &   
)
inlinevirtual
59{ }

◆ OnBeforeAuctionHouseMgrUpdate()

virtual void AuctionHouseScript::OnBeforeAuctionHouseMgrUpdate ( )
inlinevirtual
77{ }