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

#include "GroupScript.h"

Inheritance diagram for GroupScript:
ScriptObject lfg::LFGGroupScript

Public Member Functions

bool IsDatabaseBound () const override
 
virtual void OnAddMember (Group *, ObjectGuid)
 
virtual void OnInviteMember (Group *, ObjectGuid)
 
virtual void OnRemoveMember (Group *, ObjectGuid, RemoveMethod, ObjectGuid, const char *)
 
virtual void OnChangeLeader (Group *, ObjectGuid, ObjectGuid)
 
virtual void OnDisband (Group *)
 
virtual bool CanGroupJoinBattlegroundQueue (Group const *, Player *, Battleground const *, uint32, bool, uint32)
 
virtual void OnCreate (Group *, Player *)
 
- 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

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

◆ GroupScript()

GroupScript::GroupScript ( const char *  name,
std::vector< uint16 enabledHooks = std::vector<uint16>() 
)
protected
69{
70 // If empty - enable all available hooks.
71 if (enabledHooks.empty())
72 for (uint16 i = 0; i < GROUPHOOK_END; ++i)
73 enabledHooks.emplace_back(i);
74
75 ScriptRegistry<GroupScript>::AddScript(this, std::move(enabledHooks));
76}
std::uint16_t uint16
Definition: Define.h:108
@ GROUPHOOK_END
Definition: GroupScript.h:34
static void AddScript(TScript *const script, std::vector< uint16 > enabledHooks={})
Definition: ScriptMgr.h:737
Definition: ScriptObject.h:44

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

Member Function Documentation

◆ CanGroupJoinBattlegroundQueue()

virtual bool GroupScript::CanGroupJoinBattlegroundQueue ( Group const *  ,
Player ,
Battleground const *  ,
uint32  ,
bool  ,
uint32   
)
inlinevirtual
62{ return true; }

◆ IsDatabaseBound()

bool GroupScript::IsDatabaseBound ( ) const
inlineoverridevirtual

Reimplemented from ScriptObject.

45{ return false; }

◆ OnAddMember()

virtual void GroupScript::OnAddMember ( Group ,
ObjectGuid   
)
inlinevirtual

Reimplemented in lfg::LFGGroupScript.

48{ }

◆ OnChangeLeader()

virtual void GroupScript::OnChangeLeader ( Group ,
ObjectGuid  ,
ObjectGuid   
)
inlinevirtual

Reimplemented in lfg::LFGGroupScript.

57{ }

◆ OnCreate()

virtual void GroupScript::OnCreate ( Group ,
Player  
)
inlinevirtual
64{ }

◆ OnDisband()

virtual void GroupScript::OnDisband ( Group )
inlinevirtual

Reimplemented in lfg::LFGGroupScript.

60{ }

◆ OnInviteMember()

virtual void GroupScript::OnInviteMember ( Group ,
ObjectGuid   
)
inlinevirtual

Reimplemented in lfg::LFGGroupScript.

51{ }

◆ OnRemoveMember()

virtual void GroupScript::OnRemoveMember ( Group ,
ObjectGuid  ,
RemoveMethod  ,
ObjectGuid  ,
const char *   
)
inlinevirtual

Reimplemented in lfg::LFGGroupScript.

54{ }