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

#include "GuildScript.h"

Inheritance diagram for GuildScript:
ScriptObject

Public Member Functions

bool IsDatabaseBound () const override
 
virtual void OnAddMember (Guild *, Player *, uint8 &)
 
virtual void OnRemoveMember (Guild *, Player *, bool, bool)
 
virtual void OnMOTDChanged (Guild *, const std::string &)
 
virtual void OnInfoChanged (Guild *, const std::string &)
 
virtual void OnCreate (Guild *, Player *, const std::string &)
 
virtual void OnDisband (Guild *)
 
virtual void OnMemberWitdrawMoney (Guild *, Player *, uint32 &, bool)
 
virtual void OnMemberDepositMoney (Guild *, Player *, uint32 &)
 
virtual void OnItemMove (Guild *, Player *, Item *, bool, uint8, uint8, bool, uint8, uint8)
 
virtual void OnEvent (Guild *, uint8, ObjectGuid::LowType, ObjectGuid::LowType, uint8)
 
virtual void OnBankEvent (Guild *, uint8, uint8, ObjectGuid::LowType, uint32, uint16, uint8)
 
virtual bool CanGuildSendBankList (Guild const *, WorldSession *, uint8, bool)
 
- 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

 GuildScript (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

◆ GuildScript()

GuildScript::GuildScript ( const char *  name,
std::vector< uint16 enabledHooks = std::vector<uint16>() 
)
protected
84{
85 // If empty - enable all available hooks.
86 if (enabledHooks.empty())
87 for (uint16 i = 0; i < GUILDHOOK_END; ++i)
88 enabledHooks.emplace_back(i);
89
90 ScriptRegistry<GuildScript>::AddScript(this, std::move(enabledHooks));
91}
std::uint16_t uint16
Definition: Define.h:108
@ GUILDHOOK_END
Definition: GuildScript.h:39
static void AddScript(TScript *const script, std::vector< uint16 > enabledHooks={})
Definition: ScriptMgr.h:738
Definition: ScriptObject.h:43

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

Member Function Documentation

◆ CanGuildSendBankList()

virtual bool GuildScript::CanGuildSendBankList ( Guild const *  ,
WorldSession ,
uint8  ,
bool   
)
inlinevirtual
81{ return true; }

◆ IsDatabaseBound()

bool GuildScript::IsDatabaseBound ( ) const
inlineoverridevirtual

Reimplemented from ScriptObject.

48{ return false; }

◆ OnAddMember()

virtual void GuildScript::OnAddMember ( Guild ,
Player ,
uint8  
)
inlinevirtual
51{ }

◆ OnBankEvent()

virtual void GuildScript::OnBankEvent ( Guild ,
uint8  ,
uint8  ,
ObjectGuid::LowType  ,
uint32  ,
uint16  ,
uint8   
)
inlinevirtual
79{ }

◆ OnCreate()

virtual void GuildScript::OnCreate ( Guild ,
Player ,
const std::string &   
)
inlinevirtual
63{ }

◆ OnDisband()

virtual void GuildScript::OnDisband ( Guild )
inlinevirtual
66{ }

◆ OnEvent()

virtual void GuildScript::OnEvent ( Guild ,
uint8  ,
ObjectGuid::LowType  ,
ObjectGuid::LowType  ,
uint8   
)
inlinevirtual
77{ }

◆ OnInfoChanged()

virtual void GuildScript::OnInfoChanged ( Guild ,
const std::string &   
)
inlinevirtual
60{ }

◆ OnItemMove()

virtual void GuildScript::OnItemMove ( Guild ,
Player ,
Item ,
bool  ,
uint8  ,
uint8  ,
bool  ,
uint8  ,
uint8   
)
inlinevirtual
75{ }

◆ OnMemberDepositMoney()

virtual void GuildScript::OnMemberDepositMoney ( Guild ,
Player ,
uint32  
)
inlinevirtual
72{ }

◆ OnMemberWitdrawMoney()

virtual void GuildScript::OnMemberWitdrawMoney ( Guild ,
Player ,
uint32 ,
bool   
)
inlinevirtual
69{ }

◆ OnMOTDChanged()

virtual void GuildScript::OnMOTDChanged ( Guild ,
const std::string &   
)
inlinevirtual
57{ }

◆ OnRemoveMember()

virtual void GuildScript::OnRemoveMember ( Guild ,
Player ,
bool  ,
bool   
)
inlinevirtual
54{ }